Skip to content
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

Cksums wrong b/c of incorrect blocksizes #1

Closed
0xf10e opened this issue Jul 12, 2015 · 1 comment
Closed

Cksums wrong b/c of incorrect blocksizes #1

0xf10e opened this issue Jul 12, 2015 · 1 comment

Comments

@0xf10e
Copy link
Owner

0xf10e commented Jul 12, 2015

The pkgs md5, sha1 and sha256 all have a BlockSize constant of 64 (bytes).
Feeding hash.Write() with 64byte chunks should fix the cksums.

@0xf10e
Copy link
Owner Author

0xf10e commented Jul 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant