tc_sha256_final() function
SHA256 final procedure Inserts the completed hash computation into digest
Arguments
digest
unsigned eight bit integer
Return value
returns TC_CRYPTO_SUCCESS (1) returns TC_CRYPTO_FAIL (0) if: s == NULL, s->iv == NULL, digest == NULL
Notes
Assumes: s has been initialized by tc_sha256_init digest points to at least TC_SHA256_DIGEST_SIZE bytes @warning The state buffer 'leftover' is left in memory after processing If your application intends to have sensitive data in this buffer, remind to erase it after the data has been processed
tc_sha256_final() is called by 2 functions and calls 3 functions:
![]()
tc_sha256_final()
tc_sha256_final() reads 4 variables and writes 2 variables:
![]()
tc_sha256_final()