SetSignProcessSM2IdentityFromFileA
보안 및 서명
설명
끝의 A는 ANSI(char) DLL 진입점을 나타내며 ActiveX/COM 표면은 Unicode 형식만 노출합니다. 동작은 SetSignProcessSM2IdentityFromFile 함수와 동일하며 문자열 인수는 현재 SetAnsiMode 코드 페이지를 사용하여 해석됩니다
파일에서 로드한 SM2 인증서와 개인 스칼라를 서명 프로세스에 붙입니다
구문
Delphi
Function DLSetSignProcessSM2IdentityFromFileA(InstanceID, SignProcessID: Integer; CertificateFile, PrivateKeyFile: PAnsiChar): Integer;
DLL
int DLSetSignProcessSM2IdentityFromFileA(int InstanceID, int SignProcessID, const char* CertificateFile, const char* PrivateKeyFile);
매개변수
| SignProcessID | NewSignProcessFrom*이 반환한 서명 프로세스 핸들 |
|---|---|
| CertificateFile | SM2 공개 점을 담은 DER 인증서 경로 |
| PrivateKeyFile | 원시 32바이트 스칼라 또는 비암호화 PKCS #8 / SEC1 DER 래핑 경로 |
반환 값
파일을 읽고 identity가 받아들여지면 1, 두 파일 중 하나가 없거나 읽을 수 없거나 검증에 실패하면 0
비고
두 파일을 다 읽은 뒤 SetSignProcessSM2Identity와 정확히 같게 동작합니다