pub struct HmacCtx(/* private fields */);Methods from Deref<Target = HmacCtxRef>§
Sourcepub fn init(&mut self, key: &[u8], md: &MessageDigest) -> Result<(), ErrorStack>
pub fn init(&mut self, key: &[u8], md: &MessageDigest) -> Result<(), ErrorStack>
Configures HmacCtx to use md as the hash function and key as the key.
This corresponds to HMAC_Init_ex.
Trait Implementations§
Source§impl AsMut<HmacCtxRef> for HmacCtx
impl AsMut<HmacCtxRef> for HmacCtx
Source§fn as_mut(&mut self) -> &mut HmacCtxRef
fn as_mut(&mut self) -> &mut HmacCtxRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<HmacCtxRef> for HmacCtx
impl AsRef<HmacCtxRef> for HmacCtx
Source§fn as_ref(&self) -> &HmacCtxRef
fn as_ref(&self) -> &HmacCtxRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<HmacCtxRef> for HmacCtx
impl Borrow<HmacCtxRef> for HmacCtx
Source§fn borrow(&self) -> &HmacCtxRef
fn borrow(&self) -> &HmacCtxRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<HmacCtxRef> for HmacCtx
impl BorrowMut<HmacCtxRef> for HmacCtx
Source§fn borrow_mut(&mut self) -> &mut HmacCtxRef
fn borrow_mut(&mut self) -> &mut HmacCtxRef
Mutably borrows from an owned value. Read more
Source§impl Deref for HmacCtx
impl Deref for HmacCtx
Source§type Target = HmacCtxRef
type Target = HmacCtxRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &HmacCtxRef
fn deref(&self) -> &HmacCtxRef
Dereferences the value.
Source§impl DerefMut for HmacCtx
impl DerefMut for HmacCtx
Source§fn deref_mut(&mut self) -> &mut HmacCtxRef
fn deref_mut(&mut self) -> &mut HmacCtxRef
Mutably dereferences the value.
Source§impl ForeignType for HmacCtx
impl ForeignType for HmacCtx
impl Send for HmacCtx
impl Sync for HmacCtx
Auto Trait Implementations§
impl Freeze for HmacCtx
impl RefUnwindSafe for HmacCtx
impl Unpin for HmacCtx
impl UnsafeUnpin for HmacCtx
impl UnwindSafe for HmacCtx
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