Skip to content

Commit b0c31ad

Browse files
replace secpr5121 with secp256r1 for default ECGenParameterSpec
1 parent 43a43dc commit b0c31ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- release 2.6.1
2-
2+
- enhanced security: replace secpr5121 with secp256r1 for default ECGenParameterSpec
33
- enhanced logging: log detailed information and stack trace health check failure
44
- enhanced logging: Netty channel handler exception will be logged only when:
55
1. run with -debug

src/main/java/org/summerboot/jexpress/security/EncryptorUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public static KeyPair generateKeyPairRSA() throws NoSuchAlgorithmException, Inva
467467
}
468468

469469
public static KeyPair generateKeyPairEC() throws NoSuchAlgorithmException, InvalidKeySpecException, InvalidAlgorithmParameterException {
470-
return generateKeyPair("EC", 512);
470+
return generateKeyPair("EC", 256);// secp256r1 , secp384r1, secp521r1
471471
}
472472

473473
/**

0 commit comments

Comments
 (0)