Difference between revisions of "SHA Registers"
Jump to navigation
Jump to search
m (moved SHA to SHA Registers) |
|||
Line 37: | Line 37: | ||
| ? Input related. Changes the hash completely | | ? Input related. Changes the hash completely | ||
|- | |- | ||
− | |5 | + | | 5 |
| Mode (0=SHA256, 1=SHA1) | | Mode (0=SHA256, 1=SHA1) | ||
+ | |- | ||
+ | | 8 | ||
+ | | Unknown. When set, the *entire* ARM9 hangs/crashes when attempting to read REG_SHA_IN. | ||
|- | |- | ||
| 16 | | 16 |
Revision as of 05:29, 9 March 2015
Registers
NAME | PHYSICAL ADDRESS | WIDTH |
---|---|---|
REG_SHA_CNT | 0x1000A000 | 4 |
REG_SHA_DATASIZE | 0x1000A004 | 4 |
REG_SHA_OUT | 0x1000A040 | 0x20 |
REG_SHA_IN | 0x1000A080 | 0x40 |
REG_SHA_CNT
Bits | Description |
---|---|
0-1 | 0=Hash ready, 1=Normal, 2=Final Round |
3 | Endianess (0=Little endian, 1=Big endian) |
4 | ? Input related. Changes the hash completely |
5 | Mode (0=SHA256, 1=SHA1) |
8 | Unknown. When set, the *entire* ARM9 hangs/crashes when attempting to read REG_SHA_IN. |
16 | Enable |
17 | 1 when FIFO expects read/write |
REG_SHA_DATASIZE
This reg contains the total size of the data written to REG_SHA_IN.
REG_SHA_OUT
This reg contains the SHA* hash after the final round.
REG_SHA_IN
The data to be hashed must be written here. The data must be padded with 0x00s to align with the register size (if needed).