Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

ShaUpdate

pub struct ShaUpdate {
    pub context_id: usize,
    pub buf: MemoryRange,
    pub length: usize,
}
Expand description

Feed a block-aligned chunk of data into the hardware SHA engine via DMA. buf must be page-aligned; length must be a multiple of the algo’s block size. Data always starts at offset 0 in buf.

Fields

context_id: usizebuf: MemoryRangelength: usize

Trait Implementations

impl Debug for ShaUpdate

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl From<ShaUpdate> for SimpleMemoryMessage

fn from(value: ShaUpdate) -> Self

Converts to this type from the input type.

impl From<SimpleMemoryMessage> for ShaUpdate

fn from(value: SimpleMemoryMessage) -> Self

Converts to this type from the input type.

impl LendMut for ShaUpdate

type Response = Result<usize, CryptoError>

impl MessageId for ShaUpdate

const ID: MessageId = 10usize

unique message identifier

const SERVER: &'static str = "os/crypto"

target server name

Auto Trait Implementations

impl Freeze for ShaUpdate

impl RefUnwindSafe for ShaUpdate

impl Send for ShaUpdate

impl Sync for ShaUpdate

impl Unpin for ShaUpdate

impl UnsafeUnpin for ShaUpdate

impl UnwindSafe for ShaUpdate