Passwordfile library 5.0.11
C++ library to read/write passwords from/to encrypted files
Loading...
Searching...
No Matches
Namespaces | Functions
openssl.cpp File Reference
#include "./openssl.h"
#include "./opensslrandomdevice.h"
#include <c++utilities/conversion/binaryconversion.h>
#include <openssl/conf.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/sha.h>
#include <random>
Include dependency graph for openssl.cpp:

Go to the source code of this file.

Namespaces

namespace  Util
 Contains utility classes and functions.
 
namespace  Util::OpenSsl
 Contains functions utilizing the usage of OpenSSL.
 

Functions

PASSWORD_FILE_EXPORT void Util::OpenSsl::init ()
 Initializes OpenSSL.
 
PASSWORD_FILE_EXPORT void Util::OpenSsl::clean ()
 Cleans resources of OpenSSL.
 
PASSWORD_FILE_EXPORT Sha256Sum Util::OpenSsl::computeSha256Sum (const unsigned char *buffer, std::size_t size)
 Computes a SHA-256 sum using OpenSSL.
 
uint32_t Util::OpenSsl::generateRandomNumber (uint32_t min, uint32_t max)
 Generates a random number using OpenSSL.