params struct is updated with the
generated salt, IV, and checksum.
ubyte[] encryptOdfEntry(const(ubyte)[] plaintext,
string password, ref OdfEncryptionParams params)Encrypts ODF content using AES-256-CBC with PBKDF2 key derivation.
plaintext | The raw content bytes to encrypt. |
password | The encryption password. |
params | The encryption parameters (salt and IV will be generated if empty). |
params struct is updated with the
generated salt, IV, and checksum.