Passwordfile library: util/openssl.cpp File Reference

Passwordfile library 5.2.0 C++ library to read/write passwords from/to encrypted files

Loading...
Searching...
No Matches
Namespaces | Functions
openssl.cpp File Reference
`#include "./openssl.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/hmac.h>`
`#include <openssl/params.h>`
`#include <openssl/rand.h>`
`#include <openssl/sha.h>`
`#include <array>`
`#include <cctype>`
`#include <cmath>`
`#include <iomanip>`
`#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 Sha256Sum | Util::OpenSsl::computeHmacSha256 (const unsigned char *key, std::size_t keySize, const unsigned char *data, std::size_t dataSize)
| Computes an HMAC-SHA256 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).