RFR: 8298127: HSS/LMS Signature Verification [v2]

Weijun Wang weijun at openjdk.org
Fri Apr 28 20:13:22 UTC 2023


On Fri, 28 Apr 2023 17:46:40 GMT, Mark Powers <mpowers at openjdk.org> wrote:

>> Ferenc Rakoczi has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   review comments addressed
>
> src/java.base/share/classes/sun/security/provider/HSS.java line 423:
> 
>> 421: 
>> 422:                 default:
>> 423:                     throw new IllegalArgumentException("Unsupported or bad LMS type");
> 
> Could this be `InvalidParameterException` instead?

Or should it be a `InvalidKeyException` if the method is called when creating a public key?

Anyway, we need to make sure the correct exceptions are thrown in public APIs. This needs a lot of tests.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13691#discussion_r1180765542



More information about the security-dev mailing list