This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pure python AES128 implementation | |
# SciresM, 2017 | |
from struct import unpack as up, pack as pk | |
def sxor(s1, s2): | |
'''Xors two strings.''' | |
assert(len(s1) == len(s2)) | |
return ''.join([chr(ord(x) ^ ord(y)) for x,y in zip(s1, s2)]) | |
class AESCBC: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <3ds.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
void __system_allocateHeaps(void) | |
{ | |
extern char* fake_heap_start; | |
extern char* fake_heap_end; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
typedef unsigned long long u64; | |
typedef unsigned int u32; | |
typedef unsigned short u16; | |
typedef unsigned char u8; | |
int main(int argc, char** argv) |