EnablePubKeyEncryption 後,請為每個 recipient 呼叫 AddPubKeyRecipient 一次。envelope 必須是呼叫端以 Windows CryptoAPI、OpenSSL 或其他 certificate toolkit 建立的 non-empty PKCS#7 envelopedData DER blob

THotPDF

 

上一頁  方法  CryptKeyLength

Adds one PKCS#7 recipient envelope to a public-key encrypted PDF.

 

Delphi 語法:

procedure AddPubKeyRecipient(const EnvelopeDER: AnsiString);

 

C++ 語法:

void __fastcall AddPubKeyRecipient(System::AnsiString EnvelopeDER);

 

說明

在 EnablePubKeyEncryption 之後,請對每個 recipient 呼叫一次 AddPubKeyRecipient。envelope 必須是由呼叫端透過 Windows CryptoAPI、OpenSSL 或其他 certificate toolkit 建立的 non-empty PKCS#7 envelopedData DER blobEnvelopedData

recipients 的順序會保留在 PDF /Recipients array 中,並參與 PDF algorithm 9 file-key derivation

AddPubKeyRecipientCertificate

請參閱: EnablePubKeyEncryption, CryptKeyLength, PDF 篩選器支援

AddPubKeyAgreementRecipient 接受暫時性的 origination 公鑰,以及呼叫端或 HSM 衍生的共享祕密,適用 P-256、P-384、P-521、X25519 或 X448 收件者,然後套用對應的 X9.63 KDF 與 AES-256 key wrap

 

收件者順序會保留在 PDF /Recipients 陣列中,並參與檔案金鑰衍生

 

另請參閱: EnablePubKeyEncryption, CryptKeyLength, PDF Filter 支援