SetSignProcessExternalDigestSigner

אבטחה וחתימות

תיאור

Attaches a DER-encoded X.509 certificate and an external digest-signing format to a PDF signing process

הספרייה בונה את אובייקט ה-CMS המנותק ושולחת רק את ה-digest הסופי של המאפיינים המאומתים שלו אל ה-callback הרשום

תחביר

Delphi

Function TPDFlib.SetSignProcessExternalDigestSigner(SignProcessID: Integer; Const CertificateDER: AnsiString; SignatureAlgorithm, SignatureReserveBytes: Integer): Integer;

ActiveX

Function PDFlib::SetSignProcessExternalDigestSigner(SignProcessID As Long, CertificateDER As Variant, SignatureAlgorithm As Long, SignatureReserveBytes As Long) As Long

DLL

int DLSetSignProcessExternalDigestSigner(int InstanceID, int SignProcessID, const char* CertificateDER, int CertificateLength, int SignatureAlgorithm, int SignatureReserveBytes);

פרמטרים

SignProcessIDValue returned by a NewSignProcessFrom* function
CertificateDERComplete DER-encoded RSA or ECDSA X.509 certificate corresponding to the external private key
SignatureAlgorithm1 for RSA PKCS#1 v1.5, 2 for DER-encoded ECDSA, or 3 for ECDSA P1363 r || s
SignatureReserveBytesExpected upper bound for the raw signature, or 0 to derive it from the certificate public key

ערכים מוחזרים

1תצורת הזהות החיצונית צורפה
0מזהה ה-process, התעודה, האלגוריתם או גודל הרזרבה לא היו תקינים

הערות

Assign OnExternalDigestSign, call DLSetExternalDigestSignCallback, or provide an ActiveX callback object with SetExternalDigestSignCallback before ending the sign processThe callback is not invoked while sizing the

/Contents

CertificateDER

adbe.pkcs7.sha1 placeholder and is invoked exactly once for the final signatureReturned signature bytes are verified against adbe.pkcs7.detached before the PDF is acceptedWhen the process still uses the legacy

ראה גם

OnExternalDigestSign, SetExternalDigestSignCallback, SetSignProcessContentsEstimate, SetSignProcessExternalDigestSignerFromFile