[java-opensaml] branch main updated: OSJ-319: Test failure: Legacy SunEC curve disabled under Java 15
Brent Putman
putmanb at georgetown.edu
Thu Sep 17 23:34:50 UTC 2020
This is an automated email from the git hooks/post-receive script.
putmanb pushed a commit to branch main
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=39bc2c488c1957b461bbd576e0a89073bc31cbd2
The following commit(s) were added to refs/heads/main by this push:
new 39bc2c488 OSJ-319: Test failure: Legacy SunEC curve disabled under Java 15
39bc2c488 is described below
commit 39bc2c488c1957b461bbd576e0a89073bc31cbd2
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Thu Sep 17 19:30:45 2020 -0400
OSJ-319: Test failure: Legacy SunEC curve disabled under Java 15
---
.../opensaml/security/crypto/KeySupportTest.java | 26 +++++++++++-----------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/opensaml-security-api/src/test/java/org/opensaml/security/crypto/KeySupportTest.java b/opensaml-security-api/src/test/java/org/opensaml/security/crypto/KeySupportTest.java
index 4c7900e03..bff5778ad 100644
--- a/opensaml-security-api/src/test/java/org/opensaml/security/crypto/KeySupportTest.java
+++ b/opensaml-security-api/src/test/java/org/opensaml/security/crypto/KeySupportTest.java
@@ -211,7 +211,7 @@ public class KeySupportTest {
}
}
- @Test(enabled=false)
+ @Test
public void testKeyLength() throws NoSuchAlgorithmException, NoSuchProviderException {
KeyPair kp = null;
@@ -239,33 +239,33 @@ public class KeySupportTest {
// Asymmetric: EC
try {
- kp = KeySupport.generateKeyPair("EC", 112, null);
- Assert.assertEquals(KeySupport.getKeyLength(kp.getPublic()), Integer.valueOf(112));
- Assert.assertEquals(KeySupport.getKeyLength(kp.getPrivate()), Integer.valueOf(112));
+ kp = KeySupport.generateKeyPair("EC", 256, null);
+ Assert.assertEquals(KeySupport.getKeyLength(kp.getPublic()), Integer.valueOf(256));
+ Assert.assertEquals(KeySupport.getKeyLength(kp.getPrivate()), Integer.valueOf(256));
} catch (final NoSuchAlgorithmException| InvalidParameterException e) {
// EC support isn't universal, e.g. OpenJDK 7 doesn't ship with an EC provider out-of-the-box.
// Just ignore unsupported algorithm abd InvalidParameter failures here for now.
- log.warn("EC-112 failed", e);
+ log.warn("EC-256 failed", e);
}
try {
- kp = KeySupport.generateKeyPair("EC", 256, null);
- Assert.assertEquals(KeySupport.getKeyLength(kp.getPublic()), Integer.valueOf(256));
- Assert.assertEquals(KeySupport.getKeyLength(kp.getPrivate()), Integer.valueOf(256));
+ kp = KeySupport.generateKeyPair("EC", 384, null);
+ Assert.assertEquals(KeySupport.getKeyLength(kp.getPublic()), Integer.valueOf(384));
+ Assert.assertEquals(KeySupport.getKeyLength(kp.getPrivate()), Integer.valueOf(384));
} catch (final NoSuchAlgorithmException| InvalidParameterException e) {
// EC support isn't universal, e.g. OpenJDK 7 doesn't ship with an EC provider out-of-the-box.
// Just ignore unsupported algorithm abd InvalidParameter failures here for now.
- log.warn("EC-256 failed", e);
+ log.warn("EC-384 failed", e);
}
try {
- kp = KeySupport.generateKeyPair("EC", 571, null);
- Assert.assertEquals(KeySupport.getKeyLength(kp.getPublic()), Integer.valueOf(571));
- Assert.assertEquals(KeySupport.getKeyLength(kp.getPrivate()), Integer.valueOf(571));
+ kp = KeySupport.generateKeyPair("EC", 521, null);
+ Assert.assertEquals(KeySupport.getKeyLength(kp.getPublic()), Integer.valueOf(521));
+ Assert.assertEquals(KeySupport.getKeyLength(kp.getPrivate()), Integer.valueOf(521));
} catch (final NoSuchAlgorithmException| InvalidParameterException e) {
// EC support isn't universal, e.g. OpenJDK 7 doesn't ship with an EC provider out-of-the-box.
// Just ignore unsupported algorithm abd InvalidParameter failures here for now.
- log.warn("EC-571 failed", e);
+ log.warn("EC-521 failed", e);
}
// Symmetric: AES
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list