Enum pkcs5::pbes2::EncryptionScheme [−][src]
#[non_exhaustive] pub enum EncryptionScheme<'a> { Aes128Cbc { iv: &'a [u8; 16], }, Aes256Cbc { iv: &'a [u8; 16], }, }
Symmetric encryption scheme used by PBES2.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AES-128 in CBC mode
AES-256 in CBC mode
Implementations
impl<'a> EncryptionScheme<'a>
[src]
impl<'a> EncryptionScheme<'a>
[src]pub fn key_size(&self) -> usize
[src]
Get the size of a key used by this algorithm.
pub fn oid(&self) -> ObjectIdentifier
[src]
Get the ObjectIdentifier
(a.k.a OID) for this algorithm.
Trait Implementations
impl<'a> Clone for EncryptionScheme<'a>
[src]
impl<'a> Clone for EncryptionScheme<'a>
[src]fn clone(&self) -> EncryptionScheme<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for EncryptionScheme<'a>
[src]
impl<'a> Copy for EncryptionScheme<'a>
[src]impl<'a> Encodable for EncryptionScheme<'a>
[src]
impl<'a> Encodable for EncryptionScheme<'a>
[src]impl<'a> Eq for EncryptionScheme<'a>
[src]
impl<'a> Eq for EncryptionScheme<'a>
[src]impl<'a> PartialEq<EncryptionScheme<'a>> for EncryptionScheme<'a>
[src]
impl<'a> PartialEq<EncryptionScheme<'a>> for EncryptionScheme<'a>
[src]fn eq(&self, other: &EncryptionScheme<'a>) -> bool
[src]
fn ne(&self, other: &EncryptionScheme<'a>) -> bool
[src]
impl<'a> StructuralEq for EncryptionScheme<'a>
[src]
impl<'a> StructuralEq for EncryptionScheme<'a>
[src]impl<'a> StructuralPartialEq for EncryptionScheme<'a>
[src]
impl<'a> StructuralPartialEq for EncryptionScheme<'a>
[src]impl<'a> TryFrom<AlgorithmIdentifier<'a>> for EncryptionScheme<'a>
[src]
impl<'a> TryFrom<AlgorithmIdentifier<'a>> for EncryptionScheme<'a>
[src]impl<'a> TryFrom<Any<'a>> for EncryptionScheme<'a>
[src]
impl<'a> TryFrom<Any<'a>> for EncryptionScheme<'a>
[src]impl<'a> TryFrom<EncryptionScheme<'a>> for AlgorithmIdentifier<'a>
[src]
impl<'a> TryFrom<EncryptionScheme<'a>> for AlgorithmIdentifier<'a>
[src]Auto Trait Implementations
impl<'a> Send for EncryptionScheme<'a>
impl<'a> Send for EncryptionScheme<'a>
impl<'a> Sync for EncryptionScheme<'a>
impl<'a> Sync for EncryptionScheme<'a>
impl<'a> Unpin for EncryptionScheme<'a>
impl<'a> Unpin for EncryptionScheme<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
The resulting type after obtaining ownership.