8.3.4.1 SHA Algorithm
The SHA can process SHA1, SHA224, SHA256, SHA384, SHA512 by configuring the ALGO field in the Mode register (SHA_MR).
The block size depends on the algorithm and determines the number of bytes to write per block into the SHA_IDATARx registers. See the following table.
| Algorithm | Block Size (Bytes) |
|---|---|
| SHA-1 | 64 |
| SHA-224 | 64 |
| SHA-256 | 64 |
| SHA-384 | 128 |
| SHA-512 | 128 |
| SHA-512/224 | 128 |
| SHA-512/256 | 128 |
