SLAU723A October 2017 – October 2018 MSP432E401Y , MSP432E411Y
The following procedure is used to create a hash value from the key in only one pass (see Table 25-9).
Step | Register / Bit Field / Programming Model | Value |
---|---|---|
Load the first part of the key (here, the key is like a message). | SHA_DATA_n_IN (i = 0 to 15) | - |
Select the SHA-1 hash function. | SHA_MODE[2:1] ALGO | 0x1 |
Select a new hash operation. | SHA_MODE[3] ALGO_CONSTANT | 0x1 |
Close the hash; the key is processed in single pass. | SHA_MODE[4] CLOSE_HASH | 0x1 |