RFR: 8253176: Signature.getParameters should specify that it can throw UnsupportedOperationException [v2]
Valerie Peng
valeriep at openjdk.java.net
Thu May 5 00:06:19 UTC 2022
On Tue, 3 May 2022 00:17:11 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> An example is RSASSA-PSS, i.e. it requires the caller to explicitly state which message digest to use, etc.
>
> You listed 2 cases when null is returned: 1) not supplied. 2) cannot generate. My understanding is that the RSASSA-PSS case is 1), and the EdDSA case is 2). This is why I suggested an "or" relation between them.
For EdDSA, it's really the case of the signature impl cannot convert the supplied parameter values to "AlgorithmParameters" object.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8396
More information about the security-dev
mailing list