Struct cryptoki::mechanism::rsa::PkcsMgfType
source · pub struct PkcsMgfType { /* private fields */ }
Expand description
Message Generation Function (MGF) applied to a message block when formatting a message block for the PKCS #1 OAEP encryption scheme or the PKCS #1 PSS signature scheme.
Implementations§
source§impl PkcsMgfType
impl PkcsMgfType
sourcepub const MGF1_SHA1: PkcsMgfType = _
pub const MGF1_SHA1: PkcsMgfType = _
MGF1 SHA-1
sourcepub const MGF1_SHA224: PkcsMgfType = _
pub const MGF1_SHA224: PkcsMgfType = _
MGF1 SHA-224
sourcepub const MGF1_SHA256: PkcsMgfType = _
pub const MGF1_SHA256: PkcsMgfType = _
MGF1 SHA-256
sourcepub const MGF1_SHA384: PkcsMgfType = _
pub const MGF1_SHA384: PkcsMgfType = _
MGF1 SHA-384
sourcepub const MGF1_SHA512: PkcsMgfType = _
pub const MGF1_SHA512: PkcsMgfType = _
MGF1 SHA-512
Trait Implementations§
source§impl Clone for PkcsMgfType
impl Clone for PkcsMgfType
source§fn clone(&self) -> PkcsMgfType
fn clone(&self) -> PkcsMgfType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PkcsMgfType
impl Debug for PkcsMgfType
source§impl Deref for PkcsMgfType
impl Deref for PkcsMgfType
source§impl From<PkcsMgfType> for CK_RSA_PKCS_MGF_TYPE
impl From<PkcsMgfType> for CK_RSA_PKCS_MGF_TYPE
source§fn from(mgf_type: PkcsMgfType) -> Self
fn from(mgf_type: PkcsMgfType) -> Self
Converts to this type from the input type.
source§impl PartialEq for PkcsMgfType
impl PartialEq for PkcsMgfType
source§fn eq(&self, other: &PkcsMgfType) -> bool
fn eq(&self, other: &PkcsMgfType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for PkcsMgfType
impl TryFrom<u32> for PkcsMgfType
impl Copy for PkcsMgfType
impl Eq for PkcsMgfType
impl StructuralPartialEq for PkcsMgfType
Auto Trait Implementations§
impl Freeze for PkcsMgfType
impl RefUnwindSafe for PkcsMgfType
impl Send for PkcsMgfType
impl Sync for PkcsMgfType
impl Unpin for PkcsMgfType
impl UnwindSafe for PkcsMgfType
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