-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Support SHA-3 family of functions in Hashing #3960
Comments
Hi, |
I second this. This is the only thing preventing us to migrate from Apache Commons Codec to Guava. |
So we have to add the SHA3 family of functions in |
Both -- if anyone's willing to send a PR for this, please search for everywhere you see /sha-?512/i and do something parallel to that. However, there is a difference: we have users on Java 8 for whom this probably won't work. So we need to make sure the methods like Hashing.sha3_224() fail gracefully (UnsupportedOperationException) every time they're called. The other MessageDigest-backed methods don't have this problem, as the existence of those algorithms is required by the spec. |
I'll try it @kevinb9n.
Can you elaborate it a little? |
Sorry, I'm moving a little too fast here. I did a little more digging and have found that
So, while we might still do it, it will be a longer conversation than I thought. I wouldn't want you to spend time on a PR yet. I've filed #5990 as alternative (which we also have to consider a bit). |
SHA-3 support was added to the JDK in JEP 287. It would be nice to allow using these for hashing and HMAC.
The text was updated successfully, but these errors were encountered: