Struct sgx_crypto::sha::Sha1
source · pub struct Sha1 { /* private fields */ }Implementations§
source§impl Sha1
impl Sha1
pub fn new() -> SgxResult<Sha1>
pub fn update<T>(&mut self, data: &T) -> SgxResultwhere T: ContiguousMemory + ?Sized,
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>(data: &T) -> SgxResult<Sha1Hash>where T: ContiguousMemory + ?Sized,
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§
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