26 m_EntropyContext(a_EntropyContext),
44 int res = mbedtls_ctr_drbg_seed(&
m_CtrDrbg, mbedtls_entropy_func, &(
m_EntropyContext->m_Entropy),
static_cast<const unsigned char *
>(a_Custom), a_CustomSize);
bool m_IsValid
Set to true if the object is valid (has been initialized properly)
cCtrDrbgContext(void)
Constructs the context with a new entropy context.
int Initialize(const void *a_Custom, size_t a_CustomSize)
Initializes the context.
mbedtls_ctr_drbg_context m_CtrDrbg
The random generator context.
std::shared_ptr< cEntropyContext > m_EntropyContext
The entropy source used for generating the random.