-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add MarshalBinary/UnmarshalBinary support #68
Conversation
# Conflicts: # sha256.go
c5491d0
to
df876d5
Compare
Can you create a new release with this fix? On 11th gen Intel CPUs which have avx512 it causes a compilation error. |
@SuperSandro2000 v1.0.1 released. |
if len(b) < len(magic256) || string(b[:len(magic256)]) != magic256 { | ||
return errors.New("crypto/sha256: invalid hash state identifier") | ||
} | ||
if len(b) != marshaledSize { | ||
return errors.New("crypto/sha256: invalid hash state size") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps these errors shouldn't be referencing crypto/sha256
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to send a PR.
Fixes #67
Mainly copied from stdlib.