From 62e1bf0ec4cefd740890fda1a660cee9f93c9850 Mon Sep 17 00:00:00 2001 From: Thai Duong Date: Fri, 3 Feb 2017 11:16:18 -0800 Subject: [PATCH] Fix #23 and #2 (#24) --- README.md | 7 ++++--- .../com/google/security/wycheproof/testcases/EcdhTest.java | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d9fee13..f5cf957 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ providers in [OpenJDK](http://openjdk.java.net/). - Install [Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files](http://stackoverflow.com/questions/6481627/java-security-illegal-key-size-or-default-parameters): this enables tests with large key -sizes. Otherwise you'll see a lot of "iilegal key size" exceptions. +sizes. Otherwise you'll see a lot of "illegal key size" exceptions. - Check out the tests @@ -155,8 +155,8 @@ BouncyCastleTest, SpongyCastleTest or OpenJDKTest -- these targets exclude all slow tests (which are annotated with @SlowTest). Most test targets are failing, and each failure might be a security issue. To -learn more about what a failed test means, you might want to check out our -documentation (doc/bugs.md) or the comments on top of the corresponding test +learn more about what a failed test means, you might want to check out [our +documentation](doc/bugs.md) or the comments on top of the corresponding test function and test class. ### Hall of Bugs @@ -193,3 +193,4 @@ If you'd like to talk to our developers or get notified about major new tests, you may want to subscribe to our [mailing list](https://groups.google.com/forum/#!forum/wycheproof-users). To join, simply send an empty mail to wycheproof-users+subscribe@googlegroups.com. + diff --git a/java/com/google/security/wycheproof/testcases/EcdhTest.java b/java/com/google/security/wycheproof/testcases/EcdhTest.java index 092375a..00be916 100644 --- a/java/com/google/security/wycheproof/testcases/EcdhTest.java +++ b/java/com/google/security/wycheproof/testcases/EcdhTest.java @@ -864,7 +864,7 @@ public void testDecode() throws Exception { ECPublicKey key1 = (ECPublicKey) kf.generatePublic(EC_VALID_PUBLIC_KEY.getSpec()); ECPublicKey key2 = (ECPublicKey) kf.generatePublic(EC_VALID_PUBLIC_KEY.getX509EncodedKeySpec()); ECParameterSpec params1 = key1.getParams(); - ECParameterSpec params2 = key1.getParams(); + ECParameterSpec params2 = key2.getParams(); assertEquals(params1.getCofactor(), params2.getCofactor()); assertEquals(params1.getCurve(), params2.getCurve()); assertEquals(params1.getGenerator(), params2.getGenerator());