#[repr(u8)]pub enum AesVariant {
Aes128 = 0,
Aes192 = 1,
Aes256 = 2,
}Expand description
The AES variants, distinguished by key size: AES closes this set, so
it is an enum, not a number. (Each algorithm interface names its
closed set of parameterizations <algorithm>-variant.)
Variants§
Aes128 = 0
Aes192 = 1
Declined by every implementation of this package: every
minting path fails error.unsupported. The decline is a
portability ruling, not a gap — uniform service is impossible
(a major browser engine omits AES-192 from WebCrypto
deliberately and permanently) and the variant earns no
exception; see README.md, “Design notes”. Declared because
AES closes the set.
Aes256 = 2
Trait Implementations§
Source§impl Clone for AesVariant
impl Clone for AesVariant
Source§fn clone(&self) -> AesVariant
fn clone(&self) -> AesVariant
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 AesVariant
impl Debug for AesVariant
Source§impl Ord for AesVariant
impl Ord for AesVariant
Source§fn cmp(&self, other: &AesVariant) -> Ordering
fn cmp(&self, other: &AesVariant) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AesVariant
impl PartialEq for AesVariant
Source§fn eq(&self, other: &AesVariant) -> bool
fn eq(&self, other: &AesVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AesVariant
impl PartialOrd for AesVariant
impl Copy for AesVariant
impl Eq for AesVariant
impl StructuralPartialEq for AesVariant
Auto Trait Implementations§
impl Freeze for AesVariant
impl RefUnwindSafe for AesVariant
impl Send for AesVariant
impl Sync for AesVariant
impl Unpin for AesVariant
impl UnsafeUnpin for AesVariant
impl UnwindSafe for AesVariant
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