Struct cryptoki::types::mechanism::MechanismType[][src]

#[repr(transparent)]pub struct MechanismType { /* fields omitted */ }

Type of a mechanism

Implementations

impl MechanismType[src]

pub const RSA_PKCS_KEY_PAIR_GEN: MechanismType[src]

PKCS #1 RSA key pair generation mechanism

pub const RSA_PKCS: MechanismType[src]

Multi-purpose mechanism based on the RSA public-key cryptosystem and the block formats initially defined in PKCS #1 v1.5

pub const RSA_PKCS_PSS: MechanismType[src]

Mechanism based on the RSA public-key cryptosystem and the PSS block format defined in PKCS #1

pub const RSA_PKCS_OAEP: MechanismType[src]

Multi-purpose mechanism based on the RSA public-key cryptosystem and the OAEP block format defined in PKCS #1

pub const SHA1: MechanismType[src]

SHA-1 mechanism

pub const SHA256: MechanismType[src]

SHA-256 mechanism

pub const SHA384: MechanismType[src]

SHA-384 mechanism

pub const SHA512: MechanismType[src]

SHA-512 mechanism

Trait Implementations

impl Clone for MechanismType[src]

impl Copy for MechanismType[src]

impl Debug for MechanismType[src]

impl Deref for MechanismType[src]

type Target = CK_MECHANISM_TYPE

The resulting type after dereferencing.

impl Eq for MechanismType[src]

impl From<MechanismType> for CK_MECHANISM_TYPE[src]

impl PartialEq<MechanismType> for MechanismType[src]

impl StructuralEq for MechanismType[src]

impl StructuralPartialEq for MechanismType[src]

impl TryFrom<u64> for MechanismType[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.