1.4.4.2 DRV_CRYPTO_HASH_Final()
HASH_ERROR DRV_CRYPTO_HASH_Final (void * contextData, uint8_t * digest, uint32_t digestLength)
Execute a hash operation to generate the final digest.
contextData |
A pointer to the context block that contains the hash context data. |
digest |
Buffer to contain the digest. |
digestLength |
The size of the digest buffer. |
HASH_NO_ERROR on success, HASH_CONTEXT_ERROR / HASH_INITIALIZE_ERROR / HASH_STATE_ERROR / HASH_EXECUTE_ERROR on failure. |
Note:
A hash operation must be in progress (initialized by DRV_HASH_CRYPTO_Initialize()).