Struct pkcs5::pbes1::Parameters [−][src]
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]
fn clone(&self) -> Parameters
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Parameters
[src]
impl Encodable for Parameters
[src]
fn encoded_len(&self) -> Result<Length>
[src]
fn encode(&self, encoder: &mut Encoder<'_>) -> Result<()>
[src]
pub fn encode_to_slice(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
[src]
impl Eq for Parameters
[src]
impl<'a> From<Parameters> for EncryptionScheme<'a>
[src]
fn from(params: Parameters) -> EncryptionScheme<'a>
[src]
impl PartialEq<Parameters> for Parameters
[src]
fn eq(&self, other: &Parameters) -> bool
[src]
fn ne(&self, other: &Parameters) -> bool
[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.
fn try_from(alg: AlgorithmIdentifier<'a>) -> Result<Self>
[src]
impl<'a> TryFrom<Any<'a>> for Parameters
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Decodable<'a> for T where
T: TryFrom<Any<'a>, Error = Error>,
[src]
T: TryFrom<Any<'a>, Error = Error>,
pub fn decode(decoder: &mut Decoder<'a>) -> Result<T, Error>
[src]
pub fn from_bytes(bytes: &'a [u8]) -> Result<Self, Error>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,