SetSignProcessSM2IdentityFromFile

Beveiliging en handtekeningen

Beschrijving

Koppelt een uit bestanden geladen SM2-certificaat en privéscalair aan een handtekeningsproces

Syntaxis

Delphi

Function SetSignProcessSM2IdentityFromFile(SignProcessID: Integer; Const CertificateFile, PrivateKeyFile: WideString): Integer;

ActiveX

Function PDFlib::SetSignProcessSM2IdentityFromFile(SignProcessID As Long, CertificateFile As String, PrivateKeyFile As String) As Long

DLL

int DLSetSignProcessSM2IdentityFromFile(int InstanceID, int SignProcessID, const wchar_t* CertificateFile, const wchar_t* PrivateKeyFile);
int DLSetSignProcessSM2IdentityFromFileA(int InstanceID, int SignProcessID, const char* CertificateFile, const char* PrivateKeyFile);

Parameters

SignProcessIDHandtekeningsproces-handle, teruggegeven door NewSignProcessFrom*
CertificateFilePad van het DER-certificaat met het publieke SM2-punt
PrivateKeyFilePad van de rauwe 32-byte skalair of een onversleutelde PKCS #8 / SEC1 DER-omhulling

Retourwaarden

1 wanneer de bestanden zijn gelezen en de identiteit is geaccepteerd, of 0 wanneer een van beide bestanden ontbreekt, onleesbaar is of de validatie faalt

Opmerkingen

Gedraagt zich na het binnenhalen van beide bestanden exact als SetSignProcessSM2Identity

Zie ook

SetSignProcessSM2Identity, SetSignProcessDigestAlgorithm