aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
diff options
context:
space:
mode:
authorJ08nY2019-07-11 21:43:27 +0200
committerJ08nY2019-07-11 21:43:27 +0200
commitf57fc9e3f61cf108016c10558f102f52728f1d3a (patch)
treeeddc02d6df756661c569a7c316e3d37bd6f8b32d /src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
parent3925f8b3221bb42db0f84d5a23ad5220e3f6f93b (diff)
downloadECTester-f57fc9e3f61cf108016c10558f102f52728f1d3a.tar.gz
ECTester-f57fc9e3f61cf108016c10558f102f52728f1d3a.tar.zst
ECTester-f57fc9e3f61cf108016c10558f102f52728f1d3a.zip
Add MatrixSSL support.
Diffstat (limited to 'src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java')
-rw-r--r--src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java b/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
index 662f32c..f5fdebf 100644
--- a/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
+++ b/src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java
@@ -353,4 +353,24 @@ public abstract class NativeKeyAgreementSpi extends KeyAgreementSpi {
}
}
+ public abstract static class Matrixssl extends SimpleKeyAgreementSpi {
+ private String type;
+
+ public Matrixssl(String type) {
+ this.type = type;
+ }
+
+ @Override
+ native byte[] generateSecret(byte[] pubkey, byte[] privkey, ECParameterSpec params);
+
+ @Override
+ native SecretKey generateSecret(byte[] pubkey, byte[] privkey, ECParameterSpec params, String algorithm);
+ }
+
+ public static class MatrixsslECDH extends Matrixssl {
+ public MatrixsslECDH() {
+ super("ECDH");
+ }
+ }
+
}