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