pub struct Sha256 { /* private fields */ }
Expand description
SHA-256 hash function implementation
Implementations§
source§impl Sha256
impl Sha256
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
sourcepub const fn sum0(self) -> Reg<u32, RW>
pub const fn sum0(self) -> Reg<u32, RW>
256-bit checksum result. Contents are undefined when CSR_SUM_VLD is 0.
sourcepub const fn sum1(self) -> Reg<u32, RW>
pub const fn sum1(self) -> Reg<u32, RW>
256-bit checksum result. Contents are undefined when CSR_SUM_VLD is 0.
sourcepub const fn sum2(self) -> Reg<u32, RW>
pub const fn sum2(self) -> Reg<u32, RW>
256-bit checksum result. Contents are undefined when CSR_SUM_VLD is 0.
sourcepub const fn sum3(self) -> Reg<u32, RW>
pub const fn sum3(self) -> Reg<u32, RW>
256-bit checksum result. Contents are undefined when CSR_SUM_VLD is 0.
sourcepub const fn sum4(self) -> Reg<u32, RW>
pub const fn sum4(self) -> Reg<u32, RW>
256-bit checksum result. Contents are undefined when CSR_SUM_VLD is 0.
sourcepub const fn sum5(self) -> Reg<u32, RW>
pub const fn sum5(self) -> Reg<u32, RW>
256-bit checksum result. Contents are undefined when CSR_SUM_VLD is 0.
Trait Implementations§
impl Copy for Sha256
impl Eq for Sha256
impl Send for Sha256
impl StructuralPartialEq for Sha256
impl Sync for Sha256
Auto Trait Implementations§
impl Freeze for Sha256
impl RefUnwindSafe for Sha256
impl Unpin for Sha256
impl UnwindSafe for Sha256
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)