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

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

?? hal_aes.h

?? 非常全的nrf2401設計資料
?? H
字號:
/* Copyright (c) 2006 Nordic Semiconductor. All Rights Reserved.
 *
 * The information contained herein is confidential property of Nordic 
 * Semiconductor. The use, copying, transfer or disclosure of such information 
 * is prohibited except by express written agreement with Nordic Semiconductor.
 */

/** @file hal_aes.h
 * Interface functions and defined values for the AES HAL
 * @defgroup nordic_aes AES encryption
 * @{
 * @ingroup nordic_hal
 *
 * @brief Interface functions for encrypting data using the Advanced Encryption Standard (AES) 
 * hardware module(s).
 * 
 * The nRF24LE1 contains a co-processor for computing an 8 by 8 Galois Field Multiplication 
 * with an 8 bits output. This is the polynomial used by AES (Advanced Encryption Standard). 
 *
 * The nRF24LU1 contains a full hardware implementation of the AES algorithm, supporting 
 * both encryption and decryption for the modes ECB, CTR, OFB, CFB and CBC.
 *
 * The AES HAL contains a common interface using the dedicated hardware implementation 
 * for the nRF24LU1 and a firmware implementation utilizing the Galois Multiplication 
 * co-processor for the nRF24LE1.
 *
 * <b>Note that for the nRF24LE1 implementation only ECB mode encryption is supported.</b>
 *
 * @author Lasse Olsen
 */

#ifndef HAL_AES_H__
#define HAL_AES_H__

#include <stdint.h>
#include <stdbool.h>

/**
Must be defined in order to enable the function aes_get_dec_key()
*/
#define _AES_ENABLE_GET_DEC_KEY_

/* Function parameter defines*/
typedef enum
{
  CBC,
  CFB,
  OFB,
  CTR,
  ECB,
} aes_modes_t;

/**
@remark
This interface is common for nRF24LU1 and nRF24LE1. For nRF24LE1 only <b>ECB</b> 
mode and <b>encryption</b> has been implemented. Other modes describes below 
only applies to the nRF24LU1 implementation. This is because nRF24LU1 comes 
with built in HW support for AES encryption in various modes. nRF24LE1 has only
limited support for AES where most of the implemenation is done i SW. 

Configures the AES module prior to encrypting/decrypting with aes_crypt().
The parameters reside in memory, thus the function does not need to be run every 
time aes_crypt() is used.

@param direction selects encrypt or decrypt operation. Possible arguments are:
@arg @c ENCRYPT
@arg @c DECRYPT

@param mode selects AES mode of operation. Possible arguments are:
@arg @c ECB
@arg @c CTR
@arg @c OFB
@arg @c CFB
@arg @c CBC

@param keyin is a pointer to a 16 byte array containing the key to be used for
the cryptographic operation. Passing a zero pointer will leave the previous 
written key unaltered.

@param ivin is a pointer to a 16 byte array containing the initialization
vector needed for CTR, OFB, CFB and CBC mode of operation. Passing a zero 
pointer will leave the previous written initialization vector unaltered.

@remarks

Which key to be used for the cryptographic operation depends on the selected 
mode(ECB/CTR/OFB/CFB/CBC) and the direction of operation (encrypt/decrypt). For 
modes ECB and CBC the decrypt operation is different from the encrypt operation, 
while for the remaining modes the operation is identical for the two directions. 
As a result, when using ECB or CBC mode the key needed for decrypting a block of 
data is different from the key that were used for encrypting the block, while 
for CTR, OFB and CFB the selected direction of operation don't care and the same 
key is used for both encryption and decryption.

The function aes_get_dec_key() can be used to aquire the decryption key from the 
encryption key when using ECB and CFB mode.

The initializtion vector is only loaded internally to the AES engine after one 
of the following occurences:

-# A new initializtion vector is passed
-# Mode of operation is changed
-# In CBC mode when direction of operation is changed
*/

