#include <crypto/nrf_cc310_bl/include/nrf_cc310_bl_hash_sha256.h>
Function for finalizing the hash calculation.
- Note
- Memory pointed to in hash digest must be allocated prior to this call.
- Parameters
-
[in,out] | p_hash_context | Structure holding context information for the SHA-256 operation. |
[in,out] | p_digest | Pointer to the structure holding SHA-256 hash digest. Data pointed to must be 32 bytes long. |
- Return values
-
CRYS_HASH_INVALID_USER_CONTEXT_POINTER_ERROR | p_hash_context was NULL. |
CRYS_HASH_USER_CONTEXT_CORRUPTED_ERROR | p_hash_context was corrupted. |
CRYS_HASH_INVALID_RESULT_BUFFER_POINTER_ERROR | p_digest was NULL. |