olp-cpp-sdk
1.22.0
|
The cryptographic algoritms used by the library. More...
#include <Crypto.h>
Public Types | |
using | Sha256Digest = std::array< unsigned char, Sha256DigestLength > |
An alias for the hash. | |
Static Public Member Functions | |
static Sha256Digest | Sha256 (const std::vector< unsigned char > &content) |
Sha256 cryptographic function used to compute the hash value for a buffer. More... | |
static Sha256Digest | HmacSha256 (const std::string &key, const std::string &message) |
HMAC function based on SHA-256 hash function. More... | |
Static Public Attributes | |
static const size_t | Sha256DigestLength = 32 |
The hash length after the SHA-256 encryption. | |
The cryptographic algoritms used by the library.
|
static |
HMAC function based on SHA-256 hash function.
key | A key. |
message | A message. |
|
static |
Sha256 cryptographic function used to compute the hash value for a buffer.
content | A vector of unsigned chars for which the hash is computed. |