mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8318328: DHKEM should check XDH name in case-insensitive mode
Reviewed-by: ascarpino, hchao
This commit is contained in:
parent
c566dfccf8
commit
5145e5a40a
3 changed files with 66 additions and 3 deletions
|
@ -103,7 +103,7 @@ public final class XDHPrivateKeyImpl extends PKCS8Key implements XECPrivateKey {
|
|||
|
||||
@Override
|
||||
public PublicKey calculatePublicKey() {
|
||||
XECParameters params = paramSpec.getName().equals("X25519")
|
||||
XECParameters params = paramSpec.getName().equalsIgnoreCase("X25519")
|
||||
? XECParameters.X25519
|
||||
: XECParameters.X448;
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue