Skip to content

Commit

Permalink
retail: remove f_xy implementation
Browse files Browse the repository at this point in the history
We only need the keys.
  • Loading branch information
lifehackerhansol committed Nov 18, 2024
1 parent c327c93 commit 2ef0d47
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 87 deletions.
36 changes: 0 additions & 36 deletions retail/arm9/include/gm9i/f_xy.h

This file was deleted.

10 changes: 9 additions & 1 deletion retail/arm9/source/conf_sd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include "version.h"

#include "nandio.h"
#include "f_xy.h"
#include "dsi.h"
#include "u128_math.h"

Expand All @@ -49,6 +48,15 @@

struct IgmText *igmText = (struct IgmText *)INGAME_MENU_LOCATION;

const uint8_t DSi_KEY_MAGIC[16] = { 0x79, 0x3e, 0x4f, 0x1a, 0x5f, 0x0f, 0x68, 0x2a,
0x58, 0x02, 0x59, 0x29, 0x4e, 0xfb, 0xfe, 0xff };
const uint8_t DSi_NAND_KEY_Y[16] = { 0x76, 0xdc, 0xb9, 0x0a, 0xd3, 0xc4, 0x4d, 0xbd,
0x1d, 0xdd, 0x2d, 0x20, 0x05, 0x00, 0xa0, 0xe1 };
const uint8_t DSi_ES_KEY_Y[16] = { 0xe5, 0xcc, 0x5a, 0x8b, 0x56, 0xd0, 0xc9,0x72,
0x9c, 0x17, 0xe8, 0xdc, 0x39, 0x12, 0x36, 0xa9 };
const uint8_t DSi_BOOT2_KEY[16] = { 0x98, 0xee, 0x80, 0x80, 0x00, 0x6c, 0xb4, 0xf6,
0x3a, 0xc2, 0x6e, 0x62, 0xf9, 0xec, 0x34, 0xad };

void decrypt_modcrypt_area(dsi_context* ctx, u8 *buffer, unsigned int size)
{
uint32_t len = size / 0x10;
Expand Down
50 changes: 0 additions & 50 deletions retail/arm9/source/gm9i/f_xy.c

This file was deleted.

0 comments on commit 2ef0d47

Please sign in to comment.