aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
diff options
context:
space:
mode:
authorJ08nY2017-11-30 23:57:09 +0100
committerJ08nY2017-11-30 23:57:09 +0100
commitc33faeed138b3cbb0324878fa24481916791ec50 (patch)
tree4e1ec7d79ba0bfa4b8af41b235af00c1c3aa6a0a /src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
parentd571f404e51356239cdb7d23de95074b271016e1 (diff)
downloadECTester-c33faeed138b3cbb0324878fa24481916791ec50.tar.gz
ECTester-c33faeed138b3cbb0324878fa24481916791ec50.tar.zst
ECTester-c33faeed138b3cbb0324878fa24481916791ec50.zip
Implement ECDSA for LibTomCrypt.
Diffstat (limited to '')
-rw-r--r--src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java b/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
index 47eeabd..913f73e 100644
--- a/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
+++ b/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
@@ -23,7 +23,7 @@ public abstract class NativeKeyAgreementSpi extends KeyAgreementSpi {
protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException {
if (!(key instanceof ECPrivateKey)) {
throw new InvalidKeyException
- ("Key must be instance of PrivateKey");
+ ("Key must be instance of ECPrivateKey");
}
privateKey = (ECPrivateKey) key;
this.params = privateKey.getParams();
@@ -52,7 +52,7 @@ public abstract class NativeKeyAgreementSpi extends KeyAgreementSpi {
}
if (!(key instanceof ECPublicKey)) {
throw new InvalidKeyException
- ("Key must be a PublicKey with algorithm EC");
+ ("Key must be an instance of ECPublicKey");
}
ECParameterSpec publicParams = ((ECPublicKey) key).getParams();
if (!(params.getCurve().equals(publicParams.getCurve()) &&