retdec
crypto.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_FILEFORMAT_UTILS_CRYPTO_H
8 #define RETDEC_FILEFORMAT_UTILS_CRYPTO_H
9 
10 #include <cstdint>
11 #include <string>
12 
13 namespace retdec {
14 namespace fileformat {
15 
16 std::string getCrc32(const unsigned char *data, std::uint64_t length);
17 std::string getMd5(const unsigned char *data, std::uint64_t length);
18 std::string getSha1(const unsigned char *data, std::uint64_t length);
19 std::string getSha256(const unsigned char *data, std::uint64_t length);
20 
21 } // namespace fileformat
22 } // namespace retdec
23 
24 #endif
std::string getCrc32(const unsigned char *data, std::uint64_t length)
Count CRC32 of data.
Definition: crypto.cpp:27
std::string getSha256(const unsigned char *data, std::uint64_t length)
Count SHA256 of data.
Definition: crypto.cpp:71
std::string getMd5(const unsigned char *data, std::uint64_t length)
Count MD5 of data.
Definition: crypto.cpp:39
std::string getSha1(const unsigned char *data, std::uint64_t length)
Count SHA1 of data.
Definition: crypto.cpp:55
Definition: archive_wrapper.h:19