pub struct Algorithm {
pub encryption: EncryptionScheme,
pub parameters: Parameters,
}
Expand description
Password-Based Encryption Scheme 1 algorithms as defined in RFC 8018 Appendix A.C.
PBES1Algorithms ALGORITHM-IDENTIFIER ::= {
{PBEParameter IDENTIFIED BY pbeWithMD2AndDES-CBC} |
{PBEParameter IDENTIFIED BY pbeWithMD2AndRC2-CBC} |
{PBEParameter IDENTIFIED BY pbeWithMD5AndDES-CBC} |
{PBEParameter IDENTIFIED BY pbeWithMD5AndRC2-CBC} |
{PBEParameter IDENTIFIED BY pbeWithSHA1AndDES-CBC} |
{PBEParameter IDENTIFIED BY pbeWithSHA1AndRC2-CBC},
...
}
Fields§
§encryption: EncryptionScheme
Encryption scheme.
parameters: Parameters
Scheme parameters.
Implementations§
source§impl Algorithm
impl Algorithm
sourcepub fn oid(&self) -> ObjectIdentifier
pub fn oid(&self) -> ObjectIdentifier
Get the ObjectIdentifier
(a.k.a OID) for this algorithm.
Trait Implementations§
source§impl<'a> DecodeValue<'a> for Algorithm
impl<'a> DecodeValue<'a> for Algorithm
source§impl EncodeValue for Algorithm
impl EncodeValue for Algorithm
source§impl<'a> From<Algorithm> for EncryptionScheme<'a>
impl<'a> From<Algorithm> for EncryptionScheme<'a>
source§fn from(alg: Algorithm) -> EncryptionScheme<'a>
fn from(alg: Algorithm) -> EncryptionScheme<'a>
Converts to this type from the input type.