Mercurial > pihelp
diff aes.h @ 10:439b7aaaec9e
Get aes from avr231 appnote instead
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 12 Jun 2013 22:57:44 +0800 |
parents | ed8d308b4993 |
children |
line wrap: on
line diff
--- a/aes.h Thu Jun 06 00:05:13 2013 +0800 +++ b/aes.h Wed Jun 12 22:57:44 2013 +0800 @@ -1,16 +1,32 @@ -#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 +//============================================================================= +// Copyright Atmel Corporation 2003. All Rights Reserved. +// +// File: des.h +// Compiler: IAR Atmel AVR C/EC++ Compiler +// Output Size: +// Based on work by:�E, VU +// Created: 4-Feb-2003 JP (Atmel Finland) +// Modified: +// +// Support Mail: [email protected] +// +// Description: Please refer to Application Note Documentation for more +// information. +// +// For details on DES, please refer to the official FIPS 46-3 +// document: +// +// http://csrc.nist.gov/publications/fips/fips46-3/fips46-3.pdf +// +//============================================================================= + +#ifndef AES_H +#define AES_H + +//#include "bootldr.h" + +extern void aesInit( unsigned char *key, unsigned char * tempbuf ); +extern void aesDecrypt(unsigned char *buffer, unsigned char *chainBlock); + +#endif // AES_H +