C/C++ API
HSM Dinamo
|
PKCS#7 standard signature.
PKCS#7 standard signature. More...
Functions | |
int AAP_API | DPKCS7Sign(HSESSIONCTX hSession, const char *szKeyName, const char *szKeyCert, const char *szCerts, DWORD dwAttrib, BYTE *pbContent, DWORD dwContentLen, DWORD *pdwSignatureLen, BYTE **ppbSignature, DWORD dwParam) |
int AAP_API DPKCS7Sign | ( | HSESSIONCTX | hSession, |
const char * | szKeyName, | ||
const char * | szKeyCert, | ||
const char * | szCerts, | ||
DWORD | dwAttrib, | ||
BYTE * | pbContent, | ||
DWORD | dwContentLen, | ||
DWORD * | pdwSignatureLen, | ||
BYTE ** | ppbSignature, | ||
DWORD | dwParam ) |
#include <dinamo.h>
It generates a signature or co-signature following the PKCS#7 standard (Cryptographic Message Syntax Standard).
[in] | hSession | Context acquired through the DOpenSession() function. | ||||||||||||||||
[in] | szKeyName | Name of the key within the HSM that will be used to make the signature. | ||||||||||||||||
[in] | szKeyCert | Name of the certificate (corresponding to the szKeyName key) within the HSM that will be used in the signature. | ||||||||||||||||
[in] | szCerts | Name of the certificate chain (PKCS#7) or X.509 certificate of the Certificate Authority (corresponding to the szKeyName key) within the HSM that will be used in the signature. | ||||||||||||||||
[in] | dwAttrib | Flag containing the subscription options.
| ||||||||||||||||
[in] | pbContent | Buffer containing the data to be signed. Its size must be specified in dwContentLen. | ||||||||||||||||
[in] | dwContentLen | Buffer size in bytes passed in pbContent. | ||||||||||||||||
[out] | pdwSignatureLen | Pointer to the size in bytes of the ppbSignature buffer. | ||||||||||||||||
[out] | ppbSignature | Pointer to a pointer that will receive the PKCS#7 signature (DER format). This pointer must be freed after use with DFree(). | ||||||||||||||||
[in] | dwParam | Reserved for future use (must be 0). |