Enum askar_crypto::alg::AesTypes
source · pub enum AesTypes {
A128Gcm,
A256Gcm,
A128CbcHs256,
A256CbcHs512,
A128Kw,
A256Kw,
}
Expand description
Supported algorithms for AES
Variants§
A128Gcm
128-bit AES-GCM
A256Gcm
256-bit AES-GCM
A128CbcHs256
128-bit AES-CBC with HMAC-256
A256CbcHs512
256-bit AES-CBC with HMAC-512
A128Kw
128-bit AES Key Wrap
A256Kw
256-bit AES Key Wrap
Trait Implementations§
source§impl Ord for AesTypes
impl Ord for AesTypes
source§impl PartialEq for AesTypes
impl PartialEq for AesTypes
source§impl PartialOrd for AesTypes
impl PartialOrd for AesTypes
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AesTypes
impl Eq for AesTypes
impl StructuralPartialEq for AesTypes
Auto Trait Implementations§
impl RefUnwindSafe for AesTypes
impl Send for AesTypes
impl Sync for AesTypes
impl Unpin for AesTypes
impl UnwindSafe for AesTypes
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