MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches

Defines valid options to be used by mcuxClEls_CipherOption_t. More...

Macros

#define MCUXCLELS_CIPHER_ENCRYPT
 Set this option at mcuxClEls_CipherOption_t.dcrpt to perform an encryption.
 
#define MCUXCLELS_CIPHER_DECRYPT
 Set this option at mcuxClEls_CipherOption_t.dcrpt to perform a decryption.
 
#define MCUXCLELS_CIPHER_STATE_OUT_ENABLE
 Set this option at mcuxClEls_CipherOption_t.cphsoe to export the internal ELS state to pIV.
 
#define MCUXCLELS_CIPHER_STATE_OUT_DISABLE
 Set this option at mcuxClEls_CipherOption_t.cphsoe to not export the internal ELS state.
 
#define MCUXCLELS_CIPHER_STATE_IN_ENABLE
 Set this option at mcuxClEls_CipherOption_t.cphsie to import an external ELS state from pIV.
 
#define MCUXCLELS_CIPHER_STATE_IN_DISABLE
 Set this option at mcuxClEls_CipherOption_t.cphsie to not import an external ELS state.
 
#define MCUXCLELS_CIPHER_EXTERNAL_KEY
 Set this option at mcuxClEls_CipherOption_t.extkey to use a key located in CPU memory provided by pKey.
 
#define MCUXCLELS_CIPHER_INTERNAL_KEY
 Set this option at mcuxClEls_CipherOption_t.extkey to use a key located in ELS keystore privded by keyIdx.
 
#define MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_ECB
 Set this option at mcuxClEls_CipherOption_t.cphmde to use AES engine in Electornic Code Book (ECB) mode.
 
#define MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_CBC
 Set this option at mcuxClEls_CipherOption_t.cphmde to use AES engine in Cipher Block Chaining (CBC) mode.
 
#define MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_CTR
 Set this option at mcuxClEls_CipherOption_t.cphmde to use AES engine in Counter (CTR) mode.
 

Detailed Description

Defines valid options to be used by mcuxClEls_CipherOption_t.

Valid AES key sizes in bytes

Macro Definition Documentation

◆ MCUXCLELS_CIPHER_ENCRYPT

#define MCUXCLELS_CIPHER_ENCRYPT

◆ MCUXCLELS_CIPHER_DECRYPT

#define MCUXCLELS_CIPHER_DECRYPT

Set this option at mcuxClEls_CipherOption_t.dcrpt to perform a decryption.

◆ MCUXCLELS_CIPHER_STATE_OUT_ENABLE

#define MCUXCLELS_CIPHER_STATE_OUT_ENABLE

Set this option at mcuxClEls_CipherOption_t.cphsoe to export the internal ELS state to pIV.

◆ MCUXCLELS_CIPHER_STATE_OUT_DISABLE

#define MCUXCLELS_CIPHER_STATE_OUT_DISABLE

Set this option at mcuxClEls_CipherOption_t.cphsoe to not export the internal ELS state.

◆ MCUXCLELS_CIPHER_STATE_IN_ENABLE

#define MCUXCLELS_CIPHER_STATE_IN_ENABLE

Set this option at mcuxClEls_CipherOption_t.cphsie to import an external ELS state from pIV.

◆ MCUXCLELS_CIPHER_STATE_IN_DISABLE

#define MCUXCLELS_CIPHER_STATE_IN_DISABLE

Set this option at mcuxClEls_CipherOption_t.cphsie to not import an external ELS state.

◆ MCUXCLELS_CIPHER_EXTERNAL_KEY

#define MCUXCLELS_CIPHER_EXTERNAL_KEY

Set this option at mcuxClEls_CipherOption_t.extkey to use a key located in CPU memory provided by pKey.

Examples
mcuxClEls_Cipher_Aes128_Cbc_Encrypt_example.c, and mcuxClEls_Cipher_Aes128_Ecb_Encrypt_example.c.

◆ MCUXCLELS_CIPHER_INTERNAL_KEY

#define MCUXCLELS_CIPHER_INTERNAL_KEY

Set this option at mcuxClEls_CipherOption_t.extkey to use a key located in ELS keystore privded by keyIdx.

◆ MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_ECB

#define MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_ECB

Set this option at mcuxClEls_CipherOption_t.cphmde to use AES engine in Electornic Code Book (ECB) mode.

Examples
mcuxClEls_Cipher_Aes128_Ecb_Encrypt_example.c.

◆ MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_CBC

#define MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_CBC

Set this option at mcuxClEls_CipherOption_t.cphmde to use AES engine in Cipher Block Chaining (CBC) mode.

Examples
mcuxClEls_Cipher_Aes128_Cbc_Encrypt_example.c.

◆ MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_CTR

#define MCUXCLELS_CIPHERPARAM_ALGORITHM_AES_CTR

Set this option at mcuxClEls_CipherOption_t.cphmde to use AES engine in Counter (CTR) mode.