pub enum EncryptionScheme {
PbeWithMd2AndDesCbc,
PbeWithMd2AndRc2Cbc,
PbeWithMd5AndDesCbc,
PbeWithMd5AndRc2Cbc,
PbeWithSha1AndDesCbc,
PbeWithSha1AndRc2Cbc,
}Expand description
Password-Based Encryption Scheme 1 ciphersuites 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§
Source§impl EncryptionScheme
impl EncryptionScheme
Sourcepub fn cipher(self) -> SymmetricCipher
pub fn cipher(self) -> SymmetricCipher
Get the SymmetricCipher to be used.
Sourcepub fn digest(self) -> DigestAlgorithm
pub fn digest(self) -> DigestAlgorithm
Get the DigestAlgorithm to be used.
Sourcepub fn oid(self) -> ObjectIdentifier
pub fn oid(self) -> ObjectIdentifier
Get the ObjectIdentifier (a.k.a OID) for this algorithm.
Trait Implementations§
Source§impl Clone for EncryptionScheme
impl Clone for EncryptionScheme
Source§fn clone(&self) -> EncryptionScheme
fn clone(&self) -> EncryptionScheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncryptionScheme
impl Debug for EncryptionScheme
Source§impl Encode for EncryptionScheme
impl Encode for EncryptionScheme
Source§fn encoded_len(&self) -> Result<Length>
fn encoded_len(&self) -> Result<Length>
Compute the length of this value in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value as ASN.1 DER using the provided
Writer.Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.
Source§impl PartialEq for EncryptionScheme
impl PartialEq for EncryptionScheme
Source§impl TryFrom<ObjectIdentifier> for EncryptionScheme
impl TryFrom<ObjectIdentifier> for EncryptionScheme
impl Copy for EncryptionScheme
impl Eq for EncryptionScheme
impl StructuralPartialEq for EncryptionScheme
Auto Trait Implementations§
impl Freeze for EncryptionScheme
impl RefUnwindSafe for EncryptionScheme
impl Send for EncryptionScheme
impl Sync for EncryptionScheme
impl Unpin for EncryptionScheme
impl UnsafeUnpin for EncryptionScheme
impl UnwindSafe for EncryptionScheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more