Enum psa_crypto::types::algorithm::AsymmetricEncryption[][src]

pub enum AsymmetricEncryption {
    RsaPkcs1v15Crypt,
    RsaOaep {
        hash_alg: Hash,
    },
}

Enumeration of asymmetric encryption algorithms supported.

Variants

RsaPkcs1v15Crypt

RSA PKCS#1 v1.5 encryption.

RsaOaep

RSA OAEP encryption.

Fields of RsaOaep

hash_alg: Hash

A hash algorithm to use.

Trait Implementations

impl Clone for AsymmetricEncryption[src]

impl Copy for AsymmetricEncryption[src]

impl Debug for AsymmetricEncryption[src]

impl<'de> Deserialize<'de> for AsymmetricEncryption[src]

impl From<AsymmetricEncryption> for Algorithm[src]

impl PartialEq<AsymmetricEncryption> for AsymmetricEncryption[src]

impl Serialize for AsymmetricEncryption[src]

impl StructuralPartialEq for AsymmetricEncryption[src]

impl TryFrom<u32> for AsymmetricEncryption[src]

type Error = Error

The type returned in the event of a conversion error.

impl Zeroize for AsymmetricEncryption[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.