Struct variant_ssl::hmac::HMacCtx
source · pub struct HMacCtx(/* private fields */);
Expand description
A context object used to perform MAC operations.
Implementations§
source§impl HMacCtx
impl HMacCtx
sourcepub fn new() -> Result<Self, ErrorStack>
pub fn new() -> Result<Self, ErrorStack>
Creates a new context.
This corresponds to HMAC_CTX_new
.
Methods from Deref<Target = 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 Deref for HMacCtx
impl Deref for HMacCtx
§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 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