When UIHASH bit of CFG register is set, the Initial Hash Value is
user-programmable.
To meet the desired standard, use the following example values.
For UIHVAL0 field:
Example |
Comment |
0x67452301 |
SHA1 algorithm |
0xC1059ED8 |
SHA224 algorithm |
0x6A09E667 |
SHA256 algorithm |
For UIHVAL1 field:
Example |
Comment |
0xEFCDAB89 |
SHA1 algorithm |
0x367CD507 |
SHA224 algorithm |
0xBB67AE85 |
SHA256 algorithm |
For UIHVAL2 field:
Example |
Comment |
0x98BADCFE |
SHA1 algorithm |
0x3070DD17 |
SHA224 algorithm |
0x3C6EF372 |
SHA256 algorithm |
For UIHVAL3 field:
Example |
Comment |
0x10325476 |
SHA1 algorithm |
0xF70E5939 |
SHA224 algorithm |
0xA54FF53A |
SHA256 algorithm |
For UIHVAL4 field:
Example |
Comment |
0xC3D2E1F0 |
SHA1 algorithm |
0xFFC00B31 |
SHA224 algorithm |
0x510E527F |
SHA256 algorithm |
For UIHVAL5 field:
Example |
Comment |
0x68581511 |
SHA224 algorithm |
0x9B05688C |
SHA256 algorithm |
For UIHVAL6 field:
Example |
Comment |
0x64F98FA7 |
SHA224 algorithm |
0x1F83D9AB |
SHA256 algorithm |
For UIHVAL7 field:
Example |
Comment |
0xBEFA4FA4 |
SHA224 algorithm |
0x5BE0CD19 |
SHA256 algorithm |
Example of Initial Value for SHA-1 Algorithm
Register Address |
Address Offset / Byte Lane |
0x3 / 31:24 |
0x2 / 23:16 |
0x1 / 15:8 |
0x0 / 7:0 |
0x000 UIHVAL0 |
01 |
23 |
45 |
67 |
0x004 UIHVAL1 |
89 |
ab |
cd |
ef |
0x008 UIHVAL2 |
fe |
dc |
ba |
98 |
0x00C UIHVAL3 |
76 |
54 |
32 |
10 |
0x010 UIHVAL4 |
f0 |
e1 |
d2 |
c3 |