SetSignProcessEd25519Identity

Ασφάλεια και υπογραφές

Περιγραφή

Ορίζει πιστοποιητικό και private key Ed25519 X.509 για detached υπογραφή PDF

The certificate must be DER encoded and use the id-Ed25519 subject-public-key algorithm, while the private key can be a 32-byte seed or an unencrypted PKCS #8 DER value

Σύνταξη

Delphi

Function TPDFlib.SetSignProcessEd25519Identity(SignProcessID: Integer; Const CertificateDER, PrivateKeyDER: AnsiString): Integer;

ActiveX

Function PDFlib::SetSignProcessEd25519Identity(SignProcessID As Long, CertificateDER As Variant, PrivateKeyDER As Variant) As Long

DLL

int DLSetSignProcessEd25519Identity(int InstanceID, int SignProcessID, const char* CertificateDER, int CertificateLength, const char* PrivateKeyDER, int PrivateKeyLength);

Παράμετροι

SignProcessIDValue returned by a NewSignProcessFrom* function
CertificateDERΠλήρες DER-κωδικοποιημένο πιστοποιητικό X.509 που περιέχει το δημόσιο κλειδί Ed25519
PrivateKeyDERΑκατέργαστο seed Ed25519 32 bytes ή μη κρυπτογραφημένο private key PKCS #8 DER

Τιμές επιστροφής

1Η ταυτότητα επισυνάφθηκε στη διαδικασία
0Το process id ή η είσοδος ήταν άκυρα

Παρατηρήσεις

Use adbe.pkcs7.detached or ETSI.CAdES.detached; Ed25519 uses the SHA-512 CMS digest identifier and signs the canonical signed-attributes value directlyThe implementation derives the public key from the private seed and rejects an identity when it does not match the certificate

Το ActiveX δέχεται παραλλαγές πινάκων bytes, και το DLL δέχεται ρητά μήκη ώστε τα ενσωματωμένα byte μηδενός διατηρούνται

Δείτε επίσης

SetSignProcessEd25519IdentityFromFile, SetSignProcessDigestAlgorithm, SetSignProcessSubFilter