diff options
| author | J08nY | 2019-07-11 21:43:27 +0200 |
|---|---|---|
| committer | J08nY | 2019-07-11 21:43:27 +0200 |
| commit | f57fc9e3f61cf108016c10558f102f52728f1d3a (patch) | |
| tree | eddc02d6df756661c569a7c316e3d37bd6f8b32d /src/cz/crcs/ectester/standalone/libs/jni/NativeKeyAgreementSpi.java | |
| parent | 3925f8b3221bb42db0f84d5a23ad5220e3f6f93b (diff) | |
| download | ECTester-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.java | 20 |
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"); + } + } + } |
