pub struct Aes256GcmAead { /* private fields */ }Expand description
AES-256-GCM in the pre-rotation layout: nonce || ciphertext || tag, with
no key id. Retained because it is what every value written before 1.0 looks
like, and KeyRing still reads that form — new deployments should use
KeyRing, which is what the server wires up.
Implementations§
Trait Implementations§
Source§impl Aead for Aes256GcmAead
impl Aead for Aes256GcmAead
fn seal(&self, plaintext: &[u8]) -> Result<Vec<u8>, CryptoError>
fn open(&self, blob: &[u8]) -> Result<Vec<u8>, CryptoError>
Source§fn is_current(&self, _blob: &[u8]) -> bool
fn is_current(&self, _blob: &[u8]) -> bool
Whether this blob is already sealed under the key
seal would use.
Rewrapping asks this so it can skip values that need no work; a
single-key implementation has nothing to rotate to, hence the default.Source§fn active_key_id(&self) -> String
fn active_key_id(&self) -> String
A short, stable label for the key
seal is using, so an operator can
confirm which key a replica actually holds.Auto Trait Implementations§
impl Freeze for Aes256GcmAead
impl RefUnwindSafe for Aes256GcmAead
impl Send for Aes256GcmAead
impl Sync for Aes256GcmAead
impl Unpin for Aes256GcmAead
impl UnsafeUnpin for Aes256GcmAead
impl UnwindSafe for Aes256GcmAead
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