Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !
explicit HMAC::HMAC(std::span<const std::byte> key);

explicit HMAC::HMAC(std::string_view key);

auto HMAC::update(std::span<const std::byte> data) -> void;

auto HMAC::update(std::string_view string) -> void;

[[nodiscard]] auto HMAC::digest() const -> std::array<std::byte, HashAlgorithm::DigestSize>;

[[nodiscard]] static auto HMAC::sign(std::span<const std::byte> key, std::span<const std::byte> message) -> std::array<std::byte, HashAlgorithm::DigestSize>;

[[nodiscard]] static auto HMAC::sign(std::string_view key, std::string_view message) -> std::array<std::byte, HashAlgorithm::DigestSize>;