2018-02-06 08:04:27 +00:00
|
|
|
#ifndef HACTOOL_EXTKEYS_H
|
|
|
|
#define HACTOOL_EXTKEYS_H
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include "types.h"
|
|
|
|
#include "utils.h"
|
|
|
|
#include "settings.h"
|
|
|
|
|
|
|
|
void parse_hex_key(unsigned char *key, const char *hex, unsigned int len);
|
|
|
|
void extkeys_initialize_keyset(nca_keyset_t *keyset, FILE *f);
|
|
|
|
|
2018-07-24 05:16:26 +00:00
|
|
|
void extkeys_parse_titlekeys(hactool_settings_t *settings, FILE *f);
|
|
|
|
|
|
|
|
int settings_has_titlekey(hactool_settings_t *settings, const unsigned char *rights_id);
|
|
|
|
void settings_add_titlekey(hactool_settings_t *settings, const unsigned char *rights_id, const unsigned char *titlekey);
|
|
|
|
titlekey_entry_t *settings_get_titlekey(hactool_settings_t *settings, const unsigned char *rights_id);
|
2018-02-06 08:04:27 +00:00
|
|
|
|
|
|
|
#endif
|