aboutsummaryrefslogtreecommitdiff
path: root/java/com/google/security/wycheproof/testcases/EcdhTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/google/security/wycheproof/testcases/EcdhTest.java')
-rw-r--r--java/com/google/security/wycheproof/testcases/EcdhTest.java2
1 files changed, 1 insertions, 1 deletions
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());