#[non_exhaustive]pub enum Algorithm {
ChaCha20Poly1305,
}Available on crate feature
aead-chacha20 only.Expand description
Supported AEAD algorithms.
The enum is #[non_exhaustive]. Additional algorithms (e.g. AES-256-GCM
in 0.3.0) will be added in minor releases; downstream match sites must
include a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as 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.
ChaCha20Poly1305
ChaCha20-Poly1305 (RFC 8439). The default. Fast in software, post-quantum-safe at 256-bit symmetric strength.
Implementations§
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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