Struct sgx_crypto::mac::HMac
source · pub struct HMac { /* private fields */ }Implementations§
source§impl HMac
impl HMac
pub fn new(key: &[u8], hash_type: HashType) -> SgxResult<HMac>
pub fn update<T>(&mut self, data: &T) -> SgxResultwhere T: ContiguousMemory + ?Sized,
pub fn finalize(self) -> SgxResult<Mac256bit>
pub fn finalize_align(self) -> SgxResult<AlignMac256bit>
pub fn finalize_into(self, mac: &mut Mac256bit) -> SgxResult
pub fn finalize_reset(&mut self) -> SgxResult<Mac256bit>
pub fn finalize_reset_align(&mut self) -> SgxResult<AlignMac256bit>
pub fn finalize_into_reset(&mut self, mac: &mut Mac256bit) -> SgxResult
pub fn verify(self, mac: &Mac256bit) -> SgxResult
pub fn hmac<T>( key: &[u8], hash_type: HashType, data: &T ) -> SgxResult<Mac256bit>where T: ContiguousMemory + ?Sized,
pub fn hmac_align<T>( key: &[u8], hash_type: HashType, data: &T ) -> SgxResult<AlignMac256bit>where T: ContiguousMemory + ?Sized,
pub fn hmac_into<T>( key: &[u8], hash_type: HashType, data: &T, mac: &mut Mac256bit ) -> SgxResultwhere T: ContiguousMemory + ?Sized,
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HMac
impl !Send for HMac
impl !Sync for HMac
impl Unpin for HMac
impl UnwindSafe for HMac
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