Use this function to generate an SHA1 hash of a binary certificate. The hash should be placed in the binary certificate in the user credentials structure. For this function to work properly, the iCertHashLen parameter must be greater than or equal to 20 bytes. This function can be used to generate SHA1 hashes of an arbitrary buffer.
Syntax
int Sm_AgentApi_MakeCertificateHash ( const unsigned char* pCertificateData, const int nCertLen, unsigned char* pCertHash, const int nCertHashLen );
Parameter |
I/O |
Description |
---|---|---|
pCertificateData |
I |
A pointer to a buffer. |
nCertLen |
I |
The length in bytes of the buffer. |
pCertHash |
O |
The buffer into which the hash is placed. |
nCertHashLen |
I |
The size of the hash buffer in bytes. The size must be at least 20. |
Return Values
Copyright © 2014 CA.
All rights reserved.
|
|