2022-08-01 11:18:03 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2024-06-02 21:35:05 -04:00
|
|
|
#include <filesystem>
|
2024-07-20 17:16:06 -04:00
|
|
|
#include <span>
|
2022-08-01 11:18:03 -04:00
|
|
|
|
2024-06-02 21:35:05 -04:00
|
|
|
std::string calculateSHA3_256(std::filesystem::path const& path);
|
2022-10-14 14:04:59 -04:00
|
|
|
|
2024-06-02 21:35:05 -04:00
|
|
|
std::string calculateSHA256(std::filesystem::path const& path);
|
2022-10-14 14:04:59 -04:00
|
|
|
|
2024-06-02 21:35:05 -04:00
|
|
|
std::string calculateSHA256Text(std::filesystem::path const& path);
|
2024-01-22 12:42:11 -05:00
|
|
|
|
2024-07-20 17:16:06 -04:00
|
|
|
/**
|
|
|
|
* Calculates the SHA256 hash of the given data,
|
|
|
|
* used for verifying mods.
|
|
|
|
*/
|
|
|
|
std::string calculateHash(std::span<const uint8_t> data);
|