Passwordfile library  4.0.0
C++ library to read/write passwords from/to encrypted files
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

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

Functions

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