diff options
author | Thai Duong <thaidn@users.noreply.github.com> | 2017-02-03 11:16:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-03 11:16:18 -0800 |
commit | 62e1bf0ec4cefd740890fda1a660cee9f93c9850 (patch) | |
tree | 6b63eff6d299054b09627a4fa0a6df90f81f1a11 | |
parent | fa01b5aeae706e23d22881aa8f5b459886a0bf44 (diff) | |
download | wycheproof-62e1bf0ec4cefd740890fda1a660cee9f93c9850.tar.gz |
Fix #23 and #2 (#24)
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | java/com/google/security/wycheproof/testcases/EcdhTest.java | 2 |
2 files changed, 5 insertions, 4 deletions
@@ -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 class EcdhTest extends TestCase { 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()); |