pub struct EntryEncryption {
pub path: String,
pub cipher: Cipher,
pub kdf: Kdf,
pub start_key: StartKeyAlg,
pub checksum: Checksum,
pub size: i64,
pub iv: Vec<u8>,
pub derived_key_len: i32,
}Expand description
One complete encryption-data tuple after Stage B.
Fields§
§path: StringThe resolved tree path, which is not necessarily the row’s
manifest:full-path: LibreOffice’s own lookup can land a row on a
stream its path does not name.
cipher: CipherCipher the row declares.
kdf: KdfKey-derivation function and its parameters.
start_key: StartKeyAlgDigest applied to the password before the KDF runs.
checksum: ChecksumIntegrity check, if the row carries one.
size: i64manifest:size (sal_Int64): the uncompressed plaintext length,
which decrypt enforces after inflating.
iv: Vec<u8>Initialisation vector or nonce, base64-decoded.
derived_key_len: i32manifest:key-size in bytes (sal_Int32), and the only thing that says
which AES a Cipher::AesCbcW3c row means. PGP uses
GetDefaultDerivedKeySize.
Trait Implementations§
Source§impl Clone for EntryEncryption
impl Clone for EntryEncryption
Source§impl Debug for EntryEncryption
impl Debug for EntryEncryption
impl Eq for EntryEncryption
Source§impl PartialEq for EntryEncryption
impl PartialEq for EntryEncryption
impl StructuralPartialEq for EntryEncryption
Auto Trait Implementations§
impl Forget for EntryEncryption
impl Freeze for EntryEncryption
impl Move for EntryEncryption
impl RefUnwindSafe for EntryEncryption
impl Send for EntryEncryption
impl Sync for EntryEncryption
impl Unpin for EntryEncryption
impl UnsafeUnpin for EntryEncryption
impl UnwindSafe for EntryEncryption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more