pub struct BuiltEncryption {
pub config: EncryptionConfig,
pub file_key: [u8; 32],
/* private fields */
}Expand description
The result of building an encryption dictionary: the parsed
EncryptionConfig to serialise into the file, plus the 32-byte file
encryption key the writer’s encoder needs to encrypt every
string and stream.
Fields§
§config: EncryptionConfigThe dictionary values — /V 5 /R 6 /CFM AESV3, with /O//U//OE/
/UE//Perms filled by Algorithms 8–10.
file_key: [u8; 32]The file encryption key. Secret. Held only long enough to encrypt
the document on the way out; never written to the file (that is exactly
what /UE//OE wrap).
Implementations§
Source§impl BuiltEncryption
impl BuiltEncryption
Sourcepub fn encrypt_dict(&self) -> Object
pub fn encrypt_dict(&self) -> Object
The /Encrypt dictionary to write: what
EncryptionConfig::to_encrypt_dict returns, without the Option,
because a built config always carries its AES-256 keys.
Trait Implementations§
Source§impl Clone for BuiltEncryption
impl Clone for BuiltEncryption
Auto Trait Implementations§
impl Forget for BuiltEncryption
impl Freeze for BuiltEncryption
impl Move for BuiltEncryption
impl RefUnwindSafe for BuiltEncryption
impl Send for BuiltEncryption
impl Sync for BuiltEncryption
impl Unpin for BuiltEncryption
impl UnsafeUnpin for BuiltEncryption
impl UnwindSafe for BuiltEncryption
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