pub struct Aes256Gcm(/* private fields */);Expand description
AES-256-GCM with nonce 0u32 || index.to_be_bytes(), empty AAD and a suffix tag.
Use one independent key per immutable object. Never encrypt distinct payloads under the same key/index, even across encoder instances. Metadata must be trusted. Key generation and persistence belong to the caller.
Implementations§
Trait Implementations§
Source§impl EncryptionCodec for Aes256Gcm
Available on crate feature aes-gcm only.
impl EncryptionCodec for Aes256Gcm
Available on crate feature
aes-gcm only.Source§const FORMAT: Encryption = Encryption::Aes256Gcm
const FORMAT: Encryption = Encryption::Aes256Gcm
Metadata format implemented by this codec.
Auto Trait Implementations§
impl Freeze for Aes256Gcm
impl RefUnwindSafe for Aes256Gcm
impl Send for Aes256Gcm
impl Sync for Aes256Gcm
impl Unpin for Aes256Gcm
impl UnsafeUnpin for Aes256Gcm
impl UnwindSafe for Aes256Gcm
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