Hash Operation APIs
Hash operation APIs comply with GM/T 0018-2012. For details about the API parameters and return values, see GM/T 0018-2012. For details about the algorithm identifier description, see GM/T 0006-2012.
int SDF_HashInit(void *hSessionHandle, unsigned int uiAlgID, ECCrefPublicKey *pucPublicKey, unsigned char *pucID, unsigned int uiIDLength); int SDF_HashUpdate(void *hSessionHandle, unsigned char *pucData, unsigned int uiDataLength); int SDF_HashFinal(void *hSessionHandle, unsigned char *pucHash, unsigned int *puiHashLength);
Specification Restrictions
- The hash operation APIs support only SGD_SM3.
- The signature ID length cannot exceed 8 KB.
- The length of the hash result buffer must be greater than or equal to 32 bytes.
Parent topic: API Description