MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
Functions | |
status_t | LTC_DES_SetKeyDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t key1[LTC_DPA_DES_KEY_SIZE], const uint8_t key2[LTC_DPA_DES_KEY_SIZE], const uint8_t key3[LTC_DPA_DES_KEY_SIZE]) |
Set key for LTC DPA DES operations. More... | |
status_t | LTC_DES_EncryptEcbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size) |
Encrypts DES using ECB block mode. More... | |
status_t | LTC_DES_DecryptEcbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size) |
Decrypts DES using ECB block mode. More... | |
status_t | LTC_DES_EncryptCbcDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Encrypts DES using CBC block mode. More... | |
status_t | LTC_DES_DecryptCbcDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Decrypts DES using CBC block mode. More... | |
status_t | LTC_DES_EncryptCfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Encrypts DES using CFB block mode. More... | |
status_t | LTC_DES_DecryptCfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Decrypts DES using CFB block mode. More... | |
status_t | LTC_DES_EncryptOfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Encrypts DES using OFB block mode. More... | |
status_t | LTC_DES_DecryptOfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Decrypts DES using OFB block mode. More... | |
status_t | LTC_DES2_EncryptEcbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size) |
Encrypts triple DES using ECB block mode with two keys. More... | |
status_t | LTC_DES2_DecryptEcbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size) |
Decrypts triple DES using ECB block mode with two keys. More... | |
status_t | LTC_DES2_EncryptCbcDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Encrypts triple DES using CBC block mode with two keys. More... | |
status_t | LTC_DES2_DecryptCbcDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Decrypts triple DES using CBC block mode with two keys. More... | |
status_t | LTC_DES2_EncryptCfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Encrypts triple DES using CFB block mode with two keys. More... | |
status_t | LTC_DES2_DecryptCfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Decrypts triple DES using CFB block mode with two keys. More... | |
status_t | LTC_DES2_EncryptOfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Encrypts triple DES using OFB block mode with two keys. More... | |
status_t | LTC_DES2_DecryptOfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Decrypts triple DES using OFB block mode with two keys. More... | |
status_t | LTC_DES3_EncryptEcbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size) |
Encrypts triple DES using ECB block mode with three keys. More... | |
status_t | LTC_DES3_DecryptEcbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size) |
Decrypts triple DES using ECB block mode with three keys. More... | |
status_t | LTC_DES3_EncryptCbcDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Encrypts triple DES using CBC block mode with three keys. More... | |
status_t | LTC_DES3_DecryptCbcDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Decrypts triple DES using CBC block mode with three keys. More... | |
status_t | LTC_DES3_EncryptCfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Encrypts triple DES using CFB block mode with three keys. More... | |
status_t | LTC_DES3_DecryptCfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Decrypts triple DES using CFB block mode with three keys. More... | |
status_t | LTC_DES3_EncryptOfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *plaintext, uint8_t *ciphertext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Encrypts triple DES using OFB block mode with three keys. More... | |
status_t | LTC_DES3_DecryptOfbDPA (LTC_Type *base, ltc_dpa_handle_t *handle, const uint8_t *ciphertext, uint8_t *plaintext, size_t size, const uint8_t iv[LTC_DPA_DES_IV_SIZE]) |
Decrypts triple DES using OFB block mode with three keys. More... | |
status_t LTC_DES_SetKeyDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t | key1[LTC_DPA_DES_KEY_SIZE], | ||
const uint8_t | key2[LTC_DPA_DES_KEY_SIZE], | ||
const uint8_t | key3[LTC_DPA_DES_KEY_SIZE] | ||
) |
This function sets key for usage with LTC DPA DES functions.
base | LTC module base address | |
[in,out] | handle | Pointer to ltc_dpa_handle_t structure |
key1 | The 1st 8-byte key. | |
key2 | The 2nd 8-byte key. Can be NULL if running simple DES. | |
key3 | The 3rd 8-byte key. Can be NULL if running 3DES with 2 keys (16-byte key). |
status_t LTC_DES_EncryptEcbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size | ||
) |
Encrypts DES using ECB block mode.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
[out] | ciphertext | Output ciphertext |
size | Size of input and output data in bytes. Must be multiple of 8 bytes. |
status_t LTC_DES_DecryptEcbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size | ||
) |
Decrypts DES using ECB block mode.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input and output data in bytes. Must be multiple of 8 bytes. |
status_t LTC_DES_EncryptCbcDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Encrypts DES using CBC block mode.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
[out] | ciphertext | Ouput ciphertext |
size | Size of input and output data in bytes | |
iv | Input initial vector to combine with the first plaintext block. The iv does not need to be secret, but it must be unpredictable. |
status_t LTC_DES_DecryptCbcDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Decrypts DES using CBC block mode.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input data in bytes | |
iv | Input initial vector to combine with the first plaintext block. The iv does not need to be secret, but it must be unpredictable. |
status_t LTC_DES_EncryptCfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Encrypts DES using CFB block mode.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
size | Size of input data in bytes | |
iv | Input initial block. | |
[out] | ciphertext | Output ciphertext |
status_t LTC_DES_DecryptCfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Decrypts DES using CFB block mode.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input and output data in bytes | |
iv | Input initial block. |
status_t LTC_DES_EncryptOfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Encrypts DES using OFB block mode.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
[out] | ciphertext | Output ciphertext |
size | Size of input and output data in bytes | |
iv | Input unique input vector. The OFB mode requires that the IV be unique for each execution of the mode under the given key. |
status_t LTC_DES_DecryptOfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Decrypts DES using OFB block mode.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input and output data in bytes. Must be multiple of 8 bytes. | |
iv | Input unique input vector. The OFB mode requires that the IV be unique for each execution of the mode under the given key. |
status_t LTC_DES2_EncryptEcbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size | ||
) |
Encrypts triple DES using ECB block mode with two keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
[out] | ciphertext | Output ciphertext |
size | Size of input and output data in bytes. Must be multiple of 8 bytes. |
status_t LTC_DES2_DecryptEcbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size | ||
) |
Decrypts triple DES using ECB block mode with two keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input and output data in bytes. Must be multiple of 8 bytes. |
status_t LTC_DES2_EncryptCbcDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Encrypts triple DES using CBC block mode with two keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
[out] | ciphertext | Output ciphertext |
size | Size of input and output data in bytes | |
iv | Input initial vector to combine with the first plaintext block. The iv does not need to be secret, but it must be unpredictable. |
status_t LTC_DES2_DecryptCbcDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Decrypts triple DES using CBC block mode with two keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input and output data in bytes | |
iv | Input initial vector to combine with the first plaintext block. The iv does not need to be secret, but it must be unpredictable. |
status_t LTC_DES2_EncryptCfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Encrypts triple DES using CFB block mode with two keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
[out] | ciphertext | Output ciphertext |
size | Size of input and output data in bytes | |
iv | Input initial block. |
status_t LTC_DES2_DecryptCfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Decrypts triple DES using CFB block mode with two keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input and output data in bytes | |
iv | Input initial block. |
status_t LTC_DES2_EncryptOfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Encrypts triple DES using OFB block mode with two keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
[out] | ciphertext | Output ciphertext |
size | Size of input and output data in bytes | |
iv | Input unique input vector. The OFB mode requires that the IV be unique for each execution of the mode under the given key. |
status_t LTC_DES2_DecryptOfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Decrypts triple DES using OFB block mode with two keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input and output data in bytes | |
iv | Input unique input vector. The OFB mode requires that the IV be unique for each execution of the mode under the given key. |
status_t LTC_DES3_EncryptEcbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size | ||
) |
Encrypts triple DES using ECB block mode with three keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
[out] | ciphertext | Output ciphertext |
size | Size of input and output data in bytes. Must be multiple of 8 bytes. |
status_t LTC_DES3_DecryptEcbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size | ||
) |
Decrypts triple DES using ECB block mode with three keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input and output data in bytes. Must be multiple of 8 bytes. |
status_t LTC_DES3_EncryptCbcDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Encrypts triple DES using CBC block mode with three keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
[out] | ciphertext | Output ciphertext |
size | Size of input data in bytes | |
iv | Input initial vector to combine with the first plaintext block. The iv does not need to be secret, but it must be unpredictable. |
status_t LTC_DES3_DecryptCbcDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Decrypts triple DES using CBC block mode with three keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input and output data in bytes | |
iv | Input initial vector to combine with the first plaintext block. The iv does not need to be secret, but it must be unpredictable. |
status_t LTC_DES3_EncryptCfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Encrypts triple DES using CFB block mode with three keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
[out] | ciphertext | Output ciphertext |
size | Size of input and ouput data in bytes | |
iv | Input initial block. |
status_t LTC_DES3_DecryptCfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Decrypts triple DES using CFB block mode with three keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input data in bytes | |
iv | Input initial block. |
status_t LTC_DES3_EncryptOfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Encrypts triple DES using OFB block mode with three keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
plaintext | Input plaintext to encrypt | |
[out] | ciphertext | Output ciphertext |
size | Size of input and output data in bytes | |
iv | Input unique input vector. The OFB mode requires that the IV be unique for each execution of the mode under the given key. |
status_t LTC_DES3_DecryptOfbDPA | ( | LTC_Type * | base, |
ltc_dpa_handle_t * | handle, | ||
const uint8_t * | ciphertext, | ||
uint8_t * | plaintext, | ||
size_t | size, | ||
const uint8_t | iv[LTC_DPA_DES_IV_SIZE] | ||
) |
Decrypts triple DES using OFB block mode with three keys.
base | LTC peripheral base address | |
handle | pointer to ltc_dpa_handle_t structure which stores the transaction state. | |
ciphertext | Input ciphertext to decrypt | |
[out] | plaintext | Output plaintext |
size | Size of input and output data in bytes | |
iv | Input unique input vector. The OFB mode requires that the IV be unique for each execution of the mode under the given key. |