Struct sgx_crypto::sha::Sha256
source · [−]pub struct Sha256 { /* private fields */ }
Implementations
sourceimpl Sha256
impl Sha256
pub fn new() -> SgxResult<Sha256>
pub fn update<T: ?Sized>(&mut self, data: &T) -> SgxResultwhere
T: ContiguousMemory,
pub fn finalize(self) -> SgxResult<Sha256Hash>
pub fn finalize_into(self, hash: &mut Sha256Hash) -> SgxResult
pub fn finalize_reset(&mut self) -> SgxResult<Sha256Hash>
pub fn finalize_into_reset(&mut self, hash: &mut Sha256Hash) -> SgxResult
pub fn digest<T: ?Sized>(data: &T) -> SgxResult<Sha256Hash>where
T: ContiguousMemory,
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sha256
impl !Send for Sha256
impl !Sync for Sha256
impl Unpin for Sha256
impl UnwindSafe for Sha256
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more