yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
rom_hash.h
Go to the documentation of this file.
1#ifndef YAZE_UTIL_ROM_HASH_H
2#define YAZE_UTIL_ROM_HASH_H
3
4#include <cstddef>
5#include <cstdint>
6#include <string>
7
8namespace yaze::util {
9
10uint32_t CalculateCrc32(const uint8_t* data, size_t size);
11std::string ComputeRomHash(const uint8_t* data, size_t size);
12
14std::string ComputeSha1Hex(const uint8_t* data, size_t size);
15
18std::string ComputeFileSha1Hex(const std::string& path);
19
20} // namespace yaze::util
21
22#endif // YAZE_UTIL_ROM_HASH_H
std::string ComputeSha1Hex(const uint8_t *data, size_t size)
Compute SHA-1 hash of data, return lowercase hex string (40 chars).
Definition rom_hash.cc:196
std::string ComputeFileSha1Hex(const std::string &path)
Definition rom_hash.cc:213
uint32_t CalculateCrc32(const uint8_t *data, size_t size)
Definition rom_hash.cc:62
std::string ComputeRomHash(const uint8_t *data, size_t size)
Definition rom_hash.cc:70