Enum cryptoki::types::mechanism::Mechanism[][src]

pub enum Mechanism {
    RsaPkcsKeyPairGen,
    RsaPkcs,
    RsaPkcsPss(PkcsPssParams),
    RsaPkcsOaep(PkcsOaepParams),
    Sha1,
    Sha256,
    Sha384,
    Sha512,
}

Type defining a specific mechanism and its parameters

Variants

RsaPkcsKeyPairGen

PKCS #1 RSA key pair generation mechanism

RsaPkcs

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

RsaPkcsPss(PkcsPssParams)

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

RsaPkcsOaep(PkcsOaepParams)

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

Sha1

SHA-1 mechanism

Sha256

SHA-256 mechanism

Sha384

SHA-384 mechanism

Sha512

SHA-512 mechanism

Implementations

impl Mechanism[src]

pub fn mechanism_type(&self) -> MechanismType[src]

Get the type of a mechanism

Trait Implementations

impl Clone for Mechanism[src]

impl Copy for Mechanism[src]

impl Debug for Mechanism[src]

impl From<PkcsOaepParams> for Mechanism[src]

impl From<PkcsPssParams> for Mechanism[src]

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.