#[repr(transparent)]pub struct Indata(pub u32);Expand description
Input of 16 words at a time to load up buffer.
Tuple Fields§
§0: u32Implementations§
Source§impl Indata
impl Indata
Sourcepub const fn data(&self) -> u32
pub const fn data(&self) -> u32
Write next word in little-endian form. The hash requires big endian word data, but this block swaps the bytes automatically. That is, SHA assumes the data coming in is treated as bytes (e.g. “abcd”) and since the ARM core will treat “abcd” as a word as 0x64636261, the block will swap the word to restore into big endian.
Sourcepub const fn set_data(&mut self, val: u32)
pub const fn set_data(&mut self, val: u32)
Write next word in little-endian form. The hash requires big endian word data, but this block swaps the bytes automatically. That is, SHA assumes the data coming in is treated as bytes (e.g. “abcd”) and since the ARM core will treat “abcd” as a word as 0x64636261, the block will swap the word to restore into big endian.
Trait Implementations§
impl Copy for Indata
impl Eq for Indata
impl StructuralPartialEq for Indata
Auto Trait Implementations§
impl Freeze for Indata
impl RefUnwindSafe for Indata
impl Send for Indata
impl Sync for Indata
impl Unpin for Indata
impl UnwindSafe for Indata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more