Random Number Command of HAL DUT Command dispatcher frame.
More...
|
| | Command_Codes |
| | Random Number Command Codes of HAL DUT Command dispatcher frame.
|
| |
Random Number Command of HAL DUT Command dispatcher frame.
◆ phhalHw_DUT_Cmd_CryptoRng_Init()
Initialize Hardware random number generator.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
◆ phhalHw_DUT_Cmd_CryptoRng_DeInit()
Un-Initialize Hardware random number generator.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
◆ phhalHw_DUT_Cmd_CryptoRng_GetLastStatus()
Returns the status code and respective message.
This interfaces is supported only if CryptoRng component is initialized with mBedTLS Initialization.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wStatusMsgLen | [In] Size of bytes allocated for pStatusMsg parameter. |
| [out] | pStatusMsg | [Out] The equivalent status message for the information available in pStatusCode. |
| [out] | pStatusCode | [Out] The status code returned by the underlying Crypto library. |
◆ phhalHw_DUT_Cmd_CryptoRng_Seed()
Seeds the random number generator with the given seed.
The seed length is dependent on the underlaying implementation. Further details can be found in the detailed description of the underlying layers.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS |
- If the interface context (pDataparams) is not holding this layer ID.
- If the component context holds a different sub-component ID that is not supported by this layer.
|
| Other | Depending on implementation and underlying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | pSeed | [In] Seed |
| [in] | bSeedLen | [In] Size of the seed. |
◆ phhalHw_DUT_Cmd_CryptoRng_Rnd()
Obtains random bytes from the random source.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| PH_ERR_INVALID_DATA_PARAMS |
- If the interface context (pDataparams) is not holding this layer ID.
- If the component context holds a different sub-component ID that is not supported by this layer.
|
| PH_ERR_INVALID_PARAMETER | - If the buffer is null. |
| Other | Depending on implementation and underlying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wNoOfRndBytes | [In] Number of random bytes to generate. |
| [out] | pRnd | [Out] Generated bytes; uint8_t[wNoOfRndBytes] |