SHA Registers: Difference between revisions
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#SHA_BLKCNT|SHA_BLKCNT]] | ||
| 0x1000A004 | | 0x1000A004 | ||
| 4 | | 4 | ||
Line 26: | Line 26: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#SHA_INFIFO|SHA_INFIFO]] | ||
| 0x1000A080 | | 0x1000A080 | ||
| 0x40 | | 0x40 | ||
Line 71: | Line 71: | ||
|} | |} | ||
== | == SHA_BLKCNT == | ||
This reg contains the total size of the data written to REG_SHA_IN. | This reg contains the total size of the data written to REG_SHA_IN, this field is updated when performing hash-function final-round. | ||
== SHA_HASH == | == SHA_HASH == | ||
This reg contains the SHA* hash after the final round, and the internal state during normal rounds. It is possible to write the internal state using this register. | This reg contains the SHA* hash after the final round, and the internal state during normal rounds. It is possible to write the internal state using this register. | ||
== | == SHA_INFIFO == | ||
The data to be hashed must be written here. The data must be padded with 0x00s to align with the register size (if needed). | The data to be hashed must be written here. The data must be padded with 0x00s to align with the register size (if needed). |