C++ Actor Framework 1.0.0
|
US Secure Hash Algorithm 1 (SHA1) as defined in RFC 3174. More...
#include <sha1.hpp>
Inherits caf::save_inspector_base< Subtype >.
Public Types | |
using | super = save_inspector_base<sha1> |
Alias to the super types. | |
using | result_type = std::array<std::byte, hash_size> |
Array type for storing a 160-bit hash. | |
Public Member Functions | |
constexpr bool | begin_object (type_id_t, std::string_view) |
constexpr bool | end_object () |
bool | begin_field (std::string_view) |
bool | begin_field (std::string_view, bool is_present) |
bool | begin_field (std::string_view, span< const type_id_t >, size_t index) |
bool | begin_field (std::string_view, bool is_present, span< const type_id_t >, size_t index) |
constexpr bool | end_field () |
constexpr bool | begin_tuple (size_t) |
constexpr bool | end_tuple () |
constexpr bool | begin_key_value_pair () |
constexpr bool | end_key_value_pair () |
constexpr bool | begin_sequence (size_t) |
constexpr bool | end_sequence () |
constexpr bool | begin_associative_array (size_t) |
constexpr bool | end_associative_array () |
template<class Integral > | |
std::enable_if_t< std::is_integral_v< Integral >, bool > | value (Integral x) noexcept |
bool | value (bool x) noexcept |
bool | value (float x) noexcept |
bool | value (double x) noexcept |
bool | value (std::string_view x) noexcept |
bool | value (span< const std::byte > x) noexcept |
result_type | result () noexcept |
Seals this SHA-1 context and returns the 160-bit message digest. | |
Static Public Member Functions | |
static constexpr bool | has_human_readable_format () noexcept |
template<class... Ts> | |
static result_type | compute (Ts &&... xs) noexcept |
Convenience function for computing a SHA-1 hash value for given arguments in one shot. | |
Static Public Attributes | |
static constexpr size_t | hash_size = 20 |
Hash size in bytes. | |
US Secure Hash Algorithm 1 (SHA1) as defined in RFC 3174.