pub struct Mac(/* private fields */);Expand description
A context object used to perform MAC operations.
Implementations§
Source§impl Mac
impl Mac
Sourcepub fn fetch(
ctx: Option<&LibCtxRef>,
algorithm: &str,
properties: Option<&str>,
) -> Result<Self, ErrorStack>
pub fn fetch( ctx: Option<&LibCtxRef>, algorithm: &str, properties: Option<&str>, ) -> Result<Self, ErrorStack>
Fetches an implementation of a MAC algorithm, given a library context libctx and a set of properties.
Requires OpenSSL 3.0.0 or newer.
This corresponds to EVP_MAC_fetch.
Trait Implementations§
Source§impl ForeignType for Mac
impl ForeignType for Mac
impl Send for Mac
impl Sync for Mac
Auto Trait Implementations§
impl Freeze for Mac
impl RefUnwindSafe for Mac
impl Unpin for Mac
impl UnsafeUnpin for Mac
impl UnwindSafe for Mac
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