Arachne 1.0
Arachne - the perpetual stitcher of Wikidata entities.
Loading...
Searching...
No Matches
crypto.hpp File Reference
#include <array>
#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <span>
#include <string>
#include <string_view>
Include dependency graph for crypto.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  arachne::crypto::sha256_hasher

Namespaces

namespace  arachne
namespace  arachne::crypto

Typedefs

using arachne::crypto::sha256_digest = std::array<std::byte, 32>

Functions

std::string arachne::crypto::sha256 (std::span< const std::byte > bytes)
std::string arachne::crypto::sha256 (std::string_view bytes)
std::string arachne::crypto::sha256_file (const std::filesystem::path &path)
std::string arachne::crypto::sha256_string (std::string_view bytes)
bool arachne::crypto::is_safe_relative_artifact_ref (std::string_view artifact_ref) noexcept
std::filesystem::path arachne::crypto::safe_artifact_path (const std::filesystem::path &root, std::string_view artifact_ref)