2023-08-19 22:37:55 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
2023-08-19 23:12:29 +02:00
|
|
|
#include <cstddef>
|
2023-08-19 22:37:55 +02:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
// returns the 20bytes sha1 hash
|
|
|
|
std::vector<uint8_t> hash_sha1(const uint8_t* data, size_t size);
|
|
|
|
|
|
|
|
inline std::vector<uint8_t> hash_sha1(const char* data, size_t size) { return hash_sha1(reinterpret_cast<const uint8_t*>(data), size); }
|
|
|
|
|