SetSignProcessEd25519IdentityFromFile

ความปลอดภัยและลายเซ็น

คำอธิบาย

โหลดใบรับรองกับ private key X.509 แบบ Ed25519 จากไฟล์ DER แล้วผูกเข้ากับกระบวนการลงลายเซ็น PDF

ไวยากรณ์

Delphi

Function TPDFlib.SetSignProcessEd25519IdentityFromFile(SignProcessID: Integer; Const CertificateFile, PrivateKeyFile: WideString): Integer;

ActiveX

Function PDFlib::SetSignProcessEd25519IdentityFromFile(SignProcessID As Long, CertificateFile As String, PrivateKeyFile As String) As Long

DLL

int DLSetSignProcessEd25519IdentityFromFile(int InstanceID, int SignProcessID, const wchar_t* CertificateFile, const wchar_t* PrivateKeyFile);

พารามิเตอร์

SignProcessIDValue returned by a NewSignProcessFrom* function
CertificateFilePath to a DER-encoded Ed25519 X.509 certificate
PrivateKeyFileพาธไปยัง seed 32 ไบต์ดิบ หรือ private key PKCS #8 DER ที่ไม่ได้เข้ารหัส

ค่าที่ส่งคืน

1อ่านไฟล์ทั้งสองแล้วผูก identity เข้ากับกระบวนการเรียบร้อย
0ไฟล์หรือ process id ไม่ถูกต้อง

หมายเหตุ

DLL ยังส่งออก DLSetSignProcessEd25519IdentityFromFileA สำหรับพาธแบบ ANSI กระบวนการลงลายเซ็นเก็บใบรับรองกับ private key ไว้ ไฟล์ต้นทางจึงปิดหรือแทนที่ได้หลังการเรียกนี้จบ

ดูเพิ่มเติม

SetSignProcessEd25519Identity, SetSignProcessPFXFromFile, SetSignProcessSubFilter