changeset 6:ed8d308b4993

forgot aes.h
author Matt Johnston <matt@ucc.asn.au>
date Wed, 05 Jun 2013 21:30:22 +0800
parents 87c8d0a11906
children 76f3ed943180
files aes.h
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/aes.h	Wed Jun 05 21:30:22 2013 +0800
@@ -0,0 +1,16 @@
+#ifndef AES_H
+#define AES_H
+
+// 4*nB*(nK+1)
+#define AES_EXPKEY_SIZE (4*4*(4+1))
+
+void ExpandKey (unsigned char *key, unsigned char *expkey);
+// encrypt one 128 bit block
+void Encrypt (unsigned char *in, unsigned char *expkey, unsigned char *out);
+
+void Decrypt (unsigned char *in, unsigned char *expkey, unsigned char *out);
+
+
+
+
+#endif
\ No newline at end of file