NXP Reader Library  v17.1.0.2535
Component : DUT

DUT implementation of the CryptoSym interface. More...

Collaboration diagram for Component : DUT:

Data Structures

struct  phCryptoSym_DUT_DataParams_t
 Data structure for Symmetric Crypto's DUT layer implementation. More...
 

Functions

phStatus_t phCryptoSym_DUT_Init (phCryptoSym_DUT_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, void *pHalDataParams, uint8_t *pTxBuffer, uint16_t wTxBuffSize, uint8_t *pRxBuffer, uint16_t wRxBuffSize)
 Initialize the CryptoSym component. More...
 
phStatus_t phCryptoSym_DUT_DeInit (phCryptoSym_DUT_DataParams_t *pDataParams)
 De-Initialize the CryptoRng with mBedTLS as sub-component. More...
 

Detailed Description

DUT implementation of the CryptoSym interface.

Function Documentation

◆ phCryptoSym_DUT_Init()

phStatus_t phCryptoSym_DUT_Init ( phCryptoSym_DUT_DataParams_t pDataParams,
uint16_t  wSizeOfDataParams,
void *  pHalDataParams,
uint8_t pTxBuffer,
uint16_t  wTxBuffSize,
uint8_t pRxBuffer,
uint16_t  wRxBuffSize 
)

Initialize the CryptoSym component.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
PH_ERR_INVALID_DATA_PARAMS
  • If the input size do not match the DataParams size of this component.
  • If the DataParams are null.
Parameters
[in]pDataParams[In] Pointer to this layers parameter structure.
[in]wSizeOfDataParams[In] Specifies the size of the data parameter structure.
[in]pHalDataParams[In] Pointer to HAL Parameter structure.
[in]pTxBuffer[In] Pointer to internal transmit buffer. This buffer can be used to overwrite actual HAL buffers.
[in]wTxBuffSize[In] Length of bytes allocated for pTxBuffer buffer.
[in]pRxBuffer[In] Pointer to internal receive buffer. This buffer can be used to overwrite actual HAL buffers.
[in]wRxBuffSize[In] Length of bytes allocated for pRxBuffer buffer.

◆ phCryptoSym_DUT_DeInit()

phStatus_t phCryptoSym_DUT_DeInit ( phCryptoSym_DUT_DataParams_t pDataParams)

De-Initialize the CryptoRng with mBedTLS as sub-component.

Note
Its must to call this interface to Un-initialize any used global context from other libraries. If not called, there might be unusual behavior for the next executions.
Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.