SWRU543B January 2019 – June 2025 CC3230S , CC3230SF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The procedure in Table 19-8 creates a hash value from the key in only one pass.
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| Load the first part of the key. (Here, the key is like a message.) | SHAMD5_DATA_n_IN (i = 0 to 15) | – |
| Select the SHA-1 hash function. | SHAMD5_MODE[2:1] ALGO | 0x1 |
| Select a new hash operation. | SHAMD5_MODE[3] ALGO_CONSTANT | 0x1 |
| Close the hash; the key is processed in single pass. | SHAMD5_MODE[4] CLOSE_HASH | 0x1 |