亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? securitymngmnt.h

?? 基于MMA7260QR2的跌落檢查程序
?? H
字號:
/************************************************************************************
* This header file is the interface for the Security Management implementation
*
* (c) Copyright 2006, Freescale, Inc.  All rights reserved.
*
*
* 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.
*
************************************************************************************/
#ifndef _SECURITY_MNGMNT_
#define _SECURITY_MNGMNT_

#include "GlobalDefs.h"
#include "../Configure/options_config.h"


#if SMAC_FEATURE_SECURITY == TRUE

/************************************************************************************
*************************************************************************************
* Public macros
*************************************************************************************
************************************************************************************/

/************************************************************************************
*************************************************************************************
* Public prototypes
*************************************************************************************
************************************************************************************/

/************************************************************************************
*************************************************************************************
* Public type definitions
*************************************************************************************
************************************************************************************/

typedef enum cipher_mode_tag{
  gCTRMode_c = 0,
  gCBCMode_c ,
  gCCMMode_c,
  gMaxCipherMode
} cipher_mode_t;

typedef struct cipher_key_tag{
  uint32_t key0;
  uint32_t key1;
  uint32_t key2;
  uint32_t key3;
} cipher_key_t;
	
typedef struct ctr_value_tag{
  uint32_t ctr0;
  uint32_t ctr1;
  uint32_t ctr2;
  uint32_t ctr3;
}ctr_value_t;


/************************************************************************************
*************************************************************************************
* Public memory declarations
*************************************************************************************
************************************************************************************/

/************************************************************************************
*************************************************************************************
* Public functions
*************************************************************************************
************************************************************************************/

/************************************************************************************
* CipherEngineInit function performs a test to verify the operation of the 
* encryption engine.
*
*
* Return value: gFailTest_c shall be sent if the Encryption Test fail.
*               gSuccess_c when Encryption test pass.
*
* Revison history:
*   date      Author    Comments
*   ------    ------    --------
*
************************************************************************************/
extern FuncReturn_t CipherEngineInit(void);

/************************************************************************************
* CipherConfigure function configures all parameter for the cipher process, the
* cipher mode, the key and the ctr value when the CTR mode is selected.
*
* Parameters:  cipher_mode_t u8CipherMode: Cipher mode supported by the ASM module.
*                                          gCTRMode_c for CTR mode
*                                          gCBCMode_c for CBC mode
*                                          gCCMMode_c for CCM mode
*              cipher_key_t key: a pointer to the key which will be used by the 
                                encryption engine.
*              ctr_value ctr: a pointer to the counter used in CTR and CCB modes.
*
* Return value: gSuccess_c if the configuration has been successful.
*               gFailTest_c when the Encryption Engine Test failed or has not been 
*               executed.
*               gFailOutOfRange_c for an incorrect parameter.
*
* Revison history:
*   date      Author    Comments
*   ------    ------    --------
*
************************************************************************************/
extern FuncReturn_t CipherConfigure(cipher_mode_t u8CipherMode, cipher_key_t * pCipherKey, ctr_value_t * pCtrValue);


/************************************************************************************
* * CipherMSG function is called to cipher a message in block of 16 bytes, each block 
* is ciphered in 66 cycles, the device with a clock of 24 MHz executes this process in 
* 5.5 microseconds.
*
* Interface assumptions: The Buffer lenght to be decipher must be a multiple of 16 bytes,
*                       also minor to 112 bytes because the payload of a SMAC package is
*                       123 bytes then 112 is the maximun number multiple of 16 bytes. 
*                       For the CCM and CBC modes, the buffer lenght must be 
*                       16 bytes longer that the data size to store the MAC value. 
*
* Parameters: uint32_t * pu8CipherBuffer, buffer to be ciphered.
*             uint8_t u8BufferLength, Buffer Size.
*             
*
* Return value: gFailTest_c when the Encryption Engine Test failed or has not been 
*               executed.
*               gFailOutOfRange_c for an incorrect parameter.
*               gSuccess_c if the cipher process have been successful.
*
* Revison history:
*   date      Author    Comments
*   ------    ------    --------
*   
************************************************************************************/
extern FuncReturn_t CipherMsg (uint32_t * pu8CipherBuffer, uint8_t u8BufferLength);

