pub struct EncryptionInfo {
pub mode: EncryptionMode,
pub salt: [u8; 16],
pub kdf_iterations: u32,
pub base_nonce: [u8; 24],
pub password_test: u32,
}Expand description
Per-installer encryption metadata, parsed from the optional
TSetupEncryptionHeader that precedes the compressed block in
6.4.0+ installers. Older installers store encryption metadata
per-chunk.
Fields§
§mode: EncryptionModeEncryptionUse from Shared.Struct.pas:108-114.
salt: [u8; 16]PBKDF2-SHA256 salt.
kdf_iterations: u32PBKDF2 iteration count (variable; default 220_000).
base_nonce: [u8; 24]XChaCha20 base nonce.
password_test: u32Password verifier value (compared against XChaCha20-of-zero after key derivation).
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 moreAuto Trait Implementations§
impl Freeze for EncryptionInfo
impl RefUnwindSafe for EncryptionInfo
impl Send for EncryptionInfo
impl Sync for EncryptionInfo
impl Unpin for EncryptionInfo
impl UnsafeUnpin 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