diff options
| author | J08nY | 2017-11-30 23:57:09 +0100 |
|---|---|---|
| committer | J08nY | 2017-11-30 23:57:09 +0100 |
| commit | c33faeed138b3cbb0324878fa24481916791ec50 (patch) | |
| tree | 4e1ec7d79ba0bfa4b8af41b235af00c1c3aa6a0a /src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java | |
| parent | d571f404e51356239cdb7d23de95074b271016e1 (diff) | |
| download | ECTester-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.java | 4 |
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()) && |
