2017-09-19 04:34:08 -04:00
|
|
|
|
2014-04-24 15:34:45 -04:00
|
|
|
// EntropyContext.cpp
|
|
|
|
|
2017-08-30 10:00:06 -04:00
|
|
|
// Implements the cEntropyContext class representing a wrapper over entropy contexts in mbedTLS
|
2014-04-24 15:34:45 -04:00
|
|
|
|
|
|
|
#include "Globals.h"
|
|
|
|
#include "EntropyContext.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cEntropyContext::cEntropyContext(void)
|
|
|
|
{
|
2017-08-30 10:00:06 -04:00
|
|
|
mbedtls_entropy_init(&m_Entropy);
|
2014-04-24 15:34:45 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cEntropyContext::~cEntropyContext()
|
|
|
|
{
|
2017-08-30 10:00:06 -04:00
|
|
|
mbedtls_entropy_free(&m_Entropy);
|
2014-04-24 15:34:45 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|