mirror of
https://github.com/encounter/Decrypt9.git
synced 2026-03-30 11:06:30 -07:00
33daf7fdb2
... also some code reorganization. Removed "features.h" file.
26 lines
515 B
C
26 lines
515 B
C
#pragma once
|
|
|
|
#include "common.h"
|
|
|
|
#define MAX_ENTRIES 1024
|
|
|
|
typedef struct {
|
|
u32 commonKeyIndex;
|
|
u8 reserved[4];
|
|
u8 titleId[8];
|
|
u8 encryptedTitleKey[16];
|
|
} __attribute__((packed)) TitleKeyEntry;
|
|
|
|
typedef struct {
|
|
u32 n_entries;
|
|
u8 reserved[12];
|
|
TitleKeyEntry entries[MAX_ENTRIES];
|
|
} __attribute__((packed, aligned(16))) EncKeysInfo;
|
|
|
|
|
|
u32 DecryptTitlekey(TitleKeyEntry* entry);
|
|
|
|
// --> FEATURE FUNCTIONS <--
|
|
u32 DecryptTitlekeysFile(u32 param);
|
|
u32 DecryptTitlekeysNand(u32 param);
|