Loading...
Searching...
No Matches
Sha256.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4
5#ifndef GPR_AUXILIARY_SHA256_H_
6#define GPR_AUXILIARY_SHA256_H_
7
8#include <cstddef>
9#include <string>
10
11namespace gpr {
12
14std::string sha256Hex(const void* data, std::size_t size);
15
17std::string sha256File(const std::string& path);
18
19} // namespace gpr
20
21#endif
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Definition Macros.h:16
std::string sha256Hex(const void *data, std::size_t size)
Lowercase hexadecimal SHA-256 digest of a byte range (FIPS 180-4).
Definition Sha256.cpp:127
std::string sha256File(const std::string &path)
Digest of a file's contents; empty when the file cannot be read.
Definition Sha256.cpp:134