1
0
mirror of synced 2024-12-11 23:46:00 +01:00
ImHex/include/views/view_hashes.hpp

30 lines
700 B
C++
Raw Normal View History

#pragma once
#include "views/view.hpp"
#include <cstdio>
namespace hex {
2020-11-11 09:28:44 +01:00
namespace prv { class Provider; }
class ViewHashes : public View {
public:
2020-11-11 09:28:44 +01:00
explicit ViewHashes(prv::Provider* &dataProvider);
~ViewHashes() override;
2020-11-11 09:28:44 +01:00
void createView() override;
void createMenu() override;
private:
prv::Provider* &m_dataProvider;
bool m_shouldInvalidate = true;
int m_currHashFunction = 0;
u64 m_hashRegion[2] = { 0 };
bool m_shouldMatchSelection = false;
static constexpr const char* HashFunctionNames[] = { "CRC16", "CRC32", "MD4", "MD5", "SHA-1", "SHA-224", "SHA-256", "SHA-384", "SHA-512" };
};
}