summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJ08nY2017-12-01 12:41:08 +0100
committerJ08nY2017-12-01 12:41:08 +0100
commitda2f36d4d313dc4cc736d8789700d78e052d1fc8 (patch)
tree5468ae664a0ebf416c05ec502b30d4527a4c0575 /src
parent018771cbd0b104918012c473a2590e0ef8e89a25 (diff)
downloadECTester-da2f36d4d313dc4cc736d8789700d78e052d1fc8.tar.gz
ECTester-da2f36d4d313dc4cc736d8789700d78e052d1fc8.tar.zst
ECTester-da2f36d4d313dc4cc736d8789700d78e052d1fc8.zip
Diffstat (limited to 'src')
-rw-r--r--src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java b/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
index 913f73e..a58c0c8 100644
--- a/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
+++ b/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
@@ -54,13 +54,6 @@ public abstract class NativeKeyAgreementSpi extends KeyAgreementSpi {
throw new InvalidKeyException
("Key must be an instance of ECPublicKey");
}
- ECParameterSpec publicParams = ((ECPublicKey) key).getParams();
- if (!(params.getCurve().equals(publicParams.getCurve()) &&
- params.getGenerator().equals(publicParams.getGenerator()) &&
- params.getOrder().equals(publicParams.getOrder()) &&
- params.getCofactor() == publicParams.getCofactor())) {
- throw new IllegalStateException("Mismatched parameters.");
- }
publicKey = (ECPublicKey) key;
return null;
}