mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-24 12:19:21 +01:00
Miniios fixes
This commit is contained in:
parent
0df332812f
commit
fb4bac8db1
2
crypto.c
2
crypto.c
@ -26,7 +26,7 @@ void crypto_read_otp(void)
|
||||
|
||||
void crypto_read_seeprom(void)
|
||||
{
|
||||
seeprom_read(&seeprom, 0, sizeof(seeprom) / 2);
|
||||
seeprom_read(&seeprom, 0, sizeof(seeprom) / 2);
|
||||
}
|
||||
|
||||
void crypto_initialize()
|
||||
|
10
crypto.h
10
crypto.h
@ -27,11 +27,13 @@ typedef struct
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u8 version;
|
||||
u8 pad[3];
|
||||
u8 boot2version;
|
||||
u8 unknown1;
|
||||
u8 unknown2;
|
||||
u8 pad;
|
||||
u32 update_tag;
|
||||
u16 checksum;
|
||||
} __attribute__((packed)) boot2ver_t;
|
||||
} __attribute__((packed)) eep_ctr_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@ -41,7 +43,7 @@ typedef struct
|
||||
u32 dunno1; // 0x1 = CA
|
||||
u32 ng_key_id;
|
||||
u8 ng_sig[60];
|
||||
boot2ver_t boot2ver[2];
|
||||
eep_ctr_t counters[2];
|
||||
u8 fill[0x18];
|
||||
u8 korean_key[16];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user