-
Notifications
You must be signed in to change notification settings - Fork 286
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
HashType requires LENGTH #600
Labels
Comments
HashType is used as an abstract type, but I agree it should have some more obvious way to signal that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was using the wrong Type, but still HashType raises an error on to_native(), because it expects a Class attribute LENGTH. This works for SHA and the derived hashtypes because they have a length, but if you use HashType by itself, you also need to set LENGTH or it will die on to_native(). Note: it validates fine without LENGTH.
The text was updated successfully, but these errors were encountered: