annotate aes.h @ 22:a55d7c2440fd colopi1

basically done
author Matt Johnston <matt@ucc.asn.au>
date Sun, 16 Jun 2013 22:05:55 +0800
parents 439b7aaaec9e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
1 //=============================================================================
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
2 // Copyright Atmel Corporation 2003. All Rights Reserved.
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
3 //
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
4 // File: des.h
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
5 // Compiler: IAR Atmel AVR C/EC++ Compiler
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
6 // Output Size:
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
7 // Based on work by:�E, VU
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
8 // Created: 4-Feb-2003 JP (Atmel Finland)
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
9 // Modified:
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
10 //
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
11 // Support Mail: [email protected]
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
12 //
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
13 // Description: Please refer to Application Note Documentation for more
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
14 // information.
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
15 //
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
16 // For details on DES, please refer to the official FIPS 46-3
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
17 // document:
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
18 //
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
19 // http://csrc.nist.gov/publications/fips/fips46-3/fips46-3.pdf
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
20 //
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
21 //=============================================================================
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
22
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
23 #ifndef AES_H
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
24 #define AES_H
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
25
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
26 //#include "bootldr.h"
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
27
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
28 extern void aesInit( unsigned char *key, unsigned char * tempbuf );
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
29 extern void aesDecrypt(unsigned char *buffer, unsigned char *chainBlock);
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
30
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
31 #endif // AES_H
439b7aaaec9e Get aes from avr231 appnote instead
Matt Johnston <matt@ucc.asn.au>
parents: 6
diff changeset
32