diff options
| -rw-r--r-- | src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java | 7 |
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; } |
