mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
Fix CRC and hash calculations (#321)
* Fix CRC calculation, add more CRC parameters Use the Boost CRC module to calculate the CRC values. Add options for final xor value, reflectIn and reflectOut. Fixes #320 * Cleanup Hash view combo box, add CRC8 * Use offset/size consistently * Cleanup: unify processing data by chunks * Change CRC algorithm back, drop boost dependency This is mostly the original algorithm, with a few fixes and small additions (support for reflect In / Out, final XOR value). * Use size_t for file read size consistently
This commit is contained in:
@@ -146,6 +146,9 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.view.hashes.settings", "Settings" },
|
||||
{ "hex.view.hashes.function", "Hash function" },
|
||||
{ "hex.view.hashes.iv", "Initial value" },
|
||||
{ "hex.view.hashes.xorout", "Final XOR value" },
|
||||
{ "hex.common.reflectIn", "Reflect input" },
|
||||
{ "hex.common.reflectOut", "Reflect output" },
|
||||
{ "hex.view.hashes.poly", "Polynomial" },
|
||||
{ "hex.view.hashes.result", "Result" },
|
||||
|
||||
@@ -666,4 +669,4 @@ namespace hex::plugin::builtin {
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user