pub struct EncryptionInfo {
pub magic_version: u8,
pub master_key_id: u32,
pub server_uuid: String,
pub encrypted_key_iv: [u8; 64],
pub checksum: u32,
}Expand description
Parsed encryption info from page 0 of an encrypted tablespace.
Located after the XDES array on page 0, this structure contains the master key ID, server UUID, and the encrypted tablespace key+IV needed to decrypt individual pages.
Fields§
§magic_version: u8Encryption info version (1 = lCA, 2 = lCB, 3 = lCC/MySQL 8.0.5+).
master_key_id: u32Master key ID from the keyring.
server_uuid: StringServer UUID string (36 ASCII characters).
encrypted_key_iv: [u8; 64]Encrypted tablespace key (32 bytes) + IV (32 bytes), AES-256-ECB encrypted.
checksum: u32CRC32 checksum of the plaintext key+IV.
Trait Implementations§
Source§impl Clone for EncryptionInfo
impl Clone for EncryptionInfo
Source§fn clone(&self) -> EncryptionInfo
fn clone(&self) -> EncryptionInfo
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 moreSource§impl Debug for EncryptionInfo
impl Debug for EncryptionInfo
Auto Trait Implementations§
impl Freeze for EncryptionInfo
impl RefUnwindSafe for EncryptionInfo
impl Send for EncryptionInfo
impl Sync for EncryptionInfo
impl Unpin for EncryptionInfo
impl UnwindSafe for EncryptionInfo
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