Miniios fixes

This commit is contained in:
marcan 2009-03-10 07:05:11 +01:00 committed by bushing
parent 0df332812f
commit fb4bac8db1
2 changed files with 7 additions and 5 deletions

View File

@ -26,7 +26,7 @@ void crypto_read_otp(void)
void crypto_read_seeprom(void) void crypto_read_seeprom(void)
{ {
seeprom_read(&seeprom, 0, sizeof(seeprom) / 2); seeprom_read(&seeprom, 0, sizeof(seeprom) / 2);
} }
void crypto_initialize() void crypto_initialize()

View File

@ -27,11 +27,13 @@ typedef struct
typedef struct typedef struct
{ {
u8 version; u8 boot2version;
u8 pad[3]; u8 unknown1;
u8 unknown2;
u8 pad;
u32 update_tag; u32 update_tag;
u16 checksum; u16 checksum;
} __attribute__((packed)) boot2ver_t; } __attribute__((packed)) eep_ctr_t;
typedef struct typedef struct
{ {
@ -41,7 +43,7 @@ typedef struct
u32 dunno1; // 0x1 = CA u32 dunno1; // 0x1 = CA
u32 ng_key_id; u32 ng_key_id;
u8 ng_sig[60]; u8 ng_sig[60];
boot2ver_t boot2ver[2]; eep_ctr_t counters[2];
u8 fill[0x18]; u8 fill[0x18];
u8 korean_key[16]; u8 korean_key[16];
}; };