pub struct MacAlg { /* private fields */ }Expand description
An OpenSSL MAC algorithm descriptor (EVP_MAC*).
Fetched once and reused. Implements Clone via EVP_MAC_up_ref.
Implementations§
Source§impl MacAlg
impl MacAlg
Sourcepub fn fetch(name: &CStr, props: Option<&CStr>) -> Result<Self, ErrorStack>
pub fn fetch(name: &CStr, props: Option<&CStr>) -> Result<Self, ErrorStack>
Fetch a MAC algorithm from the global default library context.
§Errors
Returns Err if the algorithm is not available.
Sourcepub fn fetch_in(
ctx: &Arc<LibCtx>,
name: &CStr,
props: Option<&CStr>,
) -> Result<Self, ErrorStack>
pub fn fetch_in( ctx: &Arc<LibCtx>, name: &CStr, props: Option<&CStr>, ) -> Result<Self, ErrorStack>
Fetch a MAC algorithm from an explicit library context.
§Errors
Trait Implementations§
impl Send for MacAlg
impl Sync for MacAlg
Auto Trait Implementations§
impl Freeze for MacAlg
impl RefUnwindSafe for MacAlg
impl Unpin for MacAlg
impl UnsafeUnpin for MacAlg
impl UnwindSafe for MacAlg
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