Generates the /O and /OE values for AES-256 PDF encryption. These values are used to validate the owner password and decrypt the file key.
The owner password.
The 48-byte /U value (required for owner key derivation).
The 32-byte file encryption key.
A promise that resolves to an object containing the 48-byte O and 32-byte OE values.
const { O, OE } = await generateOandOe(ownerPassword, U, fileKey) Copy
const { O, OE } = await generateOandOe(ownerPassword, U, fileKey)
Generates the /O and /OE values for AES-256 PDF encryption. These values are used to validate the owner password and decrypt the file key.