/************************************************************************************
* * DecipherMSG function is called to descipher a message.
*
* Interface assumptions: The Buffer lenght to be decipher must be a multiple of 16 bytes,
*                       also minor to 112 bytes because the payload of a SMAC package is
*                       123 bytes then 112 is the maximun number multiple of 16 bytes. 
*                       For the CCM and CBC cipher modes the buffer lenght must be 
*                       16 bytes longer that the data size to store the MAC value. 
*
* Parameters: uint32_t * pu8CipherBuffer, buffer to be ciphered.
*             uint8_t u8BufferLength, Buffer Size.
*             
*
* Return value: gFailTest_c when the Encryption Engine Test failed or has not been 
*               executed.
*               gFailOutOfRange_c for an incorrect parameter.
*               gSuccess_c if the cipher process have been successful.
*
* Revison history:
*   date      Author    Comments
*   ------    ------    --------
*   
************************************************************************************/
extern FuncReturn_t DecipherMsg (uint32_t *pu32DecipherBuffer, uint8_t u8BufferLength);


/************************************************************************************
* * CipherMsgU8 function is called to cipher a message in block of 16 bytes, each block 
* is ciphered in 66 cycles, the device with a clock of 24 MHz executes this process in 
* 5.5 microseconds.
*
* Interface assumptions: The Buffer lenght to be decipher must be a multiple of 16 bytes,
*                       also minor to 112 bytes because the payload of a SMAC package is
*                       123 bytes then 112 is the maximun number multiple of 16 bytes. 
*                       For the CCM and CBC modes, the buffer lenght must be 
*                       16 bytes longer that the data size to store the MAC value. 
*
* Parameters: uint32_t * pu8CipherBuffer, buffer to be ciphered.
*             uint8_t u8BufferLength, Buffer Size.
*             
*
* Return value: gFailTest_c when the Encryption Engine Test failed or has not been 
*               executed.
*               gFailOutOfRange_c for an incorrect parameter.
*               gSuccess_c if the cipher process have been successful.
*
* Revison history:
*   date      Author    Comments
*   ------    ------    --------
*   
************************************************************************************/
extern FuncReturn_t CipherMsgU8(uint8_t *pu8CipherBuffer, uint8_t u8BufferLength);


/************************************************************************************
* * DecipherMsgU8 function is called to descipher a message.
*
* Interface assumptions: The Buffer lenght to be decipher must be a multiple of 16 bytes,
*                       also minor to 112 bytes because the payload of a SMAC package is
*                       123 bytes then 112 is the maximun number multiple of 16 bytes. 
*                       For the CCM and CBC cipher modes the buffer lenght must be 
*                       16 bytes longer that the data size to store the MAC value. 
*
* Parameters: uint32_t * pu8CipherBuffer, buffer to be ciphered.
*             uint8_t u8BufferLength, Buffer Size.
*             
*
* Return value: gFailTest_c when the Encryption Engine Test failed or has not been 
*               executed.
*               gFailOutOfRange_c for an incorrect parameter.
*               gSuccess_c if the cipher process have been successful.
*
* Revison history:
*   date      Author    Comments
*   ------    ------    --------
*   
************************************************************************************/
extern FuncReturn_t DecipherMsgU8(uint8_t *pu8CipherBuffer, uint8_t u8BufferLength);

/**********************************************************************************/

#endif //SMAC_FEATURE_SECURITY == TRUE

