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

30 lines
337 B
C++
Raw Normal View History

2017-09-19 08:34:08 +00:00
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
}