nirizr / rematch

REmatch, a complete binary diffing framework that is free and strives to be open source and community driven.
GNU General Public License v3.0
154 stars 22 forks source link

Create a class for Hashes. #27

Open shiftre opened 8 years ago

shiftre commented 8 years ago

Each bb-based function is basically the same, create a class which one must only implement digest() and let the class has it's own bb iterator function.

This issue depends on the previous one as we must also parallelize the functions which create the hash, specifically collect_insn, (as it's the only one, but maybe one day we'd like to have a diff hashing mechanism which is not based on bb but rather on other features, s.a switch cases or something similar like dominant items in the functions (API calls, interrupts, etc))

shiftre commented 8 years ago

Actually, it's a subtype of Vector.

nirizr commented 8 years ago

There are different types of hashes. Hash might work on assembly, binary or parts thereof. Generally +1 though

shiftre commented 8 years ago

We should merge your initial hashes and then mine, once I clear and fix the things you mentioned, (today). I'll create the class today too once it's merged.

shiftre commented 8 years ago

25 hash the basic hashvec, still wip