QUOTE (toweroff @ Aug 22 2011, 15:14)

Первый, я так понимаю, "родной" атмелевский, а что во втором?
Наверняка определение KEY_COUNT, но что еще?
Да. оно самое. Генерится автоматически тем, что у Атмела было под названием CREATOR.
Выглядит так:
CODE
//--------------------------------------------------------------------------
// File: aes_data_usm3.h
// Created: Sun Apr 27 17:15:16 2006
// Description: File contains the settings to configure the boot loader
// according to the configurations used in the encrypted file.
//--------------------------------------------------------------------------
#ifndef _AES_DATA_H
#define _AES_DATA_H
#define PAGE_SIZE 512
#define FLASH_SIZE 131072
#define CRC_CHECK 1
#define SIGNATURE 0xXXXXXXXX
#define FRAME_BUFFER_SIZE 532
#define INITIALVECTOR_3 0xXXXXXXXX
#define INITIALVECTOR_2 0xXXXXXXXX
#define INITIALVECTOR_1 0xXXXXXXXX
#define INITIALVECTOR_0 0xXXXXXXXX
#define KEY_COUNT 3
#define OWNER_STRING "USM3"
#endif //_AES_DATA_H
//--------------------------------------------------------------------------
// Description: AES key table for a proper decryption of
// the file encrypted using the same configurations.
// Keys used: KEY1 = , , , , ,
// KEY2 = , , , , ,
// KEY3 = , , , ,
//--------------------------------------------------------------------------
#ifndef _AES_KEYS_H
#define _AES_KEYS_H
const unsigned char kTable[32] =
{
0xXX, 0x39, 0x58, 0x51, 0xXX, 0xb7, 0x3e, 0xXX,
0x9f, 0xc0, 0x60, 0xe7, 0xce, 0x8e, 0x1f, 0x6d,
0xba, 0x68, 0x1e, 0xac, 0x20, 0xdd, 0x10, 0x26,
0x83, 0xXX, 0x42, 0x2d, 0xca, 0x86, 0xXX, 0xXX,
};
#endif //_AES_KEYS_H