Files
llama.cpp/vendor/hash/hash.h
T
Xuan-Son Nguyen 429460dc0e server: refactor, add server_slot_sched, prompt running hash (#32154)
* server: refactor, add server_slot_sched, prompt running hash

* use sha256 hash
2026-11-15 09:37:17 +01:00

15 lines
355 B
C++

#pragma once
// C++ wrapper for the vendored hash functions
#include <array>
#include <cstddef>
#include <cstdint>
#include <string>
// returns the raw SHA-256 digest
std::array<uint8_t, 32> hash_sha256(const void * data, size_t len);
// returns the SHA-256 digest as a lowercase hex string
std::string hash_sha256_hex(const void * data, size_t len);