void hal_aes_setup(bool decrypt_enable, aes_modes_t mode, uint8_t *keyin, uint8_t *ivin);
/**

Encrypts or decrypts a 128 bit (16 byte) block. The cryptographic operation is 
configured by using aes_setup().

@param dest_buf is a pointer to the 16 byte destination array.
@param src_buf is a pointer to the 16 byte source array.

@remarks

@sa hal_aes_setup();
*/
void hal_aes_crypt(uint8_t *dest_buf, uint8_t *src_buf);

/**
Calculates decryption key from encryption key.
For ECB and CBC mode of operation, different keys are used for encryption and 
decryption. This function calculates the required decryption key for these modes,
based on the encryption key.

@param dest_dec_key is a pointer to the 16 byte destination array where the 
calculated encryption key is to be placed.

@param src_enc_key is a pointer to the 16 byte source array containing the 
encryption key from which the decryption key is to be calculated.

@remarks
Before using this function @c _AES_ENABLE_GET_DEC_KEY_ must be defined.
@sa hal_aes_setup(), _AES_ENABLE_GET_DEC_KEY_
*/
void hal_aes_get_dec_key(uint8_t *dest_dec_key, uint8_t *src_enc_key);
/*@}*/

#endif  // AES_HAL_H__

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品视频一区| 91免费视频网| 亚洲一区二区三区四区五区黄 | 日韩一二在线观看| 中文字幕乱码日本亚洲一区二区 | 成+人+亚洲+综合天堂| 欧美日韩国产首页| 欧美日韩精品一区二区三区四区| 色婷婷久久久亚洲一区二区三区| 欧美r级在线观看| 偷拍一区二区三区| 喷水一区二区三区| 不卡欧美aaaaa| 久久久蜜桃精品| 秋霞国产午夜精品免费视频| 蜜桃视频一区二区| 国产老妇另类xxxxx| 欧美一区二区精品在线| 久久精工是国产品牌吗| 日本麻豆一区二区三区视频| 亚洲福利一二三区| 久久久亚洲精品一区二区三区 | 极品少妇xxxx偷拍精品少妇| 日韩精品三区四区| 成a人片亚洲日本久久| 99精品久久99久久久久| 国产一区二区不卡| 日韩欧美一区在线观看| 天堂一区二区在线| 91麻豆精品91久久久久同性| 一区二区三区小说| 欧美性欧美巨大黑白大战| 亚洲激情校园春色| 在线免费观看日韩欧美| 精品国产91洋老外米糕| 一色屋精品亚洲香蕉网站| 国产91丝袜在线观看| 欧美性猛交xxxx乱大交退制版| 亚洲欧美日韩在线| 日本精品视频一区二区| 日韩欧美久久久| 日韩码欧中文字| 精品在线视频一区| 2020国产精品久久精品美国| 中文字幕一区视频| 99麻豆久久久国产精品免费优播| 欧美丰满高潮xxxx喷水动漫| 肉丝袜脚交视频一区二区| 国产成人综合自拍| 欧美日本一道本在线视频| 国产精品国产三级国产aⅴ无密码| 天堂成人免费av电影一区| 成人免费高清在线| 一区二区三区在线观看网站| 欧美性色综合网| caoporn国产精品| 26uuu成人网一区二区三区| 黑人巨大精品欧美一区| 欧美日韩aaa| 亚洲成人777| 欧美中文字幕亚洲一区二区va在线| 久久久久久久综合狠狠综合| 成人ar影院免费观看视频| 亚洲午夜免费视频| 色成人在线视频| 亚洲色图欧洲色图婷婷| 欧美日韩国产免费一区二区| 成人免费在线视频| eeuss鲁一区二区三区| 亚洲成va人在线观看| 久久一区二区三区国产精品| 日韩成人免费看| 国产偷国产偷精品高清尤物| 国内精品国产三级国产a久久| 中国色在线观看另类| 欧美日韩欧美一区二区| 亚洲高清久久久| 国产亚洲精品bt天堂精选| 欧美三级电影精品| 婷婷久久综合九色国产成人| 欧美视频在线一区| 国产成人精品免费| 日韩电影在线观看网站| 天堂精品中文字幕在线| 国产精品黄色在线观看| 日韩欧美国产麻豆| 在线精品视频一区二区| 国产一区二区三区av电影| 亚洲成av人片| 亚洲天堂免费在线观看视频| 一本色道久久综合亚洲精品按摩| 黄网站免费久久| 国产视频911| 51精品秘密在线观看| 精品一区二区三区在线视频| 亚洲视频狠狠干| 久久久久9999亚洲精品| 成人免费av在线| 精品亚洲欧美一区| 蜜桃av噜噜一区| 天堂成人免费av电影一区| 一区二区三区国产精品| 国产精品久久久久aaaa| 欧美国产国产综合| 欧美亚男人的天堂| 狠狠色丁香婷婷综合| 麻豆精品视频在线| 亚洲欧美一区二区不卡| 国产欧美日韩亚州综合| 久久综合九色综合97婷婷| 99久久久无码国产精品| caoporm超碰国产精品| 午夜成人免费电影| 天天综合日日夜夜精品| 午夜天堂影视香蕉久久| 久久久蜜桃精品| 久久先锋影音av鲁色资源| 欧美mv日韩mv国产网站app| 日韩欧美国产三级电影视频| 日韩欧美你懂的| 26uuu国产日韩综合| 欧美亚洲国产一区二区三区va| 精品亚洲成a人| 蜜臀av一级做a爰片久久| 亚洲欧美日韩系列| 夜夜嗨av一区二区三区四季av | 欧美在线看片a免费观看| 蜜臀av亚洲一区中文字幕| 亚洲同性同志一二三专区| 亚洲激情成人在线| 久久蜜臀中文字幕| 91精品国产美女浴室洗澡无遮挡| 91精品国产综合久久久久久| 欧美一区日本一区韩国一区| 欧美成人高清电影在线| 欧洲激情一区二区| 欧美一区二区三区视频免费| 91网站视频在线观看| 在线观看区一区二| 日韩欧美高清dvd碟片| 国产欧美视频一区二区三区| 亚洲欧美乱综合| 日韩成人午夜电影| 成人午夜私人影院| 国产精品一区二区91| 久久99国内精品| 不卡的看片网站| 成人综合婷婷国产精品久久蜜臀| 成人av网址在线| 懂色av一区二区三区免费看| 在线视频亚洲一区| 精品国产91久久久久久久妲己 | 精品国产在天天线2019| 麻豆高清免费国产一区| 国产精一区二区三区| 色综合视频在线观看| 欧美电影免费观看完整版| 欧美久久久一区| 久久精品人人做人人综合 | 91亚洲男人天堂| 91精品欧美综合在线观看最新| 色噜噜狠狠色综合中国| 日韩一区二区在线观看视频| 欧美日韩激情在线| 国产精品视频线看| 日韩av午夜在线观看| 蜜桃一区二区三区在线| 全部av―极品视觉盛宴亚洲| 日本亚洲一区二区| 97国产一区二区| 色婷婷av一区二区三区之一色屋| 日韩精品中文字幕在线一区| 亚洲欧美aⅴ...| 国产成人鲁色资源国产91色综| 欧美精品久久99久久在免费线| 国产精品每日更新在线播放网址| 蜜桃视频一区二区三区| 欧美自拍偷拍一区| 亚洲欧美综合网| 亚洲国产一区视频| 91在线云播放| 久久久国产午夜精品| 日韩毛片高清在线播放| 亚洲午夜日本在线观看| 91亚洲男人天堂| 911精品国产一区二区在线| 欧美成人精品福利| 午夜精品一区二区三区电影天堂| 激情六月婷婷综合| 91一区二区三区在线观看| 欧美日韩午夜在线| 一区二区三国产精华液| 日韩av在线播放中文字幕| 91国产视频在线观看| 日韩视频免费观看高清完整版 | 久久久www成人免费毛片麻豆| 美女一区二区三区在线观看| 丁香激情综合国产| 精品污污网站免费看| 亚洲国产欧美日韩另类综合|