Question about keys.bin structure January 14, 2010 10:42AM | Registered: 13 years ago Posts: 1 |
Quote
vola
Bootmii appends a 1024 byte footer in the nand.bin or in version 0.3 in a separate keys.bin file.
This footer or file contains all the keys and info for your console, the same infos of xyzzy output.
By the way the structure of this key is not very readable :)
Once you have this 1024 bytes, with an hex editor you can extract the keys, starting at position 100h you can look at this struct (the first one):
[gitweb.bootmii.org]
- 100h => boot1 hash (20 bytes)
- 114h => common key (16 bytes)
- 124h => ng_id (4 bytes)
- 128h => ng_priv (30 bytes) I think this is what you need.
- 144h => nand hmac (20 bytes)
- 158h => nand_key (16 bytes)
- 168h => rng_key (16 bytes)
I'm sure the nand key and hmac is on this position, for the rest I took the things from the struct.
Seem also the last 2 bytes of ng_priv are the first of hmac.
What is the ulitily of PRNG ??