Difference between revisions of "CECDU:ReadMessageWithHMAC"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00040106] |- | 1 | NCCH Program ID |- | 2 | bool is_out_box? |- | 3 | message...")
 
(Use new template)
 
Line 1: Line 1:
 
=Request=
 
=Request=
{| class="wikitable" border="1"
+
{{IPC/Request}}
|-
+
{{#vardefine:ipc_offset|0}}
!  Index Word
+
{{IPC/RequestEntry|Header code [0x00040106]}}
!  Description
+
{{IPC/RequestEntry|NCCH Program ID}}
|-
+
{{IPC/RequestEntry|bool is_out_box?}}
| 0
+
{{IPC/RequestEntry|message ID size (unused, always 8)}}
| Header code [0x00040106]
+
{{IPC/RequestEntry|buffer size (unused)}}
|-
+
{{IPC/MapPointerR|message ID address}}
| 1
+
{{IPC/MapPointerR|HMAC key address}}
| NCCH Program ID
+
{{IPC/MapPointerW|buffer address}}
|-
+
{{IPC/RequestEnd}}
| 2
 
| bool is_out_box?
 
|-
 
| 3
 
| message ID size (unused, always 8)
 
|-
 
| 4
 
| buffer size (unused)
 
|-
 
| 5
 
| [[IPC#Buffer_Mapping_Translation|Buffer Mapping Descriptor(R)]] = (message_ID_size << 4) | 0xA
 
|-
 
| 6
 
| message ID address
 
|-
 
| 7
 
| [[IPC#Buffer_Mapping_Translation|Buffer Mapping Descriptor(R)]] = (HMAC_key_size << 4) | 0xA
 
|-
 
| 8
 
| HMAC key address
 
|-
 
| 9
 
| [[IPC#Buffer_Mapping_Translation|Buffer Mapping Descriptor(W)]] = (buffer_size << 4) | 0xC
 
|-
 
| 10
 
| buffer address
 
|-
 
|}
 
  
 
=Response=
 
=Response=
{| class="wikitable" border="1"
+
{{IPC/Request}}
|-
+
{{#vardefine:ipc_offset|0}}
!  Index Word
+
{{IPC/RequestEntry|Header code [0x00040086]}}
!  Description
+
{{IPC/RequestEntry|Result code}}
|-
+
{{IPC/RequestEntry|Read size}}
| 0
+
{{IPC/MapPointerR|message ID address}}
| Header code [0x00040086]
+
{{IPC/MapPointerR|HMAC key address}}
|-
+
{{IPC/MapPointerW|buffer address}}
| 1
+
{{IPC/RequestEnd}}
| Result code
 
|-
 
| 2
 
| Read size
 
|-
 
| 3
 
| [[IPC#Buffer_Mapping_Translation|Buffer Unmapping Descriptor(R)]] = (message_ID_size << 4) | 0xA
 
|-
 
| 4
 
| message ID address
 
|-
 
| 5
 
| [[IPC#Buffer_Mapping_Translation|Buffer Unmapping Descriptor(R)]] = (HMAC_key_size << 4) | 0xA
 
|-
 
| 6
 
| HMAC key address
 
|-
 
| 7
 
| [[IPC#Buffer_Mapping_Translation|Buffer Unmapping Descriptor(W)]] = (buffer_size << 4) | 0xC
 
|-
 
| 8
 
| buffer address
 
|-
 
|}
 

Latest revision as of 03:29, 10 September 2016

Request[edit]

Index Word Description
0 Header code [0x00040106]
1 NCCH Program ID
2 bool is_out_box?
3 message ID size (unused, always 8)
4 buffer size (unused)
5 Descriptor for mapping a read-only buffer in the target process
6 message ID address
7 Descriptor for mapping a read-only buffer in the target process
8 HMAC key address
9 Descriptor for mapping a write-only buffer in the target process
10 buffer address

Response[edit]

Index Word Description
0 Header code [0x00040086]
1 Result code
2 Read size
3 Descriptor for mapping a read-only buffer in the target process
4 message ID address
5 Descriptor for mapping a read-only buffer in the target process
6 HMAC key address
7 Descriptor for mapping a write-only buffer in the target process
8 buffer address