annotate aes.h @ 7:76f3ed943180

a few fixes
author Matt Johnston <matt@ucc.asn.au>
date Wed, 05 Jun 2013 23:08:08 +0800
parents ed8d308b4993
children 439b7aaaec9e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1 #ifndef AES_H
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
2 #define AES_H
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
3
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4 // 4*nB*(nK+1)
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
5 #define AES_EXPKEY_SIZE (4*4*(4+1))
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
6
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
7 void ExpandKey (unsigned char *key, unsigned char *expkey);
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
8 // encrypt one 128 bit block
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
9 void Encrypt (unsigned char *in, unsigned char *expkey, unsigned char *out);
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
10
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
11 void Decrypt (unsigned char *in, unsigned char *expkey, unsigned char *out);
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
12
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
13
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
14
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
15
ed8d308b4993 forgot aes.h
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
16 #endif