Difference between revisions of "APT:Wrap1"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00520104] |- | 1 | Output Size |- | 2 | Input Size |- | 3 | Block Size |- | 4 | ...")
 
 
Line 15: Line 15:
 
|-
 
|-
 
| 3
 
| 3
| Block Size
+
| Nonce Offset
 
|-
 
|-
 
| 4
 
| 4
Line 45: Line 45:
 
| Result code
 
| Result code
 
|}
 
|}
 +
 +
=Description=
 +
Similar to [[APT:Wrap]], but using a software AES-CCM implementation with a different key stored in the NS module. This is probably to avoid [[AES_Registers#CCM_mode_pitfall|a bug in the hardware implementation]].

Latest revision as of 22:49, 21 July 2017

Request[edit]

Index Word Description
0 Header code [0x00520104]
1 Output Size
2 Input Size
3 Nonce Offset
4 Nonce Size (capped to 12)
5 (Input Size << 4) | 0xA
6 void*, Input
7 (Output Size << 4) | 0xC
8 void*, Output

Response[edit]

Index Word Description
0 Header code
1 Result code

Description[edit]

Similar to APT:Wrap, but using a software AES-CCM implementation with a different key stored in the NS module. This is probably to avoid a bug in the hardware implementation.