comparison 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
comparison
equal deleted inserted replaced
9:3aa92c7f379c 10:439b7aaaec9e
1 //=============================================================================
2 // Copyright Atmel Corporation 2003. All Rights Reserved.
3 //
4 // File: des.h
5 // Compiler: IAR Atmel AVR C/EC++ Compiler
6 // Output Size:
7 // Based on work by:�E, VU
8 // Created: 4-Feb-2003 JP (Atmel Finland)
9 // Modified:
10 //
11 // Support Mail: [email protected]
12 //
13 // Description: Please refer to Application Note Documentation for more
14 // information.
15 //
16 // For details on DES, please refer to the official FIPS 46-3
17 // document:
18 //
19 // http://csrc.nist.gov/publications/fips/fips46-3/fips46-3.pdf
20 //
21 //=============================================================================
22
1 #ifndef AES_H 23 #ifndef AES_H
2 #define AES_H 24 #define AES_H
3 25
4 // 4*nB*(nK+1) 26 //#include "bootldr.h"
5 #define AES_EXPKEY_SIZE (4*4*(4+1))
6 27
7 void ExpandKey (unsigned char *key, unsigned char *expkey); 28 extern void aesInit( unsigned char *key, unsigned char * tempbuf );
8 // encrypt one 128 bit block 29 extern void aesDecrypt(unsigned char *buffer, unsigned char *chainBlock);
9 void Encrypt (unsigned char *in, unsigned char *expkey, unsigned char *out);
10 30
11 void Decrypt (unsigned char *in, unsigned char *expkey, unsigned char *out); 31 #endif // AES_H
12 32
13
14
15
16 #endif