The HASH engine is designed according to FIPS 180-4, and support both the SHA1 and SHA2 family of digest algorithms up to 256 bits.
The following SHA modes are supported:
- SHA-1
- SHA-224
- SHA-256
Note:
To ensure proper operation, the FIPS 180-4 defined initial hash values written to the registers
of the HASH engine must be written in descending order, starting with:
- HASH_H[7] for SHA-256, and SHA-224.
- HASH_H[6] for SHA-256, and SHA-224.
- HASH_H[5] for SHA-256, and SHA-224.
- HASH_H[4] for SHA-256, SHA-224, and SHA-1.
- HASH_H[3] for SHA-256, SHA-224, and SHA-1.
- HASH_H[2] for SHA-256, SHA-224, and SHA-1.
- HASH_H[1] for SHA-256, SHA-224, and SHA-1.
- HASH_H[0] for SHA-256, SHA-224, and SHA-1.