On Mon, 9 Dec 2024 17:26:49 GMT, Weijun Wang <wei...@openjdk.org> wrote:

> Allow `Generic` as an algorithm in the `KeyAgreement::generateSecret(alg)` 
> method.

The comparison of algorithm names was inconsistent, sometimes `equals` and 
sometimes `equalsIgnoreCase`. This is even more suspicious in the 
`P11KeyAgreement` where both were used. My understanding is that 
`equalsIgnoreCase` should always be used because key algorithm has always been 
case-insensitive. Also, since the "TlsPremasterSecret" algorithm is only used 
internally, it is always provided with the correct case.

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

PR Comment: https://git.openjdk.org/jdk/pull/22650#issuecomment-2528836293

Reply via email to