FSPXI:ImportIntegrityVerificationSeed: Difference between revisions
No edit summary |
EvilFlight (talk | contribs) No edit summary |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
|- | |- | ||
| 0 | | 0 | ||
| Header code [ | | Header code [0x00450002] | ||
|- | |- | ||
| 1 | | 1 | ||
| Always | | Always 0x00013006, for 0x130 size: (size<<8) <nowiki>|</nowiki> 6 | ||
|- | |- | ||
| 2 | | 2 | ||
Line 37: | Line 37: | ||
| 0x0 | | 0x0 | ||
| 0x10 | | 0x10 | ||
| AES- | | AES-CBC MAC over a SHA256 hash, which hashes the first 0x110-bytes of the cleartext SEED. | ||
|- | |- | ||
| 0x10 | | 0x10 | ||
| 0x120 | | 0x120 | ||
| The [[nand/private/movable.sed]], encrypted with AES- | | The [[nand/private/movable.sed]], encrypted with AES-CBC using the above MAC for the counter. | ||
|} | |} | ||
=Description= | =Description= | ||
This decrypts the input SEED and verifies it with the input AES- | This decrypts the input SEED and verifies it with the input AES-CBC MAC, verifies the RSA-signature, then writes the data to [[nand/private/movable.sed]]. |