1#ifndef SOURCEMETA_CORE_CRYPTO_SHA256_H_
2#define SOURCEMETA_CORE_CRYPTO_SHA256_H_
4#ifndef SOURCEMETA_CORE_CRYPTO_EXPORT
5#include <sourcemeta/core/crypto_export.h>
15namespace sourcemeta::core {
29auto SOURCEMETA_CORE_CRYPTO_EXPORT
sha256(
const std::string_view input,
30 std::ostream &output) -> void;
42auto SOURCEMETA_CORE_CRYPTO_EXPORT
sha256(
const std::string_view input)
55auto SOURCEMETA_CORE_CRYPTO_EXPORT
sha256_digest(
const std::string_view input)
56 -> std::array<std::uint8_t, 32>;
73 std::span<const std::string_view> input) -> std::array<std::uint8_t, 32>;
auto SOURCEMETA_CORE_CRYPTO_EXPORT sha256_digest(const std::string_view input) -> std::array< std::uint8_t, 32 >
auto SOURCEMETA_CORE_CRYPTO_EXPORT sha256(const std::string_view input, std::ostream &output) -> void