pub enum AeadAlgorithm {
Aes256Gcm,
Aes256GcmSiv,
}Expand description
AEAD used to protect the ECIES payload.
The default remains AeadAlgorithm::Aes256Gcm. Every ECIES
ephemeral key is fresh, so nonce-misuse resistance matters little
here; GCM-SIV (RFC 8452) is offered for deployments that standardize
on it across long-lived protocol artifacts.
Variants§
Aes256Gcm
AES-256-GCM (the historical default).
Aes256GcmSiv
AES-256-GCM-SIV (RFC 8452, nonce-misuse resistant).
Trait Implementations§
Source§impl Clone for AeadAlgorithm
impl Clone for AeadAlgorithm
Source§fn clone(&self) -> AeadAlgorithm
fn clone(&self) -> AeadAlgorithm
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 moreimpl Copy for AeadAlgorithm
Source§impl Debug for AeadAlgorithm
impl Debug for AeadAlgorithm
Source§impl Default for AeadAlgorithm
impl Default for AeadAlgorithm
Source§fn default() -> AeadAlgorithm
fn default() -> AeadAlgorithm
Returns the “default value” for a type. Read more
impl Eq for AeadAlgorithm
Source§impl PartialEq for AeadAlgorithm
impl PartialEq for AeadAlgorithm
impl StructuralPartialEq for AeadAlgorithm
Auto Trait Implementations§
impl Freeze for AeadAlgorithm
impl RefUnwindSafe for AeadAlgorithm
impl Send for AeadAlgorithm
impl Sync for AeadAlgorithm
impl Unpin for AeadAlgorithm
impl UnsafeUnpin for AeadAlgorithm
impl UnwindSafe for AeadAlgorithm
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