pub struct BodyCipherMeta {
pub dek_id: DekId,
pub aead_kind: AeadKind,
pub nonce: [u8; 24],
}Expand description
Body encryption metadata — references the DEK and AEAD algorithm used. Ciphertext itself lives in the shell’s side-channel (outside the WAL).
Fields§
§dek_id: DekIdDEK handle (HSM/KMS-managed).
aead_kind: AeadKindAEAD algorithm family.
nonce: [u8; 24]24-byte XChaCha20-Poly1305 nonce (or 12-byte AES-GCM nonce, zero-padded).
Trait Implementations§
Source§impl Clone for BodyCipherMeta
impl Clone for BodyCipherMeta
Source§fn clone(&self) -> BodyCipherMeta
fn clone(&self) -> BodyCipherMeta
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 moreSource§impl Debug for BodyCipherMeta
impl Debug for BodyCipherMeta
Source§impl<'de> Deserialize<'de> for BodyCipherMeta
impl<'de> Deserialize<'de> for BodyCipherMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BodyCipherMeta
impl PartialEq for BodyCipherMeta
Source§fn eq(&self, other: &BodyCipherMeta) -> bool
fn eq(&self, other: &BodyCipherMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BodyCipherMeta
impl Serialize for BodyCipherMeta
impl Eq for BodyCipherMeta
impl StructuralPartialEq for BodyCipherMeta
Auto Trait Implementations§
impl Freeze for BodyCipherMeta
impl RefUnwindSafe for BodyCipherMeta
impl Send for BodyCipherMeta
impl Sync for BodyCipherMeta
impl Unpin for BodyCipherMeta
impl UnsafeUnpin for BodyCipherMeta
impl UnwindSafe for BodyCipherMeta
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