[makerom] corrected aes keygen code, thanks plutoo.

This commit is contained in:
jakcron
2016-01-15 21:51:59 +08:00
parent 8420f9dadd
commit fefa25f5ad
5 changed files with 29 additions and 21 deletions
+2 -6
View File
@@ -2,11 +2,7 @@
#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
AES Key generator for the Nintendo 3DS (CTR) Consoles
*/
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);
void ctr_aes_keygen(const uint8_t *x, const uint8_t *y, uint8_t *key);