Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
crypto_fnv128.h
1#ifndef SOURCEMETA_CORE_CRYPTO_FNV128_H_
2#define SOURCEMETA_CORE_CRYPTO_FNV128_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
26auto SOURCEMETA_CORE_CRYPTO_EXPORT fnv128_digest(const std::string_view input)
27 -> std::array<std::uint8_t, 16>;
28
42auto SOURCEMETA_CORE_CRYPTO_EXPORT fnv128(const std::string_view input,
43 std::ostream &output) -> void;
44
55auto SOURCEMETA_CORE_CRYPTO_EXPORT fnv128(const std::string_view input)
56 -> std::string;
57
58} // namespace sourcemeta::core
59
60#endif
auto SOURCEMETA_CORE_CRYPTO_EXPORT fnv128_digest(const std::string_view input) -> std::array< std::uint8_t, 16 >
auto SOURCEMETA_CORE_CRYPTO_EXPORT fnv128(const std::string_view input, std::ostream &output) -> void