mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-26 12:12:02 +00:00
18 lines
No EOL
462 B
C
18 lines
No EOL
462 B
C
#pragma once
|
|
|
|
#ifndef __EXTKEYS_H__
|
|
#define __EXTKEYS_H__
|
|
|
|
#include <switch.h>
|
|
#include <string.h>
|
|
|
|
typedef struct {
|
|
u32 key_cnt;
|
|
unsigned char header_key[0x20]; /* NCA header key. */
|
|
unsigned char key_area_keys[0x20][3][0x10]; /* Key area encryption keys. */
|
|
} nca_keyset_t;
|
|
|
|
int parse_hex_key(unsigned char *key, const char *hex, unsigned int len);
|
|
int extkeys_initialize_keyset(nca_keyset_t *keyset, FILE *f);
|
|
|
|
#endif |