NXP Reader Library  v17.1.0.2535
phCryptoSym_mBedTLS_DataParams_t Struct Reference

Data structure for Symmetric Crypto mBedTLS layer implementation. More...

Data Fields

uint16_t wId
 Layer ID for this component, NEVER MODIFY!
 
void * pKeyStoreDataParams
 Pointer to Key Store object - can be NULL.
 
void * pCtx_Crypto
 Pointer to underlying Symmetric Crypto context for AES or DES operations.
 
uint8_t aKey [PH_CRYPTOSYM_AES256_KEY_SIZE]
 Internal key storage array.
 
uint8_t aIV [PH_CRYPTOSYM_MAX_BLOCK_SIZE]
 Internal IV storage array. More...
 
uint8_t bIV_Len
 Length of bytes available in aIV buffer. More...
 
uint8_tpAddData
 Internal Additional Data storage array. More...
 
uint16_t wAddData_Len
 Length of bytes available in pAddData buffer. More...
 
uint16_t wAddData_Size
 Maximum size allocated for pAddData buffer. More...
 
uint8_t aTag [PH_CRYPTOSYM_AES128_KEY_SIZE]
 To store Authentication Tag information that will be generated during Encryption or used while Decryption. More...
 
uint8_t bTagLen
 Authentication Tag. More...
 
int32_t dwErrorCode
 Error code returned by mbedTLS layer.
 
uint16_t wKeyType
 Specific Key Type. More...
 
uint16_t wKeyNo
 Internal Key Storage number. More...
 
uint16_t wKeepIV
 Indicates if the init vector of a previous crypto operation shall be used for the next operation.
 
uint16_t wKey_Bit
 Length of Key in terms of Bits.
 
uint16_t wAddInfo
 Additional information like diversified key length, etc.
 
uint8_t bIsDirectKey
 Specify if the Key to be used is directly loaded or taken from KeyStore. More...
 

Detailed Description

Data structure for Symmetric Crypto mBedTLS layer implementation.

Field Documentation

◆ aIV

uint8_t phCryptoSym_mBedTLS_DataParams_t::aIV[PH_CRYPTOSYM_MAX_BLOCK_SIZE]

Internal IV storage array.

IV in case of CBC and Nonce in case of CCM or CCM* cipher mode.

◆ bIV_Len

uint8_t phCryptoSym_mBedTLS_DataParams_t::bIV_Len

Length of bytes available in aIV buffer.

This is required for CCM or CCM* Cipher mode.

◆ pAddData

uint8_t* phCryptoSym_mBedTLS_DataParams_t::pAddData

Internal Additional Data storage array.

This is required for CCM or CCM* Cipher mode.

◆ wAddData_Len

uint16_t phCryptoSym_mBedTLS_DataParams_t::wAddData_Len

Length of bytes available in pAddData buffer.

This is required for CCM or CCM* Cipher mode.

◆ wAddData_Size

uint16_t phCryptoSym_mBedTLS_DataParams_t::wAddData_Size

Maximum size allocated for pAddData buffer.

This is required for CCM or CCM* Cipher mode.

◆ aTag

uint8_t phCryptoSym_mBedTLS_DataParams_t::aTag[PH_CRYPTOSYM_AES128_KEY_SIZE]

To store Authentication Tag information that will be generated during Encryption or used while Decryption.

This is required for CCM or CCM* Cipher mode.

◆ bTagLen

uint8_t phCryptoSym_mBedTLS_DataParams_t::bTagLen

Authentication Tag.

To be used when CCM or CCM* cipher modes are used. Supported values are,

  • 4, 6, 8, 10, 12, 14 or 16 in case of CCM
  • 0, 4, 6, 8, 10, 12, 14 or 16 in case of CCM*

◆ wKeyType

uint16_t phCryptoSym_mBedTLS_DataParams_t::wKeyType

Specific Key Type.


◆ wKeyNo

uint16_t phCryptoSym_mBedTLS_DataParams_t::wKeyNo

Internal Key Storage number.

Will be utilized for Alternate implementation.

◆ bIsDirectKey

uint8_t phCryptoSym_mBedTLS_DataParams_t::bIsDirectKey

Specify if the Key to be used is directly loaded or taken from KeyStore.

  • PH_ON: If the Key is loaded directly.
  • PH_OFF: If the Key is loaded from KeyStore.

The documentation for this struct was generated from the following file: