GodMode9/arm9/source/gamecart/secure_ntr.h
xp0x00 0036f39fc6
Add dev DSi blowfish key support to dump dev software (#969)
* Add dev DSi blowfish key support to dump dev roms

* Mention dev DSi blowfish support file in readme

* Adjust dsi dev app check

* Load support file immediately
2026-07-19 11:55:00 +02:00

21 lines
613 B
C

#pragma once
#include "common.h"
#define BLOWFISHKEYDEV_NAME "TwlBlowfishKeyDev.bin"
typedef struct _IKEY1{
u32 iii;
u32 jjj;
u32 kkkkk;
u32 llll;
u32 mmm;
u32 nnn;
} IKEY1, *PIKEY1;
void NTR_InitKey (u32 aGameCode, u32* pCardHash, int nCardHash, u32* pKeyCode, int level, int iCardDevice);
void NTR_InitKey1 (u8* aCmdData, IKEY1* pKey1, int iCardDevice);
void NTR_CreateEncryptedCommand (u8 aCommand, u32* pCardHash, u8* aCmdData, IKEY1* pKey1, u32 aBlock);
void NTR_DecryptSecureArea (u32 aGameCode, u32* pCardHash, int nCardHash, u32* pKeyCode, u32* pSecureArea, int iCardDevice);