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

Issue: "got invalid digest" #15

Closed
daijuk opened this issue Aug 14, 2020 · 1 comment · Fixed by #16
Closed

Issue: "got invalid digest" #15

daijuk opened this issue Aug 14, 2020 · 1 comment · Fixed by #16

Comments

@daijuk
Copy link

daijuk commented Aug 14, 2020

One month ago, you commited decoder.go and moved computedDigest := ksd.md.Sum(nil) in Decode function to after actualDigest, err := ksd.readBytes(uint32(ksd.md.Size()))
The Decode function returns "got invalid digest" error every time after that.
The reason of error is containing digest at last of file for calculating digest.
Please re-check it.
Thank you.

@pavlo-v-chernykh
Copy link
Owner

@daijuk hi, thanks for the report

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

Successfully merging a pull request may close this issue.

2 participants