GoogleCloudPlatform/java-recaptcha-password-check-helpers

SupportedCurve fails if any curve does not exist

Closed this issue · 1 comments

When the SupportedCurve enum is referenced, it initializes all of its values: secp224r1, secp256r1, secp384r1. So it will fail if any of the 3 curves are not available.

This seems a bug, as it looks like the intent is to verify that one of the hard-code curves is being used, not that all of the curves are available in the JDK.

This causes the code to fail on Red Hat Enterprise Linux, where secp224r1 does not exist in the Red Hat build of OpenJDK.