rockbox/utils/sbinfo/aes128_impl.h
Amaury Pouly 084c6905db sbinfo: add decryption support and pretty print boot section structure
The encryption/decryption uses a public domain source code

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28696 a1c6a512-1295-4272-9138-f99709370657
2010-11-28 20:56:09 +00:00

10 lines
261 B
C

#include <stdio.h>
#include <stdint.h>
#include <string.h>
typedef uint8_t byte;
void xor_(byte *a, byte *b, int n);
void EncryptAES(byte *msg, byte *key, byte *c);
void DecryptAES(byte *c, byte *key, byte *m);
void Pretty(byte* b,int len,const char* label);