-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hash mismatch with reference implementation #5
Comments
Hi, thanks for your interest. You have probably noticed that gossdeep is just a wrapper around the official implementation. I still have some issues in mine (as you have rightful noticed) with handling some of the corner cases. |
Any progress on this issue? Do you have an idea where the problem is? |
Hi @davidt99 unfortunately I did not had time to look into this yet. How familiar are you with Go? I could give you some pointers that get you started investigating the problem. |
I just started writing in Go, but I feel comfortable enough with the language to try and fix the problem, so if it's not too much trouble, post the pointers and I will try to fix it. |
Yes, there are a bunch of downsides to using cgo: https://dave.cheney.net/2016/01/18/cgo-is-not-go |
You might have noticed when comparing the results that our implementation is appending some extra characters to the hash. Might be a good starting point to find the root cause. |
This seems to be more significant with smaller files. |
I think I fixed it, but I need to do more testing. Do you have some sort of control group that I can use? |
I can help with that since I filed the original bug :) |
I think I was able to reproduce the mismatch you described, but while I was trying to solve it, I found another mismatch (in a different location). |
Hi, thanks for the pure go library for ssdeep. I was curious if you have compared results with github.com/dutchcoders/gossdeep. I just did a quick test and it seems like the results are slightly diff:
First one is from @dutchcoders, second is from yours.
The text was updated successfully, but these errors were encountered: