Struct variant_ssl::hmac::HMacCtxRef
source · pub struct HMacCtxRef(/* private fields */);
Expand description
A reference to a [HmacCtx
].
Implementations§
source§impl HMacCtxRef
impl HMacCtxRef
sourcepub fn copy(&mut self, src: &HMacCtxRef) -> Result<(), ErrorStack>
pub fn copy(&mut self, src: &HMacCtxRef) -> Result<(), ErrorStack>
This corresponds to HMAC_CTX_copy
.
sourcepub fn init_ex(
&mut self,
key: Option<&[u8]>,
md: &MdRef,
) -> Result<(), ErrorStack>
pub fn init_ex( &mut self, key: Option<&[u8]>, md: &MdRef, ) -> Result<(), ErrorStack>
This corresponds to HMAC_Init_ex
.
Trait Implementations§
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 ForeignTypeRef for HMacCtxRef
impl ForeignTypeRef for HMacCtxRef
impl Send for HMacCtxRef
impl Sync for HMacCtxRef
Auto Trait Implementations§
impl !Freeze for HMacCtxRef
impl !RefUnwindSafe for HMacCtxRef
impl Unpin 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