diff options
| author | Matěj Grabovský | 2019-11-18 17:17:25 +0100 |
|---|---|---|
| committer | Matěj Grabovský | 2019-12-08 19:05:19 +0100 |
| commit | bd5dd3aa41bacd96d2c3b5982ee31ca10e665c2c (patch) | |
| tree | 2ae3e3b26eb12b93dfb19966d527463969d699a3 /src/cz/crcs/ectester/standalone/libs/jni/NativeECPrivateKey.java | |
| parent | 13eb7884878ff10aa0a768077166710861af2fcc (diff) | |
| download | ECTester-bd5dd3aa41bacd96d2c3b5982ee31ca10e665c2c.tar.gz ECTester-bd5dd3aa41bacd96d2c3b5982ee31ca10e665c2c.tar.zst ECTester-bd5dd3aa41bacd96d2c3b5982ee31ca10e665c2c.zip | |
Add support for LibreSSL
The code is copied from the BoringSSL implementation with some minor
modifications to accomodate slight differences in the LibreSSL API.
Diffstat (limited to 'src/cz/crcs/ectester/standalone/libs/jni/NativeECPrivateKey.java')
| -rw-r--r-- | src/cz/crcs/ectester/standalone/libs/jni/NativeECPrivateKey.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cz/crcs/ectester/standalone/libs/jni/NativeECPrivateKey.java b/src/cz/crcs/ectester/standalone/libs/jni/NativeECPrivateKey.java index 088f876..ef26b8c 100644 --- a/src/cz/crcs/ectester/standalone/libs/jni/NativeECPrivateKey.java +++ b/src/cz/crcs/ectester/standalone/libs/jni/NativeECPrivateKey.java @@ -115,6 +115,12 @@ public abstract class NativeECPrivateKey implements ECPrivateKey { } } + public static class Libressl extends Raw { + public Libressl(byte[] keyData, ECParameterSpec params) { + super(keyData, params); + } + } + public static class Mscng extends Raw { // 0 -> implicit (meta = curveName UTF16, header = full); // 1 -> explicit (meta = null, header = full); |
