/************************************************************************************ * AES Encryption Library * * Author(s): JRJEN1, BPPED1, B06623 * * (c) Copyright 2005, Freescale, Inc. All rights reserved. * * Freescale Confidential Proprietary * Digianswer Confidential * * No part of this document must be reproduced in any form - including copied, * transcribed, printed or by any electronic means - without specific written * permission from Freescale. * * Last Inspected: 1/14/2008 * Last Tested: 1/14/2008 ************************************************************************************/ #include "FslTypes.h" /********************************CONFIGURATION SWITCHES*****************************/ #define MEMORY_IN_STACK 1 /* Compile switch on when MEMORY_IN_STACK = 1 */ /************************************************************************************ ************************************************************************************* * Public prototypes *************************************************************************************/ /*************************************** AES ************************************** * AES encryption engine * * void SecLib_Aes(const unsigned char *pData, const unsigned char *pKey, unsigned char *pReturnData) * * Input: 128bit key, and 128bit data, d0,d1,d2,...,d13,d14,d15 * Output 128bit encrypted data cipher **********************************************************************************/ void Aes_Encrypt(UINT8 *Data, UINT8 *Key, UINT8 *ReturnData);