Struct sgx_crypto::mac::HMac
source · [−]pub struct HMac { /* private fields */ }
Implementations
sourceimpl HMac
impl HMac
pub fn new(key: &[u8], hash_type: HashType) -> SgxResult<HMac>
pub fn update<T: ?Sized>(&mut self, data: &T) -> SgxResultwhere
T: ContiguousMemory,
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: ?Sized>(
key: &[u8],
hash_type: HashType,
data: &T
) -> SgxResult<Mac256bit>where
T: ContiguousMemory,
pub fn hmac_align<T: ?Sized>(
key: &[u8],
hash_type: HashType,
data: &T
) -> SgxResult<AlignMac256bit>where
T: ContiguousMemory,
pub fn hmac_into<T: ?Sized>(
key: &[u8],
hash_type: HashType,
data: &T,
mac: &mut Mac256bit
) -> SgxResultwhere
T: ContiguousMemory,
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
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