tc_sha256_update() function
SHA256 update procedure Hashes data_length bytes addressed by data into state s
Arguments
datalen
length of message to hash
Return value
returns TC_CRYPTO_SUCCESS (1) returns TC_CRYPTO_FAIL (0) if: s == NULL, s->iv == NULL, data == NULL
Notes
Assumes s has been initialized by tc_sha256_init @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_update() is called by 4 functions and calls 2 functions:
![]()
tc_sha256_update()
tc_sha256_update() reads 4 variables and writes 2 variables:
![]()
tc_sha256_update()