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/NativeECPublicKey.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/NativeECPublicKey.java')
| -rw-r--r-- | src/cz/crcs/ectester/standalone/libs/jni/NativeECPublicKey.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cz/crcs/ectester/standalone/libs/jni/NativeECPublicKey.java b/src/cz/crcs/ectester/standalone/libs/jni/NativeECPublicKey.java index 577de44..62db5c4 100644 --- a/src/cz/crcs/ectester/standalone/libs/jni/NativeECPublicKey.java +++ b/src/cz/crcs/ectester/standalone/libs/jni/NativeECPublicKey.java @@ -116,6 +116,12 @@ public abstract class NativeECPublicKey implements ECPublicKey { } } + public static class Libressl extends ANSIX962 { + public Libressl(byte[] keyData, ECParameterSpec params) { + super(keyData, params); + } + } + public static class Mscng extends ANSIX962 { // 0 -> implicit (meta = curveName UTF16, header = full); // 1 -> explicit (meta = null, header = full); |
