SetSignProcessEd448IdentityFromFileA

Security and Signatures

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetSignProcessEd448IdentityFromFile and string arguments are interpreted using the current SetAnsiMode code page

Loads an Ed448 X.509 certificate and private key from DER files and attaches them to a PDF signing process

Syntax

Delphi

Function DLSetSignProcessEd448IdentityFromFileA(InstanceID, SignProcessID: Integer; CertificateFile, PrivateKeyFile: PAnsiChar): Integer;

DLL

int DLSetSignProcessEd448IdentityFromFileA(int InstanceID, int SignProcessID, const char* CertificateFile, const char* PrivateKeyFile);

Parameters

SignProcessIDValue returned by a NewSignProcessFrom* function
CertificateFilePath to a DER-encoded Ed448 X.509 certificate
PrivateKeyFilePath to a raw 32-byte seed or unencrypted PKCS #8 DER private key

Return values

1Both files were read and the identity was attached to the process
0A file or process id was invalid

Remarks

The DLL also exports DLSetSignProcessEd448IdentityFromFileA for ANSI paths

The certificate and private key are held in the sign process, so the source files can be closed or replaced after this call returns

See also

SetSignProcessEd448Identity, SetSignProcessPFXFromFile, SetSignProcessSubFilter