// SPDX-License-Identifier: GPL-3.0-or-later #ifndef RCC_SUPPORT_SHA256_H #define RCC_SUPPORT_SHA256_H #include #include #include #include #include #include namespace rcc { using SHA256Digest = std::array; [[nodiscard]] SHA256Digest sha256(std::span Input); [[nodiscard]] SHA256Digest sha256(std::string_view Input); [[nodiscard]] std::string sha256Hex(std::span Input); [[nodiscard]] std::string sha256Hex(std::string_view Input); } // namespace rcc #endif // RCC_SUPPORT_SHA256_H