Changes

1,074 bytes added ,  19:36, 14 April 2022
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00450108] |- | 1 | Input buffer size |- | 2 | Output buffer size |- | 3 | IV..."
=Request=
{| class="wikitable" border="1"
|-
! Index Word
! Description
|-
| 0
| Header code [0x00450108]
|-
| 1
| Input buffer size
|-
| 2
| Output buffer size
|-
| 3
| IV size (0x10)
|-
| 4
| (u8) DSiWare section index
|-
| 5
| (Input buffer size << 8) <nowiki>|</nowiki> 0x6
|-
| 6
| Input buffer pointer
|-
| 7
| (IV size << 8) <nowiki>|</nowiki> 0x16
|-
| 8
| Input IV buffer pointer
|-
| 9
| (Output buffer size << 8) <nowiki>|</nowiki> 0x24
|-
| 10
| Output buffer pointer
|-
| 11
| (IV size << 8) <nowiki>|</nowiki> 0x34
|-
| 12
| Output IV buffer pointer
|}

=Response=
{| class="wikitable" border="1"
|-
! Index Word
! Description
|-
| 0
| Header code [0x00450041]
|-
| 1
| Result code
|}

=Description=
This is used during [[AM:ImportTwlBackup]].

The input IV is gotten from the block metadata at the end of each section.

This command will decrypt the input buffer using the given IV, size and DSiWare section index, and outputs the resulting IV after the decryption to be reused with this command to decrypt all data until the entire section has been read.
196

edits