1
0
cuberite-2a/src/mbedTLS++/EntropyContext.cpp

30 lines
340 B
C++
Raw Normal View History


2014-04-24 19:34:45 +00:00
// EntropyContext.cpp
// 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)
{
mbedtls_entropy_init(&m_Entropy);
2014-04-24 19:34:45 +00:00
}
cEntropyContext::~cEntropyContext()
{
mbedtls_entropy_free(&m_Entropy);
2014-04-24 19:34:45 +00:00
}