Struct sgx_crypto::sm3::Sm3
source · [−]pub struct Sm3 { /* private fields */ }
Implementations
sourceimpl Sm3
impl Sm3
pub fn new() -> SgxResult<Sm3>
pub fn update<T: ?Sized>(&mut self, data: &T) -> SgxResultwhere
T: ContiguousMemory,
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: ?Sized>(data: &T) -> SgxResult<Sm3Hash>where
T: ContiguousMemory,
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more