pub struct CryptoMetadata {
pub cek_table_ordinal: u16,
pub algorithm_id: u8,
pub encryption_type: EncryptionTypeWire,
pub normalization_version: u8,
}Expand description
Per-column encryption metadata.
This metadata is present for each encrypted column and describes how to decrypt the column data.
Fields§
§cek_table_ordinal: u16Index into the CEK table (0-based).
algorithm_id: u8Encryption algorithm ID.
encryption_type: EncryptionTypeWireEncryption type (deterministic or randomized).
normalization_version: u8Normalization rule version.
Implementations§
Source§impl CryptoMetadata
impl CryptoMetadata
Sourcepub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
pub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
Decode crypto metadata from the wire format.
Sourcepub fn is_aead_aes_256(&self) -> bool
pub fn is_aead_aes_256(&self) -> bool
Check if this uses the standard AEAD algorithm.
Sourcepub fn is_deterministic(&self) -> bool
pub fn is_deterministic(&self) -> bool
Check if this uses deterministic encryption.
Sourcepub fn is_randomized(&self) -> bool
pub fn is_randomized(&self) -> bool
Check if this uses randomized encryption.
Trait Implementations§
Source§impl Clone for CryptoMetadata
impl Clone for CryptoMetadata
Source§fn clone(&self) -> CryptoMetadata
fn clone(&self) -> CryptoMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CryptoMetadata
impl RefUnwindSafe for CryptoMetadata
impl Send for CryptoMetadata
impl Sync for CryptoMetadata
impl Unpin for CryptoMetadata
impl UnwindSafe for CryptoMetadata
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