The cryptographic algoritms used by the library.
More...
#include <Crypto.h>
|
|
using | Sha256Digest = std::array< unsigned char, Sha256DigestLength > |
| | An alias for the hash.
|
| |
|
| static Sha256Digest | Sha256 (const std::vector< unsigned char > &content) |
| | Sha256 cryptographic function used to compute the hash value for a buffer.
|
| |
| static Sha256Digest | HmacSha256 (const std::string &key, const std::string &message) |
| | HMAC function based on SHA-256 hash function.
|
| |
|
|
static const size_t | Sha256DigestLength = 32 |
| | The hash length after the SHA-256 encryption.
|
| |
The cryptographic algoritms used by the library.
◆ HmacSha256()
| static Sha256Digest olp::authentication::Crypto::HmacSha256 |
( |
const std::string & |
key, |
|
|
const std::string & |
message |
|
) |
| |
|
static |
HMAC function based on SHA-256 hash function.
- Parameters
-
| key | A key. |
| message | A message. |
- Returns
- An array of 32 bytes that represent a hash value.
◆ Sha256()
| static Sha256Digest olp::authentication::Crypto::Sha256 |
( |
const std::vector< unsigned char > & |
content | ) |
|
|
static |
Sha256 cryptographic function used to compute the hash value for a buffer.
- Parameters
-
| content | A vector of unsigned chars for which the hash is computed. |
- Returns
- An array of 32 bytes that represent a hash value.
The documentation for this class was generated from the following file:
- olp-cpp-sdk-authentication/include/olp/authentication/Crypto.h