pub struct HmacCtxRef(/* private fields */);Expand description
A borrowed reference to a HmacCtx.
Implementations§
Source§impl HmacCtxRef
impl 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 ForeignTypeRef for HmacCtxRef
impl ForeignTypeRef for HmacCtxRef
Source§type CType = hmac_ctx_st
type CType = hmac_ctx_st
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
impl Send for HmacCtxRef
impl Sync for HmacCtxRef
Auto Trait Implementations§
impl Freeze for HmacCtxRef
impl !RefUnwindSafe for HmacCtxRef
impl Unpin for HmacCtxRef
impl UnsafeUnpin for HmacCtxRef
impl UnwindSafe for HmacCtxRef
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