STCRYPTOLIB_DRBG_ALT ¶
MBEDTLS IMPLEMENTATION STCRYPTOLIB DRBG ALT API ¶
- group MBEDTLS_IMPLEMENTATION_STCRYPTOLIB_DRBG_ALT_API
-
DRBG API definitions for STCRYPTOLIB.
Functions
-
int32_t
DRBG_DeInit
(
void
)
¶
-
Deinitialize the DRBG context.
- Return values :
-
0 – on success, -1 on failure.
-
int32_t
DRBG_Init
(
void
)
¶
-
Initialize the DRBG context and entropy sources.
- Return values :
-
0 – on success, -1 on failure.
-
int32_t
DRBG_GetBytes
(
uint8_t
*
output
,
size_t
length
,
size_t
*
output_length
)
¶
-
Generate random bytes using DRBG.
- Parameters :
-
output – Pointer to buffer to receive random bytes.
length – Number of random bytes to generate.
output_length – Pointer to variable to receive actual number of bytes generated.
- Return values :
-
0 – on success, -1 on failure.
-
int32_t
DRBG_DeInit
(
void
)
¶