ADuCM4x50 Device Drivers API Reference Manual
Release 4.0.0.0
|
#include <adi_crypto.h>
Data Fields | |
ADI_CRYPTO_CIPHER_MODE | eCipherMode |
ADI_CRYPTO_CODING_MODE | eCodingMode |
ADI_CRYPTO_KEY_BYTE_SWAP | eKeyByteSwap |
ADI_CRYPTO_SHA_BYTE_SWAP | eShaByteSwap |
ADI_CRYPTO_AES_BYTE_SWAP | eAesByteSwap |
uint8_t * | pAesKey |
ADI_CRYPTO_AES_KEY_LEN | eAesKeyLen |
uint8_t * | pHmacKey |
uint32_t * | pAuthData |
uint32_t | numAuthBytes |
uint32_t * | pInputData |
uint32_t | numInputBytes |
uint32_t * | pOutputData |
uint32_t | numOutputBytes |
uint8_t * | pNonceIV |
uint32_t | CounterInit |
uint32_t | numValidBytes |
uint32_t | numShaBits |
superset user Crypto transaction structure (different elements used for different modes)
Definition at line 208 of file adi_crypto.h.
ADI_CRYPTO_CIPHER_MODE eCipherMode |
Cipher mode to use
Definition at line 210 of file adi_crypto.h.
ADI_CRYPTO_CODING_MODE eCodingMode |
Coding Mode (Encryption or Decryption)
Definition at line 211 of file adi_crypto.h.
ADI_CRYPTO_KEY_BYTE_SWAP eKeyByteSwap |
KEY endianness
Definition at line 213 of file adi_crypto.h.
ADI_CRYPTO_SHA_BYTE_SWAP eShaByteSwap |
SHA endianness
Definition at line 214 of file adi_crypto.h.
ADI_CRYPTO_AES_BYTE_SWAP eAesByteSwap |
AES endianness
Definition at line 216 of file adi_crypto.h.
uint8_t* pAesKey |
Pointer to the KEY data: pre-formatted as a byte array, according to eAesKeyLen.
Definition at line 218 of file adi_crypto.h.
ADI_CRYPTO_AES_KEY_LEN eAesKeyLen |
The length of the AES KEY
Definition at line 219 of file adi_crypto.h.
uint8_t* pHmacKey |
Pointer to the 512-bit/32-bytes HMAC KEY data: pre-formatted as a byte array.
Definition at line 221 of file adi_crypto.h.
uint32_t* pAuthData |
CCM mode: pointer to user prefix buffer
Definition at line 223 of file adi_crypto.h.
uint32_t numAuthBytes |
Length of the prefix buffer in bytes (should be a multiple of 16 bytes)
Definition at line 224 of file adi_crypto.h.
uint32_t* pInputData |
Pointer to user input data buffer
Definition at line 226 of file adi_crypto.h.
uint32_t numInputBytes |
Length of the data buffer in bytes (should be a multiple of 16bytes)
Definition at line 227 of file adi_crypto.h.
uint32_t* pOutputData |
Pointer to user output buffer
Definition at line 229 of file adi_crypto.h.
uint32_t numOutputBytes |
Length of the output buffer in bytes (should be a multiple of 16bytes)
Definition at line 230 of file adi_crypto.h.
uint8_t* pNonceIV |
Pointer to user 16-byte array containing one of three values, depending on cipher mode:
Definition at line 232 of file adi_crypto.h.
uint32_t CounterInit |
CTR/CCM mode: Counter Initialization Value (CTR=20-bit, CCM=16-bit)
Definition at line 243 of file adi_crypto.h.
uint32_t numValidBytes |
CCM mode: Number of valid bytes in the last (padding) block (1-16)
Definition at line 244 of file adi_crypto.h.
uint32_t numShaBits |
SHA mode: Number of bits in the SHA payload, which may be odd-sized
Definition at line 245 of file adi_crypto.h.