AES Registers: Difference between revisions

Line 686: Line 686:
* The last initialized keyslot is 0x3F, via normalkey. The keydata for this is copied to 0xFFF00618. This is for restoring the keydata when non-NAND FIRM boot ''fails'', since those use keyslot 0x3F with other keydata.
* The last initialized keyslot is 0x3F, via normalkey. The keydata for this is copied to 0xFFF00618. This is for restoring the keydata when non-NAND FIRM boot ''fails'', since those use keyslot 0x3F with other keydata.
* Lastly it clears the 0x40-bytes at tmpbuf with the u32 loaded from bootrom_dataptr(the word following the above keyslot 0x3F keydata), then returns.
* Lastly it clears the 0x40-bytes at tmpbuf with the u32 loaded from bootrom_dataptr(the word following the above keyslot 0x3F keydata), then returns.
The keyslots are initialized with the same order of keyslots+keydata_type listed below:
Console-unique keydata, after the initialization for the key-generation keyslot(0x3F):
  0x04..0x07 keyX
  0x08..0x0B keyX
  0x0C..0x0F keyX
  0x10      keyX
  0x14..0x17 keyX
  0x18..0x1B keyX
  0x1C..0x1F keyX
  0x20..0x23 keyX
  0x24      keyX
  0x28..0x2B keyX
Common keydata:
  0x2C..0x2F keyX
  0x30..0x33 keyX
  0x34..0x37 keyX
  0x38..0x3B keyX
  0x3C..0x3F keyX
  0x04..0x0B keyY
  0x0C..0x0F normalkey
  0x10..0x13 normalkey
  0x14..0x17 normalkey
  0x18..0x1B normalkey
  0x1C..0x1F normalkey
  0x20..0x23 normalkey
  0x24..0x27 normalkey
  0x28..0x2B normalkey
  0x2C..0x2F normalkey
  0x30..0x33 normalkey
  0x34..0x37 normalkey
  0x38..0x3B normalkey
  0x3C..0x3F normalkey