Implemented hash view with CRC16, CRC32 and MD5 support

More to come
This commit is contained in:
WerWolv
2020-11-11 00:13:09 +01:00
parent 72c602ca55
commit c87bc6aebe
6 changed files with 291 additions and 9 deletions

View File

@@ -1,10 +1,8 @@
#pragma once
#include <windows.h>
#include <shobjidl.h>
#include <hex.hpp>
#include <locale>
#include <codecvt>
#include <array>
#include <optional>
#include <string>
@@ -12,4 +10,7 @@ namespace hex {
std::optional<std::string> openFileDialog();
u16 crc16(u8 *data, size_t size, u16 polynomial, u16 init);
u32 crc32(u8 *data, size_t size, u32 polynomial, u32 init);
std::array<u32, 4> md5(u8 *data, size_t size);
}