On Tue, 19 Oct 2021 15:48:57 GMT, Sean Mullan <[email protected]> wrote:
>> src/java.base/share/classes/sun/security/util/AlgorithmDecomposer.java line
>> 196:
>>
>>> 194: static String canonicalName(String algorithm) {
>>> 195: return CANONICAL_NAME.getOrDefault(algorithm, algorithm);
>>> 196: }
>>
>> I'm not sure if `canonicalName` is good. Normally, we say "SHA-1" is the
>> standard name but this method changes it to "SHA1".
>
> Right, it's really just about using consistent message digest names so that
> it can match for example, "SHA-1" and also "SHA1withRSA". I'll change the
> name to something else.
Was the reason for this change that hashName("RSASSA-PSS") was returning an
RSASSAPSS?
-------------
PR: https://git.openjdk.java.net/jdk/pull/5928