SetSignProcessEd448Identity
Security and Signatures
Description
Sets an Ed448 X.509 certificate and private key for a detached PDF signature
The certificate must be DER encoded and use the id-Ed448 subject-public-key algorithm, while the private key can be a 57-byte seed or an unencrypted PKCS #8 DER value
Syntax
Delphi
Function TPDFlib.SetSignProcessEd448Identity(SignProcessID: Integer; Const CertificateDER, PrivateKeyDER: AnsiString): Integer;
ActiveX
Function PDFlib::SetSignProcessEd448Identity(SignProcessID As Long, CertificateDER As Variant, PrivateKeyDER As Variant) As Long
DLL
int DLSetSignProcessEd448Identity(int InstanceID, int SignProcessID, const char* CertificateDER, int CertificateLength, const char* PrivateKeyDER, int PrivateKeyLength);
Parameters
| SignProcessID | Value returned by a NewSignProcessFrom* function |
|---|---|
| CertificateDER | Complete DER-encoded X.509 certificate containing the Ed448 public key |
| PrivateKeyDER | Raw 32-byte Ed448 seed or unencrypted PKCS #8 DER private key |
Return values
| 1 | The identity was attached to the process |
|---|---|
| 0 | The process id or input was invalid |
Remarks
Use adbe.pkcs7.detached or ETSI.CAdES.detached; Ed448 uses the SHA-512 CMS digest identifier and signs the canonical signed-attributes value directly
The implementation derives the public key from the private seed and rejects an identity when it does not match the certificate
ActiveX accepts byte-array variants, and the DLL accepts explicit lengths so embedded zero bytes are retained
See also
SetSignProcessEd448IdentityFromFile, SetSignProcessDigestAlgorithm, SetSignProcessSubFilter