This module contains APIs to program and use the RNG.
|
file | rng.h |
| This file contains the prototype of RNG driver APIs.
|
|
◆ RNG_DRBG_MODE
#define RNG_DRBG_MODE (TRUE) |
◆ RNG_DRBG_DISABLE_MODE
#define RNG_DRBG_DISABLE_MODE (FALSE) |
◆ RNG_CONTROL_REQUEST_DATA_MASK
#define RNG_CONTROL_REQUEST_DATA_MASK (0x00010000U) |
Rng control request data mask
◆ RNG_CONTROL_DATA_BLOCKS_MASK
#define RNG_CONTROL_DATA_BLOCKS_MASK (0xFFF00000U) |
Rng control data block mask
◆ RNG_CONTROL_DRBG_EN_SHIFT
#define RNG_CONTROL_DRBG_EN_SHIFT (0x0000000CU) |
Rng control drbg enable shift
◆ RNG_CONTROL_ENABLE_TRNG_SHIFT
#define RNG_CONTROL_ENABLE_TRNG_SHIFT (0x0000000AU) |
Rng control enable trng shift
◆ RNG_STATUS_RESEED_AI_MASK
#define RNG_STATUS_RESEED_AI_MASK (0x00000400U) |
◆ RNG_DRBG_SEED_MAX_ARRY_SIZE_IN_DWORD
#define RNG_DRBG_SEED_MAX_ARRY_SIZE_IN_DWORD (12U) |
Maximum seed array size in dword
◆ DEVTYPE_HSSE
#define DEVTYPE_HSSE (0x0AU) |
◆ RNG_Handle
Handle to the RNG driver.
◆ RNG_Return_t
RNG Driver Error code.
The enumeration describes all the possible return and error codes which the RNG Driver can return
Enumerator |
---|
RNG_RETURN_SUCCESS | Success/pass return code
|
RNG_RETURN_FAILURE | General or unspecified failure/error
|
◆ RNG_open()
Function to Open RNG instance, Initialize clocks.
- Returns
- A RNG_Handle on success or a NULL on an error or if it has been opened already
◆ RNG_close()
Function to close a RNG module specified by the RNG handle.
- Parameters
-
- Returns
- returns RNG_RETURN_SUCCESS if requested data is available. RNG_RETURN_FAILURE if RNG is not initialized.
◆ RNG_setup()
◆ RNG_read()
◆ gRngConfig
Externally defined driver configuration array.
◆ gRngConfigNum
Externally defined driver configuration Num.