THPDFLoadedPubSecFilterKey Record
Holds one recovered public-key crypt-filter envelope key: the filter name, validity flag, key algorithm, and the legacy or AES-256 file-encryption key bytes
Declaration
THPDFLoadedPubSecFilterKey= record
Name: AnsiString;
KeyValid: boolean;
KeyType: THPDFKeyType;
LegacyKey: MD5Digest;
FEK: TAES256Key;
end;
Unit
HPDFDoc
Usage notes
- Read Name, KeyValid, and KeyType together with the THotPDF.TryLoadedPubSecFilterKey result code before using LegacyKey or FEK
- LegacyKey carries the derived key for the k40, k128, and aes128 methods while FEK carries the aes256 and aesgcm file-encryption key; the field selected by KeyType is the meaningful one