Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
crypto_sha512.h
1#ifndef SOURCEMETA_CORE_CRYPTO_SHA512_H_
2#define SOURCEMETA_CORE_CRYPTO_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
28auto SOURCEMETA_CORE_CRYPTO_EXPORT sha512(const std::string_view input,
29 std::ostream &output) -> void;
30
41auto SOURCEMETA_CORE_CRYPTO_EXPORT sha512(const std::string_view input)
42 -> std::string;
43
54auto SOURCEMETA_CORE_CRYPTO_EXPORT sha512_digest(const std::string_view input)
55 -> std::array<std::uint8_t, 64>;
56
57} // namespace sourcemeta::core
58
59#endif
auto SOURCEMETA_CORE_CRYPTO_EXPORT sha512_digest(const std::string_view input) -> std::array< std::uint8_t, 64 >
auto SOURCEMETA_CORE_CRYPTO_EXPORT sha512(const std::string_view input, std::ostream &output) -> void