Digital signature with CryptVerifySignature
问题 I want to implement digital signature app using CryptVerifySignature. I've written this code(with help of MSDN example): #define Check(condition, message) if (!(condition)) { fprintf(stderr, "%s\n", message); goto Exit; }; void DigSign(const char* inputFileName, const char* signFileName) { HCRYPTPROV hProv; BYTE *pbBuffer= NULL; DWORD dwBufferLen = 0; HCRYPTHASH hHash; HCRYPTKEY hKey; HCRYPTKEY hPubKey; BYTE *pbKeyBlob; BYTE *pbSignature; DWORD dwSigLen; DWORD dwBlobLen; FILE* inputFile =