view aes.h @ 8:03da5ff767e9

Some debug ifdefs Decrypt should use the next key for cli auth (Decrpyt is incorrect)
author Matt Johnston <matt@ucc.asn.au>
date Thu, 06 Jun 2013 00:04:48 +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