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 LongDLL
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
| SignProcessID | Handtekeningsproces-handle, teruggegeven door NewSignProcessFrom* |
|---|---|
| CertificateFile | Pad van het DER-certificaat met het publieke SM2-punt |
| PrivateKeyFile | Pad 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