Difference between revisions of "AMPXI:VerifyDSiWareFooter"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x004301C8] |- | 1 | TWL TitleID lower word, from the header. ...")
 
Line 15: Line 15:
 
|-
 
|-
 
| 3
 
| 3
| Data buffer size
+
| Data buffer size. When the running NATIVE_FIRM only supports [[DSiWare_Exports|DSiWare]] exports format v1, the max size for this is 0xC0, otherwise the max size is 0x1C0.
 
|-
 
|-
 
| 4
 
| 4
| ECDSA signature buffer size
+
| ECDSA signature buffer size, must be 0x3C.
 
|-
 
|-
 
| 5
 
| 5
| [[CTCert]] buffer size
+
| [[CTCert]] buffer size, must be 0x180.
 
|-
 
|-
 
| 6
 
| 6
| APCert buffer size
+
| APCert buffer size, must be 0x180.
 
|-
 
|-
 
| 7
 
| 7

Revision as of 17:56, 25 April 2013

Request

Index Word Description
0 Header code [0x004301C8]
1 TWL TitleID lower word, from the header.
2 TWL TitleID upper word, from the header.
3 Data buffer size. When the running NATIVE_FIRM only supports DSiWare exports format v1, the max size for this is 0xC0, otherwise the max size is 0x1C0.
4 ECDSA signature buffer size, must be 0x3C.
5 CTCert buffer size, must be 0x180.
6 APCert buffer size, must be 0x180.
7 u8 DSiWare export section index
8 (DataBufSize<<8) | 0x4
9 DataBuf ptr, this buffer contains the hashes from the footer.
10 (SigBufSize<<8) | 0x14
11 ECDSA signature ptr, this signs the above data-buffer.
12 (CTCertSize<<8) | 0x24
13 CTCert buffer ptr, from the footer.
14 (APCertSize<<8) | 0x34
15 APCert buffer ptr, from the footer.

Response

Index Word Description
0 Header code
1 Result code

Description

This verifies the ECDSA signature and certificates from the DSiWare export footer.