SetSignProcessEd25519Identity
Bezpečnosť a podpisy
Opis
Nastaví certifikát X.509 Ed25519 a súkromný kľúč pre odpojený PDF podpis
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
Syntax
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);
Parametre
| SignProcessID | Value returned by a NewSignProcessFrom* function |
|---|---|
| CertificateDER | Complete DER-encoded X.509 certificate containing the Ed25519 public key |
| PrivateKeyDER | Raw 32-byte Ed25519 seed or unencrypted PKCS #8 DER private key |
Návratové hodnoty
| 1 | The identity was attached to the process |
|---|---|
| 0 | The process id or input was invalid |
Poznámky
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 akceptuje varianty bajtových polí a DLL akceptuje výslovné dĺžky, takže vložené nulové bajty zostanú zachované
Pozri tiež
SetSignProcessEd25519IdentityFromFile, SetSignProcessDigestAlgorithm, SetSignProcessSubFilter