pub struct EncryptedParamMetadata {
pub base_type_info: TypeInfo,
pub algorithm_id: u8,
pub encryption_type: EncryptionTypeWire,
pub database_id: u32,
pub cek_id: u32,
pub cek_version: u32,
pub cek_md_version: u64,
pub normalization_rule_version: u8,
}Expand description
Always Encrypted cipher metadata, written after an encrypted parameter’s
ciphertext value (MS-TDS 2.2.6.6 CryptoMetadata).
It tells the server how to validate and route the encrypted value: the
plaintext column type (BaseTypeInfo), the AEAD algorithm and encryption
mode, which column encryption key, and the normalization rule version.
Fields§
§base_type_info: TypeInfoType info of the plaintext column (the BaseTypeInfo).
algorithm_id: u8Encryption algorithm ID (2 = AEAD_AES_256_CBC_HMAC_SHA256).
encryption_type: EncryptionTypeWireDeterministic or randomized encryption.
database_id: u32Database ID of the column encryption key.
cek_id: u32Column encryption key ID.
cek_version: u32Column encryption key version.
cek_md_version: u64Column encryption key metadata version.
normalization_rule_version: u8Normalization rule version applied to the plaintext.
Implementations§
Trait Implementations§
Source§impl Clone for EncryptedParamMetadata
impl Clone for EncryptedParamMetadata
Source§fn clone(&self) -> EncryptedParamMetadata
fn clone(&self) -> EncryptedParamMetadata
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 moreAuto Trait Implementations§
impl Freeze for EncryptedParamMetadata
impl RefUnwindSafe for EncryptedParamMetadata
impl Send for EncryptedParamMetadata
impl Sync for EncryptedParamMetadata
impl Unpin for EncryptedParamMetadata
impl UnsafeUnpin for EncryptedParamMetadata
impl UnwindSafe for EncryptedParamMetadata
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