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