pub enum DataEncryptionAlgorithm {
Aes128,
Aes256,
TripleDesForCompatibility,
TripleDes,
Aes128Gcm,
Custom(String),
}Expand description
XML-Enc content encryption algorithm.
Custom URI values are forwarded to the configured crypto backend and can still fail at runtime when unsupported by that backend.
Variants§
Aes128
AES-128-CBC.
Aes256
AES-256-CBC.
TripleDesForCompatibility
Triple DES CBC for legacy interoperability.
TripleDes
👎Deprecated:
use DataEncryptionAlgorithm::TripleDesForCompatibility
Deprecated alias for Self::TripleDesForCompatibility.
Aes128Gcm
AES-128-GCM.
Custom(String)
Backend-specific content encryption algorithm URI.
Implementations§
Trait Implementations§
Source§impl Clone for DataEncryptionAlgorithm
impl Clone for DataEncryptionAlgorithm
Source§fn clone(&self) -> DataEncryptionAlgorithm
fn clone(&self) -> DataEncryptionAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DataEncryptionAlgorithm
impl Debug for DataEncryptionAlgorithm
Source§impl Default for DataEncryptionAlgorithm
impl Default for DataEncryptionAlgorithm
Source§fn default() -> DataEncryptionAlgorithm
fn default() -> DataEncryptionAlgorithm
Returns the “default value” for a type. Read more
impl Eq for DataEncryptionAlgorithm
Source§impl PartialEq for DataEncryptionAlgorithm
impl PartialEq for DataEncryptionAlgorithm
impl StructuralPartialEq for DataEncryptionAlgorithm
Auto Trait Implementations§
impl Freeze for DataEncryptionAlgorithm
impl RefUnwindSafe for DataEncryptionAlgorithm
impl Send for DataEncryptionAlgorithm
impl Sync for DataEncryptionAlgorithm
impl Unpin for DataEncryptionAlgorithm
impl UnsafeUnpin for DataEncryptionAlgorithm
impl UnwindSafe for DataEncryptionAlgorithm
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