THotPDF.AddPubKeyRecipient

THotPDF

 

ก่อนหน้า  เมธอด  CryptKeyLength

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

 

Delphi syntax:

procedure AddPubKeyRecipient(const EnvelopeDER: AnsiString);

 

C++ syntax:

void __fastcall AddPubKeyRecipient(System::AnsiString EnvelopeDER);

 

คำอธิบาย

เรียก AddPubKeyRecipient หนึ่งครั้งต่อ recipient หลัง EnablePubKeyEncryption envelope ต้องเป็น PKCS#7 envelopedData DER blob ที่ไม่ว่าง ซึ่ง caller สร้างด้วย Windows CryptoAPI, OpenSSL หรือ certificate toolkit อื่น

 

ลำดับของ recipients ถูกคงไว้ใน array /Recipients ของ PDF และมีส่วนใน file-key derivation ตาม PDF algorithm 9

 

See also: EnablePubKeyEncryption, CryptKeyLength, PDF Filter Support