|
◆ CRYPT_EAL_DrbgbytesWithAdin()
int32_t CRYPT_EAL_DrbgbytesWithAdin |
( |
CRYPT_EAL_RndCtx * |
ctx, |
|
|
uint8_t * |
byte, |
|
|
uint32_t |
len, |
|
|
uint8_t * |
addin, |
|
|
uint32_t |
addinLen |
|
) |
| |
Generate a random number.
- Attention
- The addtional data can be NULL, user specifies the addtional data, and the interface supports multi-thread access.
- Parameters
-
ctx | [IN] DRBG handle |
byte | [OUT] Outputs random numbers. the memory is provided by the user. |
len | [IN] Required random number length. the range is (0, 65536]. |
addin | [IN] Addtional data, which can be NULL. |
addinLen | [IN] Addtional data length. the range is [0,0x7FFFFFF0]. |
- Return values
-
|