Passwordfile library 5.1.0
C++ library to read/write passwords from/to encrypted files
Loading...
Searching...
No Matches
openssl.cpp File Reference
#include "./openssl.h"
#include "./opensslrandomdevice.h"
#include "../io/cryptoexception.h"
#include <c++utilities/chrono/datetime.h>
#include <c++utilities/conversion/binaryconversion.h>
#include <c++utilities/conversion/stringbuilder.h>
#include <c++utilities/conversion/stringconversion.h>
#include <openssl/core_names.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/params.h>
#include <openssl/sha.h>
#include <array>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <random>
#include <sstream>
#include <vector>
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.
PASSWORD_FILE_EXPORT std::uint32_t Util::OpenSsl::generateRandomNumber (std::uint32_t min, std::uint32_t max)
 Generates a random number using OpenSSL.
PASSWORD_FILE_EXPORT TOTP Util::OpenSsl::computeTOTP (std::string_view url, CppUtilities::DateTime time)
 Compute a token following the TOTP standard (RFC 6238).