Struct sgx_crypto::sm3::Sm3
source · pub struct Sm3 { /* private fields */ }Implementations§
source§impl Sm3
impl Sm3
pub fn new() -> SgxResult<Sm3>
pub fn update<T>(&mut self, data: &T) -> SgxResultwhere T: ContiguousMemory + ?Sized,
pub fn finalize(self) -> SgxResult<Sm3Hash>
pub fn finalize_into(self, hash: &mut Sm3Hash) -> SgxResult
pub fn finalize_reset(&mut self) -> SgxResult<Sm3Hash>
pub fn finalize_into_reset(&mut self, hash: &mut Sm3Hash) -> SgxResult
pub fn digest<T>(data: &T) -> SgxResult<Sm3Hash>where T: ContiguousMemory + ?Sized,
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Sm3
impl !Send for Sm3
impl !Sync for Sm3
impl Unpin for Sm3
impl UnwindSafe for Sm3
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