Derives an object-specific encryption key from the master key. Used to encrypt individual PDF objects with unique keys.
The master encryption key.
The PDF object number.
The PDF object generation number.
Whether to include the AES salt ('sAlT'). Defaults to true.
A promise that resolves to the derived object key.
const objectKey = await deriveObjectKey(masterKey, 5, 0) Copy
const objectKey = await deriveObjectKey(masterKey, 5, 0)
Derives an object-specific encryption key from the master key. Used to encrypt individual PDF objects with unique keys.