Enum pkcs5::pbes1::EncryptionScheme[][src]

pub enum EncryptionScheme {
    PbeWithMd2AndDesCbc,
    PbeWithMd2AndRc2Cbc,
    PbeWithMd5AndDesCbc,
    PbeWithMd5AndRc2Cbc,
    PbeWithSha1AndDesCbc,
    PbeWithSha1AndRc2Cbc,
}

Password-Based Encryption Scheme 1 algorithms as defined in RFC 8018 Appendix A.3.

Variants

PbeWithMd2AndDesCbc

pbeWithMD2AndDES-CBC

PbeWithMd2AndRc2Cbc

pbeWithMD2AndRC2-CBC

PbeWithMd5AndDesCbc

pbeWithMD5AndDES-CBC

PbeWithMd5AndRc2Cbc

pbeWithMD5AndRC2-CBC

PbeWithSha1AndDesCbc

pbeWithSHA1AndDES-CBC

PbeWithSha1AndRc2Cbc

pbeWithSHA1AndRC2-CBC

Implementations

impl EncryptionScheme[src]

pub fn cipher(self) -> SymmetricCipher[src]

Get the SymmetricCipher to be used.

pub fn digest(self) -> DigestAlgorithm[src]

Get the DigestAlgorithm to be used.

pub fn oid(self) -> ObjectIdentifier[src]

Get the ObjectIdentifier (a.k.a OID) for this algorithm.

Trait Implementations

impl Clone for EncryptionScheme[src]

impl Copy for EncryptionScheme[src]

impl Debug for EncryptionScheme[src]

impl Encodable for EncryptionScheme[src]

impl Eq for EncryptionScheme[src]

impl PartialEq<EncryptionScheme> for EncryptionScheme[src]

impl StructuralEq for EncryptionScheme[src]

impl StructuralPartialEq for EncryptionScheme[src]

impl TryFrom<ObjectIdentifier> for EncryptionScheme[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> Same<T> for T

type Output = T

Should always be Self

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.