view aes.h @ 6:ed8d308b4993

forgot aes.h
author Matt Johnston <matt@ucc.asn.au>
date Wed, 05 Jun 2013 21:30:22 +0800
parents
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