Enum AesVendorVersion
#[repr(u16)]
pub enum AesVendorVersion
The encryption specification used to encrypt a file with AES.
According to the specification AE-2 does not make use of the CRC check.
Variants
-
Ae1 = 0x0001 Ae1 version
-
Ae2 = 0x0002 Ae2 version
Implementations
impl AesVendorVersion
const fn as_u16(self) -> u16As u16
const fn is_ae2_encrypted(&self) -> boolReturns
trueif the data is encrypted using AE2.
Trait Implementations
impl Clone for AesVendorVersion
fn clone(&self) -> Self
impl Copy for AesVendorVersion
impl Debug for AesVendorVersion
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for AesVendorVersion
impl PartialEq for AesVendorVersion
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for AesVendorVersion
impl TryFrom<u16> for AesVendorVersion
type Error = &'static str;fn try_from(value: u16) -> Result<Self, Self::Error>