summaryrefslogtreecommitdiffstats
path: root/utils/sbinfo/aes128_impl.h
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2010-11-28 20:56:09 +0000
committerAmaury Pouly <pamaury@rockbox.org>2010-11-28 20:56:09 +0000
commit084c6905db4c27c61fbf4ccd78389494fab242de (patch)
tree744f2013272bcd1c83c1b1be6d1080928989cd5a /utils/sbinfo/aes128_impl.h
parenta0480c734aa30ab00e877dc33daac30ed484cd99 (diff)
downloadrockbox-084c6905db4c27c61fbf4ccd78389494fab242de.tar.gz
rockbox-084c6905db4c27c61fbf4ccd78389494fab242de.zip
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
Diffstat (limited to 'utils/sbinfo/aes128_impl.h')
-rw-r--r--utils/sbinfo/aes128_impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/sbinfo/aes128_impl.h b/utils/sbinfo/aes128_impl.h
new file mode 100644
index 0000000000..7f1b966cd3
--- /dev/null
+++ b/utils/sbinfo/aes128_impl.h
@@ -0,0 +1,10 @@
+#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);