THotPDF.AddPubKeyRecipient

THotPDF

 

Trước  Phương thức  CryptKeyLength

Thêm một gói recipient PKCS#7 vào một PDF được mã hóa bằng public key

 

Cú pháp Delphi:

procedure AddPubKeyRecipient(const EnvelopeDER: AnsiString);

 

Cú pháp C++:

void __fastcall AddPubKeyRecipient(System::AnsiString EnvelopeDER);

 

Mô tả

Gọi AddPubKeyRecipient một lần cho mỗi recipient sau EnablePubKeyEncryption. Gói recipient phải là một blob DER PKCS#7 envelopedData không rỗng do bên gọi tạo bằng Windows CryptoAPI, OpenSSL hoặc một bộ công cụ chứng chỉ khác

 

Thứ tự các recipient được giữ nguyên trong mảng PDF /Recipients và tham gia vào quá trình suy ra file key theo thuật toán 9 của PDF

 

Xem thêm: EnablePubKeyEncryption, CryptKeyLength, PDF Filter Support