Passwordfile library 5.1.0
C++ library to read/write passwords from/to encrypted files
Loading...
Searching...
No Matches
openssl.h File Reference
#include "../global.h"
#include <c++utilities/chrono/timespan.h>
#include <cstddef>
#include <cstdint>
#include <string>
#include <string_view>
Include dependency graph for openssl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Util::OpenSsl::Sha256Sum
struct  Util::OpenSsl::TOTP

Namespaces

namespace  CppUtilities
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).