#endif /* _SECURITY_MNGMNT_ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
69堂国产成人免费视频| 激情五月婷婷综合| 亚洲成人免费看| 亚洲精品国产无天堂网2021| 亚洲激情五月婷婷| 免费的国产精品| 成人精品小蝌蚪| 在线免费观看日本欧美| xvideos.蜜桃一区二区| 亚洲欧美国产高清| 国产在线一区二区| 色吊一区二区三区| 国产午夜一区二区三区| 五月天一区二区三区| 国产成人精品亚洲777人妖| 91视频.com| 99精品一区二区| 日韩欧美另类在线| 国产精品久久久久一区二区三区共| 91精品国产91综合久久蜜臀| 欧美日韩一区二区在线观看| 国产欧美一区二区精品仙草咪| 一区二区三区电影在线播| 久久精品二区亚洲w码| 91视频免费播放| 国产午夜精品一区二区三区视频 | 中文字幕的久久| 亚洲午夜精品在线| 成人精品高清在线| 久久色中文字幕| 午夜视频一区在线观看| 精品一区二区免费| 4438x亚洲最大成人网| 一区二区三区鲁丝不卡| 成人av电影在线播放| 日韩午夜激情电影| 精品伊人久久久久7777人| 欧美夫妻性生活| 一区二区欧美国产| 一本一道波多野结衣一区二区| 国产精品天天摸av网| 日韩视频一区在线观看| 欧美日韩国产精选| 一区二区三区不卡视频在线观看| 欧美精品一区二区三区蜜桃 | 国产精品久久免费看| 欧美a级一区二区| 欧美亚一区二区| 亚洲一区在线观看免费| 色综合久久综合网| 亚洲国产精品久久久久秋霞影院| 日本国产一区二区| 久久久精品2019中文字幕之3| 亚洲成a人片综合在线| 国产欧美一区二区精品仙草咪| av亚洲精华国产精华| 洋洋av久久久久久久一区| 久久久噜噜噜久久人人看| 91在线视频免费91| 亚洲另类中文字| 欧美亚洲另类激情小说| 日韩精品一卡二卡三卡四卡无卡 | 免费欧美在线视频| 国产成人免费xxxxxxxx| 色狠狠一区二区| 亚洲另类一区二区| 亚洲视频香蕉人妖| 亚洲另类春色国产| 久久久精品免费网站| 日本道在线观看一区二区| 99国产精品久| 91视频在线看| 色综合久久中文综合久久牛| 久久99精品网久久| 亚洲18女电影在线观看| 国产精品少妇自拍| 国产精品你懂的在线欣赏| 亚洲精品久久7777| 日本视频在线一区| 一区二区三区成人在线视频| 亚洲精品国产精华液| 亚洲黄色性网站| 一区二区三区在线播放| 亚洲美女区一区| 天天操天天综合网| 日韩精品成人一区二区在线| 日韩电影在线免费| 日av在线不卡| 成人不卡免费av| 欧美性猛交xxxxxx富婆| 欧美一级黄色片| 最新日韩av在线| 日本怡春院一区二区| 一色屋精品亚洲香蕉网站| 日韩在线一二三区| 在线观看视频91| 最新高清无码专区| 成人av在线电影| 欧美挠脚心视频网站| 精品国产乱码久久久久久久久| 中文字幕一区二区三区在线播放 | 欧美三级在线播放| 亚洲国产精华液网站w| 视频一区二区中文字幕| 91色视频在线| 日本一区二区视频在线观看| 人禽交欧美网站| 678五月天丁香亚洲综合网| 亚洲三级小视频| 一本大道av一区二区在线播放 | 国产综合成人久久大片91| 国产精品123| 中文字幕精品三区| 丁香六月综合激情| 国产日韩欧美a| 国产91高潮流白浆在线麻豆| 精品嫩草影院久久| 蜜桃一区二区三区四区| 欧美一级电影网站| 亚洲18色成人| 日韩精品中文字幕一区二区三区 | 国内精品免费**视频| 国产欧美视频一区二区| 粉嫩av一区二区三区粉嫩| 国产午夜精品一区二区| 99riav久久精品riav| 亚洲成人免费在线观看| 精品国产一区a| 成人精品国产福利| 午夜日韩在线电影| 懂色一区二区三区免费观看| 亚洲女同ⅹxx女同tv| 成人免费毛片a| 亚洲成av人片| 国产精品水嫩水嫩| 日韩一二三区不卡| 欧美四级电影在线观看| 国产一区三区三区| 一区二区成人在线| 国产日本欧洲亚洲| 日韩欧美国产高清| 欧美视频一区二区在线观看| www.欧美.com| 粉嫩绯色av一区二区在线观看 | 精品一区二区三区在线播放| 亚洲免费在线观看视频| 久久久久久久网| 91.xcao| 欧美老人xxxx18| 在线观看中文字幕不卡| 成人av免费在线播放| 国产一区二区三区香蕉| 久久精品99国产精品日本| 天天综合色天天| 偷窥国产亚洲免费视频| 亚洲最新视频在线观看| 1000精品久久久久久久久| 国产日韩av一区| 精品久久久久久久人人人人传媒| 国产高清不卡二三区| 成人做爰69片免费看网站| 亚洲精品高清视频在线观看| 日韩精品专区在线| 国产亚洲污的网站| 亚洲精品国产视频| 午夜一区二区三区视频| 国产一区二区三区在线观看精品| 韩国女主播成人在线| 高清不卡一区二区| 欧美色爱综合网| 久久久久九九视频| 亚洲国产精品一区二区久久恐怖片| 亚洲一区二区三区四区的| 日韩av高清在线观看| 亚洲精品水蜜桃| 美女精品一区二区| 色八戒一区二区三区| 2024国产精品| 日本在线不卡视频| 91久久精品网| 久久综合一区二区| 免费欧美日韩国产三级电影| 国产一区二区伦理| 欧美精品aⅴ在线视频| 亚洲色图都市小说| 国产成人亚洲精品青草天美| 欧美日韩精品一区二区三区四区| 国产日韩欧美精品在线| 国产成人精品免费网站| 国产三级精品三级在线专区| 国产乱人伦偷精品视频不卡 | 一区二区三区欧美在线观看| 成人黄色在线视频| 国产在线国偷精品产拍免费yy| 粉嫩一区二区三区在线看| 亚洲欧美在线高清| 日韩丝袜情趣美女图片| 国产精品一区二区在线看| 亚洲欧美一区二区视频| 7777精品伊人久久久大香线蕉的 |