[makerom] misc

This commit is contained in:
jakcron
2016-01-05 22:52:47 +08:00
parent 695fadcb3c
commit 26affd158c
5 changed files with 149 additions and 10 deletions
+12
View File
@@ -0,0 +1,12 @@
#pragma once
#include <stdint.h>
/*
AES Key generator for the Nintendo (Handheld) Consoles
BYO keygen constants, and input >>> parameters
key = ((x >>> x_shift) ^ (y >>> y_shift)) + keygen_constant
*/
void n_aes_keygen(const uint8_t *x, uint8_t x_shift, const uint8_t *y, uint8_t y_shift, const uint8_t *keygen_constant, uint8_t *key);