/** ****************************************************************************** * @file XDES.h * @author TMC Terminal Team * @version V1.0.0 * @date 01/21/2016 * @brief This file provides all the SUART firmware functions. * History: * 2016-01-13 Original version ****************************************************************************** * * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE * TIME. AS A RESULT, TMC SHALL NOT BE HELD LIABLE FOR ANY * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. * *

© COPYRIGHT 2016 TMC

****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef _XDES_H #define _XDES_H #ifdef __cplusplus extern "C" { #endif /** * @brief None Secure Xdes function * @param[in] bmode * @arg 0x05 Decrypt * @arg 0x0A Encrypt * @arg 0x50 2 Des * @arg 0xA0 1 Des * @arg 0x30 3 Des * @param[in] pbDataIn: input data * @param[in] pbDataOut: Output data * @retval none * @note none */ void XDES_ECB(uint8_t *pbKey, uint8_t *pbDataIn, uint8_t * pbDataOut, uint32_t bmode ); /** * @brief Security ECB Xdes function * @param[in] bmode * @arg 0x05 Decrypt * @arg 0x0A Encrypt * @arg 0x50 2 Des * @arg 0xA0 1 Des * @arg 0x30 3 Des * @param[in] pbDataIn: input data * @param[in] pbDataOut: Output data * @retval 0xAAAA :sucess * 0x5555 :error * @note none */ uint16_t XDES_SecurityECB(uint8_t *pbKey, uint8_t *pbDataIn, uint8_t *pbDataOut, uint32_t bmode); #ifdef __cplusplus } #endif #endif /* __TMC_USART_H */ /** * @} */ /** * @} */ /** * @} */