Difference between revisions of "FS:UpdateSha256Context"
Jump to navigation
Jump to search
WulfyStylez (talk | contribs) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
|- | |- | ||
| 1-8 | | 1-8 | ||
− | | Input | + | | Input Hash. Not used at all. |
|- | |- | ||
| 9 | | 9 | ||
− | | Input | + | | Input Data Size |
|- | |- | ||
| 10 | | 10 | ||
− | | | + | | u32 Flag, must be zero. |
|- | |- | ||
| 11 | | 11 | ||
− | | | + | | u32 Flag, must be zero. |
|- | |- | ||
| 12 | | 12 | ||
− | | | + | | s8 Flag, must be zero. |
|- | |- | ||
| 13 | | 13 | ||
− | | | + | | s8 Flag, must be non-zero. |
|- | |- | ||
| 14 | | 14 | ||
− | | (Size<<4) <nowiki>|</nowiki> | + | | (Size << 4) <nowiki>|</nowiki> 0xA |
|- | |- | ||
| 15 | | 15 | ||
− | | Input | + | | Input Data Pointer |
|} | |} | ||
Line 43: | Line 43: | ||
|- | |- | ||
| 1 | | 1 | ||
− | | | + | | Result code |
|- | |- | ||
| 2-9 | | 2-9 | ||
− | | Output | + | | Output SHA-256 Hash |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
=Description= | =Description= | ||
− | This calculates a | + | This calculates a SHA-256 hash using the ARM11 hash engine. |
+ | |||
+ | None of the input flags are used at all after validation(error 0xf9604784 is returned on validation failure). |
Latest revision as of 05:42, 25 August 2016
Request[edit]
Index Word | Description |
---|---|
0 | Header code [0x084E0342] |
1-8 | Input Hash. Not used at all. |
9 | Input Data Size |
10 | u32 Flag, must be zero. |
11 | u32 Flag, must be zero. |
12 | s8 Flag, must be zero. |
13 | s8 Flag, must be non-zero. |
14 | (Size << 4) | 0xA |
15 | Input Data Pointer |
Response[edit]
Index Word | Description |
---|---|
0 | Header code |
1 | Result code |
2-9 | Output SHA-256 Hash |
Description[edit]
This calculates a SHA-256 hash using the ARM11 hash engine.
None of the input flags are used at all after validation(error 0xf9604784 is returned on validation failure).