This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CRYS_hash: behavior of CRYS_HASH_Update with incorrect input length

Hello,

we are using nRF52840 and have to directly use the CRYS API of the CryptoCell310.

In the documentation of the function CRYS_HASH_Update, the following is written regarding the length of the provided data block to be processed:

"If not a multiple of the HASH block size (64 for MD5, SHA-1 and SHA-224/256, 128 for SHA-384/512), no further calls to CRYS_HASH_Update are allowed in this context, and only CRYS_HASH_Finish can be called to complete the computation. "

What should be the return value of CRYS_HASH_Update if this is violated? Will the hash context be corrupted?

Thanks,

Damian

Parents Reply Children
Related