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