view 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
line wrap: on
line source

#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