Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
crypto_hmac_sha512.h
1#ifndef SOURCEMETA_CORE_CRYPTO_HMAC_SHA512_H_
2#define SOURCEMETA_CORE_CRYPTO_HMAC_SHA512_H_
3
4#ifndef SOURCEMETA_CORE_CRYPTO_EXPORT
5#include <sourcemeta/core/crypto_export.h>
6#endif
7
8#include <array> // std::array
9#include <cstdint> // std::uint8_t
10#include <ostream> // std::ostream
11#include <string> // std::string
12#include <string_view> // std::string_view
13
14namespace sourcemeta::core {
15
29auto SOURCEMETA_CORE_CRYPTO_EXPORT hmac_sha512(const std::string_view key,
30 const std::string_view message,
31 std::ostream &output) -> void;
32
43auto SOURCEMETA_CORE_CRYPTO_EXPORT hmac_sha512(const std::string_view key,
44 const std::string_view message)
45 -> std::string;
46
58auto SOURCEMETA_CORE_CRYPTO_EXPORT
59hmac_sha512_digest(const std::string_view key, const std::string_view message)
60 -> std::array<std::uint8_t, 64>;
61
62} // namespace sourcemeta::core
63
64#endif
auto SOURCEMETA_CORE_CRYPTO_EXPORT hmac_sha512(const std::string_view key, const std::string_view message, std::ostream &output) -> void
auto SOURCEMETA_CORE_CRYPTO_EXPORT hmac_sha512_digest(const std::string_view key, const std::string_view message) -> std::array< std::uint8_t, 64 >