Struct pkcs5::pbes1::Parameters[][src]

pub struct Parameters {
    pub encryption: EncryptionScheme,
    pub salt: [u8; 8],
    pub iteration_count: u16,
}

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

PBEParameter ::= SEQUENCE {
   salt OCTET STRING (SIZE(8)),
   iterationCount INTEGER }

Note that this struct additionally stores an EncryptionScheme parameter parsed from the ObjectIdentifier.

Fields

encryption: EncryptionScheme

Encryption scheme

salt: [u8; 8]

Salt value

iteration_count: u16

Iteration count

Implementations

impl Parameters[src]

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

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

Trait Implementations

impl Clone for Parameters[src]

impl Debug for Parameters[src]

impl Encodable for Parameters[src]

impl Eq for Parameters[src]

impl<'a> From<Parameters> for EncryptionScheme<'a>[src]

impl PartialEq<Parameters> for Parameters[src]

impl StructuralEq for Parameters[src]

impl StructuralPartialEq for Parameters[src]

impl<'a> TryFrom<AlgorithmIdentifier<'a>> for Parameters[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> TryFrom<Any<'a>> for Parameters[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for Parameters

impl Sync for Parameters

impl Unpin for Parameters

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<'a, T> Decodable<'a> for T where
    T: TryFrom<Any<'a>, Error = Error>, 
[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.