FS:UpdateSha256Context: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Steveice10 (talk | contribs)
m Minor cleanup.
Line 9: Line 9:
|-
|-
| 1-8
| 1-8
| Input hash (when updating)
| Input Hash (when updating)
|-
|-
| 9
| 9
| Input data buffer size
| Input Data Size
|-
|-
| 10
| 10
Line 21: Line 21:
|-
|-
| 12
| 12
| u8, must be non-zero
| u8, Must be non-zero
|-
|-
| 13
| 13
| u8, must be non-zero
| u8, Must be non-zero
|-
|-
| 14
| 14
| (Size<<4)  <nowiki>|</nowiki> 10
| (Size << 4)  <nowiki>|</nowiki> 0xA
|-
|-
| 15
| 15
| Input data buffer ptr
| Input Data Pointer
|}
|}


Line 43: Line 43:
|-
|-
| 1
| 1
| Resultcode
| Result code
|-
|-
| 2-9
| 2-9
| Output SHA256 hash
| Output SHA-256 Hash
|-
| 10
| (Size<<4)  <nowiki>|</nowiki> 10
|-
| 11
| Data buffer ptr, same buffer from the input.
|}
|}


=Description=
=Description=
This calculates a SHA256 hash using the ARM11 hash engine.
This calculates a SHA-256 hash using the ARM11 hash engine.

Revision as of 07:48, 18 October 2015

Request

Index Word Description
0 Header code [0x084E0342]
1-8 Input Hash (when updating)
9 Input Data Size
10 Must be non-zero
11 Must be non-zero
12 u8, Must be non-zero
13 u8, Must be non-zero
14 (Size << 4) | 0xA
15 Input Data Pointer

Response

Index Word Description
0 Header code
1 Result code
2-9 Output SHA-256 Hash

Description

This calculates a SHA-256 hash using the ARM11 hash engine.