From 562263257560b06a0759972744ddbfbaa5bc81f8 Mon Sep 17 00:00:00 2001 From: quapka Date: Thu, 18 Jul 2024 13:43:15 +0200 Subject: Don't build LibreSSL from submodule --- .../java/cz/crcs/ectester/standalone/libs/LibresslLib.java | 2 +- .../resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'standalone/src') diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/LibresslLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/LibresslLib.java index 2dba049..a403896 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/LibresslLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/LibresslLib.java @@ -8,7 +8,7 @@ import java.util.Set; */ public class LibresslLib extends NativeECLibrary { public LibresslLib() { - super("LibreSSL", "libressl_provider", "lib_libressl.so"); + super("LibreSSL", "libressl_provider"); } @Override diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 6282574..0fc0ca6 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -189,15 +189,14 @@ nettle.o: nettle.c # LibreSSL shim libressl: libressl_provider.so -lib_libressl.so: - cp $(PROJECT_ROOT_PATH)/ext/libressl/build/crypto/libcrypto.so lib_libressl.so +# lib_libressl.so: +# cp $(PROJECT_ROOT_PATH)/ext/libressl/build/crypto/libcrypto.so lib_libressl.so -libressl_provider.so: libressl.o c_utils.o | lib_timing.so lib_csignals.so lib_libressl.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. lib_libressl.so -l:lib_timing.so -l:lib_csignals.so +libressl_provider.so: libressl.o c_utils.o | lib_timing.so lib_csignals.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs libresslcrypto) -l:lib_timing.so -l:lib_csignals.so libressl.o: libressl.c - $(CC) -I$(PROJECT_ROOT_PATH)/ext/libressl/build/include/ $(CFLAGS) -c $< - + $(CC) $(shell pkg-config --cflags libresslcrypto) $(CFLAGS) -c $< help: @echo "# This makefile builds the JNI shims necessary to test native libraries." -- cgit v1.3.1 From 556c45f5bd203ef79ae81687d4986fbbf4bd5f19 Mon Sep 17 00:00:00 2001 From: quapka Date: Thu, 18 Jul 2024 14:00:11 +0200 Subject: Build LibreSSL alongside OpenSSL --- flake.nix | 4 ++-- .../src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index d768111..e4b92f9 100644 --- a/flake.nix +++ b/flake.nix @@ -338,7 +338,7 @@ global-platform-pro gradle # libraries to test - # openssl + openssl libressl # glibc boringssl @@ -380,7 +380,7 @@ libtomcrypt botan2 cryptopp - # openssl + openssl libgcrypt nettle gmp diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 0fc0ca6..1e67beb 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -193,10 +193,10 @@ libressl: libressl_provider.so # cp $(PROJECT_ROOT_PATH)/ext/libressl/build/crypto/libcrypto.so lib_libressl.so libressl_provider.so: libressl.o c_utils.o | lib_timing.so lib_csignals.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs libresslcrypto) -l:lib_timing.so -l:lib_csignals.so + NIX_CFLAGS_COMPILE= $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs libresslcrypto) -l:lib_timing.so -l:lib_csignals.so libressl.o: libressl.c - $(CC) $(shell pkg-config --cflags libresslcrypto) $(CFLAGS) -c $< + NIX_CFLAGS_COMPILE= $(CC) $(shell pkg-config --cflags libresslcrypto) $(CFLAGS) -c $< help: @echo "# This makefile builds the JNI shims necessary to test native libraries." -- cgit v1.3.1 From af299ba4547319a2bcd6a0e035e2fd5cfadd47a7 Mon Sep 17 00:00:00 2001 From: quapka Date: Mon, 22 Jul 2024 13:38:29 +0200 Subject: Remove unnecessary dependency since MbedTLS package is now used --- .../src/main/java/cz/crcs/ectester/standalone/libs/MbedTLSLib.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'standalone/src') diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/MbedTLSLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/MbedTLSLib.java index e44598c..26b4d09 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/MbedTLSLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/MbedTLSLib.java @@ -9,7 +9,7 @@ import java.util.Set; public class MbedTLSLib extends NativeECLibrary { public MbedTLSLib() { - super("mbedTLS", "mbedtls_provider", "lib_mbedtls.so"); + super("mbedTLS", "mbedtls_provider"); } @Override -- cgit v1.3.1 From f27f67cbab4323816b830c0ffe5f3cfe2331bdc0 Mon Sep 17 00:00:00 2001 From: quapka Date: Mon, 22 Jul 2024 13:38:53 +0200 Subject: Fix build instruction for BoringSSL and MbedTLS --- .../cz/crcs/ectester/standalone/libs/jni/Makefile | 27 ++++++++++++++-------- .../crcs/ectester/standalone/libs/jni/boringssl.c | 3 ++- 2 files changed, 19 insertions(+), 11 deletions(-) (limited to 'standalone/src') diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 1e67beb..5c71f87 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -96,14 +96,14 @@ openssl.o: openssl.c # BoringSSL shim boringssl: boringssl_provider.so -lib_boringssl.so: - cp $(PROJECT_ROOT_PATH)/ext/boringssl/build/crypto/libcrypto.so lib_boringssl.so +# lib_boringssl.so: +# cp $(PROJECT_ROOT_PATH)/ext/boringssl/build/crypto/libcrypto.so lib_boringssl.so -boringssl_provider.so: boringssl.o c_utils.o | lib_timing.so lib_csignals.so lib_boringssl.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. lib_boringssl.so -l:lib_timing.so -l:lib_csignals.so +boringssl_provider.so: boringssl.o c_utils.o | lib_timing.so lib_csignals.so + NIX_CFLAGS_COMPILE= $(CC) $(CFLAGS) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -l:lib_boringssl.so -l:lib_timing.so -l:lib_csignals.so boringssl.o: boringssl.c - $(CC) -I$(PROJECT_ROOT_PATH)/ext/boringssl/include/ $(CFLAGS) -c $< + NIX_CFLAGS_COMPILE= $(CC) -I$(BORINGSSL_CFLAGS) $(CFLAGS) -c $< # libgcrypt shim @@ -153,14 +153,21 @@ cryptopp.o: cryptopp.cpp # mbedTLS shim mbedtls: mbedtls_provider.so -lib_mbedtls.so: - cp $(PROJECT_ROOT_PATH)/ext/mbedtls/build/library/libmbedcrypto.so lib_mbedtls.so +# lib_mbedtls.so: +# cp $(PROJECT_ROOT_PATH)/ext/mbedtls/build/library/libmbedcrypto.so lib_mbedtls.so -mbedtls_provider.so: mbedtls.o c_utils.o | lib_timing.so lib_csignals.so lib_mbedtls.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. lib_mbedtls.so -l:lib_timing.so -l:lib_csignals.so +# mbedtls_provider.so: mbedtls.o c_utils.o | lib_timing.so lib_csignals.so lib_mbedtls.so +# $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. lib_mbedtls.so -l:lib_timing.so -l:lib_csignals.so + +# mbedtls.o: mbedtls.c +# $(CC) -I$(PROJECT_ROOT_PATH)/ext/mbedtls/build/include/ $(CFLAGS) -c $< + +mbedtls_provider.so: mbedtls.o c_utils.o | lib_timing.so lib_csignals.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -lmbedcrypto -l:lib_timing.so -l:lib_csignals.so mbedtls.o: mbedtls.c - $(CC) -I$(PROJECT_ROOT_PATH)/ext/mbedtls/build/include/ $(CFLAGS) -c $< + $(CC) $(CFLAGS) -c $< + # Intel Performance Primitives crypto shim diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/boringssl.c b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/boringssl.c index 919cc79..307d611 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/boringssl.c +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/boringssl.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -569,4 +570,4 @@ JNIEXPORT jboolean JNICALL Java_cz_crcs_ectester_standalone_libs_jni_NativeSigna EC_KEY_free(pub); EC_GROUP_free(curve); return (result == 1) ? JNI_TRUE : JNI_FALSE; -} \ No newline at end of file +} -- cgit v1.3.1 From 272a2b40619bb07d05c6ae5df9e6db839cb0404c Mon Sep 17 00:00:00 2001 From: quapka Date: Mon, 22 Jul 2024 16:17:05 +0200 Subject: Link BoringSSL statically In order to prevent problems with dynamic linking of OpenSSL, LibreSSL and BoringSSL -- that all have libcrypto.so -- we link statically into the providers. --- flake.nix | 12 +++++------- .../java/cz/crcs/ectester/standalone/libs/BoringsslLib.java | 2 +- .../resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index 8311b35..6d85575 100644 --- a/flake.nix +++ b/flake.nix @@ -23,7 +23,7 @@ # NOTE this build does not match upstream, but is what ECTester did at the time of writing buildPhase = '' - cmake -GNinja -DBUILD_SHARED_LIBS=1 -Bbuild + cmake -GNinja -Bbuild pushd build ninja crypto popd @@ -34,7 +34,7 @@ mv include $dev pushd build - mv crypto/libcrypto.so $out/lib/lib_boringssl.so + mv crypto/libcrypto.a $out/lib/lib_boringssl.a popd ''; @@ -116,7 +116,7 @@ preConfigure = '' cp ${libresslShim.out}/lib/libressl_provider.so standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ cp ${boringsslShim.out}/lib/boringssl_provider.so standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ - cp ${patched_boringssl.out}/lib/lib_boringssl.so standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ + cp ${patched_boringssl.out}/lib/lib_boringssl.a standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ cp ${mbedtlsShim.out}/lib/mbedtls_provider.so standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ pushd standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ make lib_timing.so lib_csignals.so lib_cppsignals.so @@ -235,15 +235,13 @@ }; devShells.default = with pkgs; mkShell rec { nativeBuildInputs = [ - libresslShim + pkg-config ]; preConfigure = '' - cp ${libresslShim.out}/libressl_provider.so standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ - ls standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni + cp ${patched_boringssl}/lib/lib_boringssl.a standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ ''; - buildInputs = [ # # gradle2nix # libresslShim diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BoringsslLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BoringsslLib.java index af4d969..ddc25c6 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BoringsslLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BoringsslLib.java @@ -8,7 +8,7 @@ import java.util.Set; */ public class BoringsslLib extends NativeECLibrary { public BoringsslLib() { - super("BoringSSL", "boringssl_provider", "lib_boringssl.so"); + super("BoringSSL", "boringssl_provider"); } @Override diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 5c71f87..32df65f 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -100,7 +100,7 @@ boringssl: boringssl_provider.so # cp $(PROJECT_ROOT_PATH)/ext/boringssl/build/crypto/libcrypto.so lib_boringssl.so boringssl_provider.so: boringssl.o c_utils.o | lib_timing.so lib_csignals.so - NIX_CFLAGS_COMPILE= $(CC) $(CFLAGS) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -l:lib_boringssl.so -l:lib_timing.so -l:lib_csignals.so + NIX_CFLAGS_COMPILE= $(CC) $(CFLAGS) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic -l:lib_boringssl.a -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so boringssl.o: boringssl.c NIX_CFLAGS_COMPILE= $(CC) -I$(BORINGSSL_CFLAGS) $(CFLAGS) -c $< -- cgit v1.3.1 From c867651a7f2c034ee1d48c2426fbad1a50ff956f Mon Sep 17 00:00:00 2001 From: quapka Date: Tue, 23 Jul 2024 10:26:51 +0200 Subject: Build IPP Crypto from package --- flake.lock | 17 ++++++++++++++ flake.nix | 13 ++++++++++- nix/ippcryptoshim.nix | 26 ++++++++++++++++++++++ .../cz/crcs/ectester/standalone/libs/jni/Makefile | 9 +++----- 4 files changed, 58 insertions(+), 7 deletions(-) create mode 100644 nix/ippcryptoshim.nix (limited to 'standalone/src') diff --git a/flake.lock b/flake.lock index fe1045b..b2ef9c5 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "custom-nixpkgs": { + "locked": { + "lastModified": 1721657519, + "narHash": "sha256-GX9DU5wHfUsUlBNX5WZzLLj1SbawinMDPMCfwKuOKlU=", + "owner": "quapka", + "repo": "nixpkgs", + "rev": "951e69f7ca8f1ade27297bac8e5dc6e292d9be3b", + "type": "github" + }, + "original": { + "owner": "quapka", + "ref": "add-ipp-crypto", + "repo": "nixpkgs", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems" @@ -87,6 +103,7 @@ }, "root": { "inputs": { + "custom-nixpkgs": "custom-nixpkgs", "flake-utils": "flake-utils", "gradle2nix": "gradle2nix", "nixpkgs": "nixpkgs_2" diff --git a/flake.nix b/flake.nix index 6d85575..7a8256b 100644 --- a/flake.nix +++ b/flake.nix @@ -5,13 +5,14 @@ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; gradle2nix.url = "github:tadfisher/gradle2nix/03c1b713ad139eb6dfc8d463b5bd348368125cf1"; + custom-nixpkgs.url = "github:quapka/nixpkgs/add-ipp-crypto"; # custom for of nixpkgs with ipp-crypto packaged # FIXME how to add submodule declaratively? # submodule = { # url = ./ # }; }; - outputs = { self, nixpkgs, flake-utils, gradle2nix, ... }: + outputs = { self, nixpkgs, custom-nixpkgs, flake-utils, gradle2nix, ... }: flake-utils.lib.eachDefaultSystem (system: let patched_boringssl = with pkgs; pkgs.boringssl.overrideAttrs (final: prev: rec { @@ -79,10 +80,15 @@ libresslShim = import ./nix/libresslshim.nix { pkgs = pkgs; libressl = libressl; }; boringsslShim = import ./nix/boringsslshim.nix { pkgs = pkgs; boringssl = patched_boringssl; }; mbedtlsShim = import ./nix/mbedtlsshim.nix { pkgs = pkgs; }; + ippcryptoShim = import ./nix/ippcryptoshim.nix { pkgs = pkgs; ipp-crypto = customPkgs.ipp-crypto; }; + overlays = []; pkgs = import nixpkgs { inherit system overlays; }; + customPkgs = import custom-nixpkgs { + inherit system overlays; + }; buildECTesterStandalone = { opensslVersion, opensslHash }: ( let patched_openssl = pkgs.openssl.overrideAttrs (_old: rec { @@ -283,6 +289,8 @@ nettle # libressl + customPkgs.ipp-crypto + gmp libgpg-error wget @@ -392,6 +400,9 @@ # ${buildLibreSSL} # popd # ''; + IPP_CRYPTO_HEADER = "${customPkgs.ipp-crypto.dev}/include"; + IPP_CRYPTO_LIB = "${customPkgs.ipp-crypto}/lib/"; + }; } diff --git a/nix/ippcryptoshim.nix b/nix/ippcryptoshim.nix new file mode 100644 index 0000000..b8e06f1 --- /dev/null +++ b/nix/ippcryptoshim.nix @@ -0,0 +1,26 @@ +{ + pkgs + , ipp-crypto +}: + with pkgs; stdenv.mkDerivation rec { + name = "IppCryptoShim"; + src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; + + buildInputs = [ + ipp-crypto + pkg-config + jdk11_headless + ]; + + IPP_CRYPTO_HEADER = "${ipp-crypto.dev}/include"; + IPP_CRYPTO_LIB = "${ipp-crypto}/lib/" + + buildPhase = '' + make ippcrypto + ''; + + installPhase = '' + mkdir --parents $out/lib + cp mbedtls_provider.so $out/lib + ''; +} diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 32df65f..1b3b761 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -173,14 +173,11 @@ mbedtls.o: mbedtls.c # Intel Performance Primitives crypto shim ippcp: ippcp_provider.so -lib_ippcp.so: - cp $(PROJECT_ROOT_PATH)/ext/ipp-crypto/build/.build/RELEASE/lib/libippcp.so lib_ippcp.so - -ippcp_provider.so: ippcp.o c_utils.o | lib_timing.so lib_csignals.so lib_ippcp.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. lib_ippcp.so -l:lib_timing.so -l:lib_csignals.so +ippcp_provider.so: ippcp.o c_utils.o | lib_timing.so lib_csignals.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L$(IPP_CRYPTO_LIB) -Wl,-Bstatic -l:libippcp.a -L. -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so ippcp.o: ippcp.c - $(CC) -I$(PROJECT_ROOT_PATH)/ext/ipp-crypto/build/.build/RELEASE/include/ $(CFLAGS) -c $< + $(CC) -I$(IPP_CRYPTO_HEADER) $(CFLAGS) -c $< # Nettle shim -- cgit v1.3.1 From 50c9d5b3b7c9bbf3273ba588c5ff9ce1dee2db1a Mon Sep 17 00:00:00 2001 From: quapka Date: Tue, 23 Jul 2024 10:33:15 +0200 Subject: Clear deprecated build targets --- .../cz/crcs/ectester/standalone/libs/jni/Makefile | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'standalone/src') diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 1b3b761..e4a0b26 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -96,9 +96,6 @@ openssl.o: openssl.c # BoringSSL shim boringssl: boringssl_provider.so -# lib_boringssl.so: -# cp $(PROJECT_ROOT_PATH)/ext/boringssl/build/crypto/libcrypto.so lib_boringssl.so - boringssl_provider.so: boringssl.o c_utils.o | lib_timing.so lib_csignals.so NIX_CFLAGS_COMPILE= $(CC) $(CFLAGS) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic -l:lib_boringssl.a -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so @@ -153,15 +150,6 @@ cryptopp.o: cryptopp.cpp # mbedTLS shim mbedtls: mbedtls_provider.so -# lib_mbedtls.so: -# cp $(PROJECT_ROOT_PATH)/ext/mbedtls/build/library/libmbedcrypto.so lib_mbedtls.so - -# mbedtls_provider.so: mbedtls.o c_utils.o | lib_timing.so lib_csignals.so lib_mbedtls.so -# $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. lib_mbedtls.so -l:lib_timing.so -l:lib_csignals.so - -# mbedtls.o: mbedtls.c -# $(CC) -I$(PROJECT_ROOT_PATH)/ext/mbedtls/build/include/ $(CFLAGS) -c $< - mbedtls_provider.so: mbedtls.o c_utils.o | lib_timing.so lib_csignals.so $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -lmbedcrypto -l:lib_timing.so -l:lib_csignals.so @@ -193,9 +181,6 @@ nettle.o: nettle.c # LibreSSL shim libressl: libressl_provider.so -# lib_libressl.so: -# cp $(PROJECT_ROOT_PATH)/ext/libressl/build/crypto/libcrypto.so lib_libressl.so - libressl_provider.so: libressl.o c_utils.o | lib_timing.so lib_csignals.so NIX_CFLAGS_COMPILE= $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs libresslcrypto) -l:lib_timing.so -l:lib_csignals.so -- cgit v1.3.1 From 40dde8f2c1297f8bb85ddf34f9e278af9d8b3904 Mon Sep 17 00:00:00 2001 From: quapka Date: Tue, 23 Jul 2024 10:53:56 +0200 Subject: Fix IPPCP ECLib requirements --- standalone/src/main/java/cz/crcs/ectester/standalone/libs/IppcpLib.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'standalone/src') diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/IppcpLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/IppcpLib.java index 115fe00..1b0047e 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/IppcpLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/IppcpLib.java @@ -9,7 +9,7 @@ import java.util.Set; public class IppcpLib extends NativeECLibrary { public IppcpLib() { - super("IPPCP", "ippcp_provider", "lib_ippcp.so"); + super("IPPCP", "ippcp_provider"); } @Override -- cgit v1.3.1 From ccdd0a2b894abc2aad1e777643813d20956e0fe3 Mon Sep 17 00:00:00 2001 From: quapka Date: Wed, 24 Jul 2024 16:02:19 +0200 Subject: Unify patching OpenSSL for all Flake outputs --- flake.nix | 47 +++++++++------------- .../crcs/ectester/standalone/libs/OpensslLib.java | 2 +- 2 files changed, 20 insertions(+), 29 deletions(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index f0338b7..93d87ed 100644 --- a/flake.nix +++ b/flake.nix @@ -46,10 +46,17 @@ mv crypto/libcrypto.a $out/lib/lib_boringssl.a popd ''; - }); - - + # FIXME: `nix develeop` now has different version than `nix run` + openssl = { version ? "", hash ? "" }: (pkgs.openssl.override { static = true; }).overrideAttrs (final: prev: rec { + pname = "openssl"; + src = if version != "" then pkgs.fetchurl { + url = "https://www.openssl.org/source/openssl-${version}.tar.gz"; + hash = hash; + } else prev.src; + # FIXME Removing patches might cause unwanted things; this should be version based! + patches = []; + }); libressl = pkgs.libressl.overrideAttrs (_old: rec { # devLibPath = pkgs.lib.makeLibraryPath [ pkgs.libressl.dev ]; # pname = "libressl"; @@ -99,23 +106,7 @@ }; buildECTesterStandalone = { opensslVersion, opensslHash }: ( let - patched_openssl = pkgs.openssl.overrideAttrs (_old: rec { - version = opensslVersion; - pname = "openssl"; - src = pkgs.fetchurl { - url = "https://www.openssl.org/source/openssl-${version}.tar.gz"; - hash = opensslHash; - }; - # FIXME Removing patches might cause unwanted things. - patches = []; - }); - - # devLibPath = pkgs.lib.makeLibraryPath [ pkgs.libressl.dev ]; - # libressl = pkgs.libressl.overrideAttrs (_old: { - # fixupPhase = '' - # cp ${devLibPath}/openssl.pc ${devLibPath}/libressl.pc - # ''; - # }); + opensslx = (openssl { version = opensslVersion; hash = opensslHash; }); in with pkgs; gradle2nix.builders.${system}.buildGradlePackage rec { @@ -146,7 +137,7 @@ pkg-config global-platform-pro gradle - # patched_openssl + opensslx makeWrapper # libraries to test @@ -189,7 +180,7 @@ buildInputs = [ jdk17_headless # libressl - # patched_openssl + opensslx ]; LD_LIBRARY_PATH = lib.makeLibraryPath [ @@ -201,8 +192,7 @@ botan2 cryptopp libgcrypt - patched_openssl - libressl + opensslx patched_boringssl ninja nettle @@ -219,9 +209,9 @@ installPhase = '' mkdir -p $out cp -r standalone/build $out - echo ${opensslVersion} > $out/build/opensslVersion + ls ${opensslx}/lib/* > $out/po ''; - + postFixup = '' makeWrapper \ ${jdk17_headless}/bin/java $out/bin/${pname} \ @@ -269,7 +259,7 @@ global-platform-pro gradle # libraries to test - openssl + (openssl {}) libressl # glibc patched_boringssl @@ -313,7 +303,8 @@ libtomcrypt botan2 cryptopp - openssl + # (openssl {}) + (openssl {}) patched_boringssl libgcrypt nettle diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/OpensslLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/OpensslLib.java index 61f00a4..23d7ac1 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/OpensslLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/OpensslLib.java @@ -8,7 +8,7 @@ import java.util.Set; */ public class OpensslLib extends NativeECLibrary { public OpensslLib() { - super("OpenSSL", "openssl_provider", "crypto"); + super("OpenSSL", "openssl_provider"); } @Override -- cgit v1.3.1 From a899f7d5eb46d56ca7c5d79767cf5e12baec17e0 Mon Sep 17 00:00:00 2001 From: quapka Date: Wed, 24 Jul 2024 16:51:35 +0200 Subject: Link GNU Crypto library statically --- flake.nix | 13 ++++++++++++- .../resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index 93d87ed..33563a6 100644 --- a/flake.nix +++ b/flake.nix @@ -57,6 +57,12 @@ # FIXME Removing patches might cause unwanted things; this should be version based! patches = []; }); + libgcrypt = pkgs.libgcrypt.overrideAttrs (final: prev: { + configureFlags = ( prev.configureFlags or [] ) ++ [ "--enable-static" ]; + }); + libgpg-error = pkgs.libgpg-error.overrideAttrs (final: prev: { + configureFlags = ( prev.configureFlags or [] ) ++ [ "--enable-static" ]; + }); libressl = pkgs.libressl.overrideAttrs (_old: rec { # devLibPath = pkgs.lib.makeLibraryPath [ pkgs.libressl.dev ]; # pname = "libressl"; @@ -115,7 +121,8 @@ # gradleInstallFlags = [ "installDist" ]; # gradleBuildFlags = [ "standalone:uberJar" ]; # ":standalone:compileJava" ":standalone:uberJar" ]; "--no-build-cache" lockFile = ./gradle.lock; - gradleBuildFlags = [ ":standalone:uberJar"]; # ":standalone:compileJava" ":standalone:uberJar" ]; "--no-build-cache" + # FIXME all libs need to be built, but combining Gradle build all-libs and dedicated shim derivations won't work + gradleBuildFlags = [ "libs" "-PlibName=gcrypt" ":standalone:uberJar"]; # ":standalone:compileJava" ":standalone:uberJar" ]; "--no-build-cache" src = ./.; preConfigure = '' @@ -163,6 +170,7 @@ clang libgcrypt + libgpg-error mbedtls nasm libtool @@ -192,6 +200,7 @@ botan2 cryptopp libgcrypt + libgpg-error opensslx patched_boringssl ninja @@ -281,6 +290,7 @@ # clang libgcrypt + libgpg-error mbedtls nasm libtool @@ -307,6 +317,7 @@ (openssl {}) patched_boringssl libgcrypt + libgpg-error nettle gmp libgpg-error diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index e4a0b26..ec72744 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -107,7 +107,7 @@ boringssl.o: boringssl.c gcrypt: gcrypt_provider.so gcrypt_provider.so: gcrypt.o c_utils.o | lib_timing.so lib_csignals.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -pthread -lpthread $(shell libgcrypt-config --libs) -l:lib_timing.so -l:lib_csignals.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -pthread -lpthread -Wl,-Bstatic $(shell libgcrypt-config --libs) -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so gcrypt.o: gcrypt.c $(CC) $(shell libgcrypt-config --cflags) $(CFLAGS) -c $< -- cgit v1.3.1 From eed2fbf135dace7d911aa042e3d79fa27cbe3d52 Mon Sep 17 00:00:00 2001 From: quapka Date: Wed, 24 Jul 2024 16:54:16 +0200 Subject: Build OpenSSL statically --- .../src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'standalone/src') diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index ec72744..3acff8b 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -87,7 +87,7 @@ cpp_utils.o: cpp_utils.cpp openssl: openssl_provider.so openssl_provider.so: openssl.o c_utils.o | lib_timing.so lib_csignals.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs openssl) -l:lib_timing.so -l:lib_csignals.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -Wl,-Bstatic $(shell pkg-config --libs libcrypto) -lcrypto -L. -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so openssl.o: openssl.c $(CC) $(shell pkg-config --cflags openssl) $(CFLAGS) -c $< -- cgit v1.3.1 From d798fffc674fe8d84c26f14ce935611f8afefb6c Mon Sep 17 00:00:00 2001 From: quapka Date: Wed, 24 Jul 2024 17:13:07 +0200 Subject: Linked tomcrypt statically --- flake.nix | 5 ++++- .../src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index 33563a6..27a0927 100644 --- a/flake.nix +++ b/flake.nix @@ -63,6 +63,9 @@ libgpg-error = pkgs.libgpg-error.overrideAttrs (final: prev: { configureFlags = ( prev.configureFlags or [] ) ++ [ "--enable-static" ]; }); + libtomcrypt = pkgs.libtomcrypt.overrideAttrs (final: prev: { + makefile = "makefile"; + }); libressl = pkgs.libressl.overrideAttrs (_old: rec { # devLibPath = pkgs.lib.makeLibraryPath [ pkgs.libressl.dev ]; # pname = "libressl"; @@ -122,7 +125,7 @@ # gradleBuildFlags = [ "standalone:uberJar" ]; # ":standalone:compileJava" ":standalone:uberJar" ]; "--no-build-cache" lockFile = ./gradle.lock; # FIXME all libs need to be built, but combining Gradle build all-libs and dedicated shim derivations won't work - gradleBuildFlags = [ "libs" "-PlibName=gcrypt" ":standalone:uberJar"]; # ":standalone:compileJava" ":standalone:uberJar" ]; "--no-build-cache" + gradleBuildFlags = [ "libs" "-PlibName=tomcrypt" ":standalone:uberJar"]; # ":standalone:compileJava" ":standalone:uberJar" ]; "--no-build-cache" src = ./.; preConfigure = '' diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 3acff8b..aee0a5e 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -117,7 +117,7 @@ gcrypt.o: gcrypt.c tomcrypt: tomcrypt_provider.so tomcrypt_provider.so: tomcrypt.o c_utils.o | lib_timing.so lib_csignals.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -ltommath $(shell pkg-config --libs libtomcrypt) -l:lib_timing.so -l:lib_csignals.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -ltommath -Wl,-Bstatic $(shell pkg-config --libs libtomcrypt) -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so tomcrypt.o: tomcrypt.c $(CC) -DLTM_DESC $(shell pkg-config --cflags libtomcrypt) $(CFLAGS) -c $< -- cgit v1.3.1 From 282704b9ee92d33b67292700cb265deffc052ad6 Mon Sep 17 00:00:00 2001 From: quapka Date: Wed, 24 Jul 2024 17:17:48 +0200 Subject: Link Botan statically --- .../src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'standalone/src') diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index aee0a5e..f3d95c0 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -127,7 +127,7 @@ tomcrypt.o: tomcrypt.c botan: botan_provider.so botan_provider.so: botan.o cpp_utils.o | lib_timing.so lib_cppsignals.so - $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs botan-2) -l:lib_timing.so -l:lib_cppsignals.so + $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs botan-2) -Wl,-Bdynamic -l:lib_timing.so -l:lib_cppsignals.so botan.o: botan.cpp $(CXX) $(shell pkg-config --cflags botan-2) $(CXXFLAGS) -c $< -- cgit v1.3.1 From 98e95fbfe9b3b1dc889cd227a1b700ff0a61e136 Mon Sep 17 00:00:00 2001 From: quapka Date: Thu, 25 Jul 2024 10:09:32 +0200 Subject: Static linking does not require loading botan-2 --- flake.nix | 2 +- standalone/src/main/java/cz/crcs/ectester/standalone/libs/BotanLib.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index 27a0927..0f8c3f6 100644 --- a/flake.nix +++ b/flake.nix @@ -64,7 +64,7 @@ configureFlags = ( prev.configureFlags or [] ) ++ [ "--enable-static" ]; }); libtomcrypt = pkgs.libtomcrypt.overrideAttrs (final: prev: { - makefile = "makefile"; + makefile = "makefile.unix"; }); libressl = pkgs.libressl.overrideAttrs (_old: rec { # devLibPath = pkgs.lib.makeLibraryPath [ pkgs.libressl.dev ]; diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BotanLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BotanLib.java index e8f6e13..3ed27f2 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BotanLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BotanLib.java @@ -9,7 +9,7 @@ import java.util.Set; public class BotanLib extends NativeECLibrary { public BotanLib() { - super("Botan", "botan_provider", "botan-2"); + super("Botan", "botan_provider"); } @Override -- cgit v1.3.1 From c7300fb4a772b0d2364b0fff20f9676fdb79ac9b Mon Sep 17 00:00:00 2001 From: quapka Date: Thu, 25 Jul 2024 10:11:36 +0200 Subject: Link Crypto++ statically --- flake.nix | 1 + .../src/main/java/cz/crcs/ectester/standalone/libs/CryptoppLib.java | 2 +- .../src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index 0f8c3f6..7265e2f 100644 --- a/flake.nix +++ b/flake.nix @@ -66,6 +66,7 @@ libtomcrypt = pkgs.libtomcrypt.overrideAttrs (final: prev: { makefile = "makefile.unix"; }); + cryptopp = pkgs.cryptopp.override { enableStatic = true; }; libressl = pkgs.libressl.overrideAttrs (_old: rec { # devLibPath = pkgs.lib.makeLibraryPath [ pkgs.libressl.dev ]; # pname = "libressl"; diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/CryptoppLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/CryptoppLib.java index 66aa9ea..6e001e2 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/CryptoppLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/CryptoppLib.java @@ -9,7 +9,7 @@ import java.util.Set; public class CryptoppLib extends NativeECLibrary { public CryptoppLib() { - super("Crypto++","cryptopp_provider", "cryptopp"); + super("Crypto++","cryptopp_provider"); } @Override diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index f3d95c0..fa9e3ed 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -141,7 +141,7 @@ endif cryptopp: cryptopp_provider.so cryptopp_provider.so: cryptopp.o cpp_utils.o | lib_timing.so lib_cppsignals.so - $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs $(CRYPTOPP_NAME)) -l:lib_timing.so -l:lib_cppsignals.so + $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs $(CRYPTOPP_NAME)) -Wl,-Bdynamic -l:lib_timing.so -l:lib_cppsignals.so cryptopp.o: cryptopp.cpp $(CXX) $(shell pkg-config --cflags $(CRYPTOPP_NAME)) $(CXXFLAGS) -c $< -- cgit v1.3.1 From f3ce8a2f3d2b4a08ccf7c06f063244d372ce9160 Mon Sep 17 00:00:00 2001 From: quapka Date: Thu, 25 Jul 2024 10:20:01 +0200 Subject: Link Nettle statically --- flake.nix | 3 +++ .../src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index 7265e2f..4cba1fd 100644 --- a/flake.nix +++ b/flake.nix @@ -66,6 +66,9 @@ libtomcrypt = pkgs.libtomcrypt.overrideAttrs (final: prev: { makefile = "makefile.unix"; }); + nettle = pkgs.nettle.overrideAttrs (final: prev: { + configureFlags = ( prev.configureFlags or [] ) ++ [ "--enable-static" ]; + }); cryptopp = pkgs.cryptopp.override { enableStatic = true; }; libressl = pkgs.libressl.overrideAttrs (_old: rec { # devLibPath = pkgs.lib.makeLibraryPath [ pkgs.libressl.dev ]; diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index fa9e3ed..845915c 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -172,7 +172,7 @@ ippcp.o: ippcp.c nettle: nettle_provider.so nettle_provider.so: nettle.o c_utils.o | lib_timing.so lib_csignals.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs nettle) -l:lib_timing.so -l:lib_csignals.so $(shell pkg-config --libs hogweed) -lgmp + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs nettle) -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so $(shell pkg-config --libs hogweed) -lgmp nettle.o: nettle.c $(CC) $(shell pkg-config --cflags nettle) $(shell pkg-config --libs hogweed) -lgmp $(CFLAGS) -c $< -- cgit v1.3.1 From 20633c4bd5dbbfdebace4998d2d13f43e7122915 Mon Sep 17 00:00:00 2001 From: quapka Date: Thu, 25 Jul 2024 10:22:33 +0200 Subject: Link Mbedtls statically --- .../src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'standalone/src') diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 845915c..3d3eecd 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -151,7 +151,7 @@ cryptopp.o: cryptopp.cpp mbedtls: mbedtls_provider.so mbedtls_provider.so: mbedtls.o c_utils.o | lib_timing.so lib_csignals.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -lmbedcrypto -l:lib_timing.so -l:lib_csignals.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic -lmbedcrypto -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so mbedtls.o: mbedtls.c $(CC) $(CFLAGS) -c $< -- cgit v1.3.1 From 36bb4958a2b304ec7383f8cfcdaa37f49e8c1b3b Mon Sep 17 00:00:00 2001 From: quapka Date: Thu, 25 Jul 2024 10:46:43 +0200 Subject: Link LibreSSL statically --- flake.nix | 8 ++++---- .../main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index 4cba1fd..b930630 100644 --- a/flake.nix +++ b/flake.nix @@ -70,7 +70,7 @@ configureFlags = ( prev.configureFlags or [] ) ++ [ "--enable-static" ]; }); cryptopp = pkgs.cryptopp.override { enableStatic = true; }; - libressl = pkgs.libressl.overrideAttrs (_old: rec { + libressl = (pkgs.libressl.override { buildShared = false; } ).overrideAttrs (_old: rec { # devLibPath = pkgs.lib.makeLibraryPath [ pkgs.libressl.dev ]; # pname = "libressl"; # version = "3.9.2"; @@ -101,6 +101,7 @@ cp $dev/lib/pkgconfig/libcrypto.pc $dev/lib/pkgconfig/libresslcrypto.pc sed --in-place --expression 's/-lcrypto/-lresslcrypto/' $dev/lib/pkgconfig/libresslcrypto.pc ln -s $out/lib/libcrypto.so $out/lib/libresslcrypto.so + ln -s $out/lib/libcrypto.a $out/lib/libresslcrypto.a '' ]; @@ -155,10 +156,8 @@ makeWrapper # libraries to test - # openssl_3013 - # boringssl - libressl patched_boringssl + # libressl libtomcrypt libtommath botan2 @@ -209,6 +208,7 @@ libgcrypt libgpg-error opensslx + # libressl patched_boringssl ninja nettle diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 3d3eecd..8ea1f8d 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -182,7 +182,7 @@ nettle.o: nettle.c libressl: libressl_provider.so libressl_provider.so: libressl.o c_utils.o | lib_timing.so lib_csignals.so - NIX_CFLAGS_COMPILE= $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs libresslcrypto) -l:lib_timing.so -l:lib_csignals.so + NIX_CFLAGS_COMPILE= $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs libresslcrypto) -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so libressl.o: libressl.c NIX_CFLAGS_COMPILE= $(CC) $(shell pkg-config --cflags libresslcrypto) $(CFLAGS) -c $< -- cgit v1.3.1 From b29f697ad640653c976f9f25c97358aa96a509a9 Mon Sep 17 00:00:00 2001 From: quapka Date: Thu, 25 Jul 2024 14:22:14 +0200 Subject: Link TomCrypt statically and build the shim with Nix --- flake.nix | 13 ++++++++++++- .../java/cz/crcs/ectester/standalone/libs/TomcryptLib.java | 2 +- .../resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index bd93f5e..c841ce4 100644 --- a/flake.nix +++ b/flake.nix @@ -64,9 +64,17 @@ libgpg-error = pkgs.libgpg-error.overrideAttrs (final: prev: { configureFlags = ( prev.configureFlags or [] ) ++ [ "--enable-static" ]; }); - libtomcrypt = pkgs.libtomcrypt.overrideAttrs (final: prev: { + libtomcrypt = (pkgs.libtomcrypt.override { libtommath = libtommath; }).overrideAttrs (final: prev: { makefile = "makefile.unix"; }); + libtommath = pkgs.libtommath.overrideAttrs (final: prev: rec { + makefile = "makefile.unix"; + version = "1.3.0"; + src = pkgs.fetchurl { + url = "https://github.com/libtom/libtommath/releases/download/v${version}/ltm-${version}.tar.xz"; + sha256 = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; + }; + }); nettle = pkgs.nettle.overrideAttrs (final: prev: { configureFlags = ( prev.configureFlags or [] ) ++ [ "--enable-static" ]; }); @@ -109,6 +117,8 @@ }); libresslShim = import ./nix/libresslshim.nix { pkgs = pkgs; libressl = libressl; }; boringsslShim = import ./nix/boringsslshim.nix { pkgs = pkgs; boringssl = patched_boringssl; }; + # Current list of targets: tomcrypt botan cryptopp openssl boringssl gcrypt mbedtls ippcp nettle libressl + tomcryptShim = import ./nix/tomcryptshim.nix { inherit pkgs libtomcrypt libtommath; }; botanShim = import ./nix/botanshim.nix { inherit pkgs; }; mbedtlsShim = import ./nix/mbedtlsshim.nix { pkgs = pkgs; }; ippcryptoShim = import ./nix/ippcryptoshim.nix { pkgs = pkgs; ipp-crypto = customPkgs.ipp-crypto; }; @@ -146,6 +156,7 @@ pushd standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ make lib_timing.so lib_csignals.so lib_cppsignals.so popd + cp ${tomcryptShim.out}/lib/tomcrypt_provider.so ${jniLibsPath} cp ${botanShim.out}/lib/botan_provider.so ${jniLibsPath} cp ${commonLibs}/lib/* ${jniLibsPath} ''; diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/TomcryptLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/TomcryptLib.java index 8c000a2..9339986 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/TomcryptLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/TomcryptLib.java @@ -9,7 +9,7 @@ import java.util.Set; public class TomcryptLib extends NativeECLibrary { public TomcryptLib() { - super("tomcrypt","tomcrypt_provider", "tommath", "tomcrypt"); + super("tomcrypt","tomcrypt_provider"); } @Override diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 8ea1f8d..1e98956 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -117,7 +117,7 @@ gcrypt.o: gcrypt.c tomcrypt: tomcrypt_provider.so tomcrypt_provider.so: tomcrypt.o c_utils.o | lib_timing.so lib_csignals.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -ltommath -Wl,-Bstatic $(shell pkg-config --libs libtomcrypt) -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs libtomcrypt libtommath) -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so tomcrypt.o: tomcrypt.c $(CC) -DLTM_DESC $(shell pkg-config --cflags libtomcrypt) $(CFLAGS) -c $< -- cgit v1.3.1 From aa36d350ddc4545bf777d7ee1740137c868ea498 Mon Sep 17 00:00:00 2001 From: quapka Date: Thu, 25 Jul 2024 15:27:38 +0200 Subject: Remove runtime lib deps unnecessary due to static linking --- flake.nix | 5 ----- .../src/main/java/cz/crcs/ectester/standalone/libs/GcryptLib.java | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index e423566..d13f707 100644 --- a/flake.nix +++ b/flake.nix @@ -190,8 +190,6 @@ libb64 clang - libgcrypt - libgpg-error mbedtls nasm libtool @@ -217,14 +215,11 @@ libtomcrypt botan2 cryptopp - libgcrypt - libgpg-error # libressl # patched_boringssl ninja nettle gmp - libgpg-error libconfig wolfcryptjni commonLibs diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/GcryptLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/GcryptLib.java index 83d78ef..7dffb3f 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/GcryptLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/GcryptLib.java @@ -9,7 +9,7 @@ import java.util.Set; public class GcryptLib extends NativeECLibrary { public GcryptLib() { - super("libgcrypt","gcrypt_provider", "gcrypt", "gpg-error"); + super("libgcrypt","gcrypt_provider"); } @Override -- cgit v1.3.1 From 095a210092b536fd70c10d5dd58c2668c4ce9331 Mon Sep 17 00:00:00 2001 From: quapka Date: Mon, 29 Jul 2024 18:51:44 +0200 Subject: Link Nettle statically and build the shim with Nix --- flake.nix | 29 +++++++--------------- nix/nettleshim.nix | 2 ++ .../crcs/ectester/standalone/libs/NettleLib.java | 2 +- .../cz/crcs/ectester/standalone/libs/jni/Makefile | 5 ++-- 4 files changed, 15 insertions(+), 23 deletions(-) (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index a15be19..630cb8a 100644 --- a/flake.nix +++ b/flake.nix @@ -133,21 +133,6 @@ index bee51a1..b36a13a 100644 }); cryptopp = pkgs.cryptopp.override { enableStatic = true; }; libressl = (pkgs.libressl.override { buildShared = false; } ).overrideAttrs (_old: rec { - # devLibPath = pkgs.lib.makeLibraryPath [ pkgs.libressl.dev ]; - # pname = "libressl"; - # version = "3.9.2"; - # includes = [ "tests/tlstest.sh" ]; - # src = pkgs.fetchurl { - # url = "mirror://openbsd/LibreSSL/${pname}-${version}.tar.gz"; - # hash = "sha256-ewMdrGSlnrbuMwT3/7ddrTOrjJ0nnIR/ksifuEYGj5c="; - # }; - # nativeBuildInputs = _old.nativeBuildInputs ++ (with pkgs; [ - # pkg-config - # ]); - - # Patched according to the previous versions: - # https://github.com/NixOS/nixpkgs/blob/nixos-24.05/pkgs/development/libraries/libressl/default.nix#L118 - # For unknown reasons the newer versions are not patched this way (yet?) patches = [ (pkgs.fetchpatch { url = "https://github.com/libressl/portable/commit/86e4965d7f20c3a6afc41d95590c9f6abb4fe788.patch"; @@ -157,7 +142,10 @@ index bee51a1..b36a13a 100644 ]; # NOTE: Due to name conflicts between OpenSSL and LibreSSL we need to resolve this manually. - postFixup = pkgs.lib.concatLines [ + # This is not needed for building the individual shims through Nix, as libresslShim build env does not + # contain OpenSSL at all, but for the interactive shell (started with `nix develop`), when multiple + # lib shims are built alongside each other. + postFixup = pkgs.lib.concatLines [ ( _old.postFixup or "" ) '' cp $dev/lib/pkgconfig/libcrypto.pc $dev/lib/pkgconfig/libresslcrypto.pc @@ -168,6 +156,7 @@ index bee51a1..b36a13a 100644 ]; }); + gmp = pkgs.gmp.override { withStatic = true; }; # Current list of targets: tomcrypt botan cryptopp openssl boringssl gcrypt mbedtls ippcp nettle libressl tomcryptShim = import ./nix/tomcryptshim.nix { inherit pkgs libtomcrypt libtommath; }; botanShim = import ./nix/botanshim.nix { inherit pkgs; }; @@ -177,7 +166,7 @@ index bee51a1..b36a13a 100644 gcryptShim = import ./nix/gcryptshim.nix { inherit pkgs libgcrypt libgpg-error; }; mbedtlsShim = import ./nix/mbedtlsshim.nix { pkgs = pkgs; }; ippcpShim = import ./nix/ippcpshim.nix { pkgs = pkgs; ipp-crypto = customPkgs.ipp-crypto; }; - nettleShim = import ./nix/nettleshim.nix { inherit pkgs nettle; }; + nettleShim = import ./nix/nettleshim.nix { inherit pkgs nettle gmp; }; libresslShim = import ./nix/libresslshim.nix { inherit pkgs libressl; }; overlays = []; @@ -255,7 +244,7 @@ index bee51a1..b36a13a 100644 wolfssl nettle - gmp + # gmp libgpg-error wget libconfig @@ -275,8 +264,8 @@ index bee51a1..b36a13a 100644 # libressl # patched_boringssl ninja - nettle - gmp + # nettle + # gmp libconfig wolfcryptjni commonLibs diff --git a/nix/nettleshim.nix b/nix/nettleshim.nix index f00c4e4..b431a2a 100644 --- a/nix/nettleshim.nix +++ b/nix/nettleshim.nix @@ -1,6 +1,7 @@ { pkgs , nettle + , gmp }: with pkgs; stdenv.mkDerivation rec { name = "NettleShim"; @@ -8,6 +9,7 @@ with pkgs; stdenv.mkDerivation rec { buildInputs = [ nettle + gmp pkg-config jdk11_headless ]; diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/NettleLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/NettleLib.java index d4df414..6dcdb24 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/NettleLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/NettleLib.java @@ -18,7 +18,7 @@ import java.util.Set; public class NettleLib extends NativeECLibrary { public NettleLib() { - super("Nettle", "nettle_provider", "nettle","hogweed", "gmp"); + super("Nettle", "nettle_provider"); } @Override diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 1e98956..0ee834c 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -172,10 +172,11 @@ ippcp.o: ippcp.c nettle: nettle_provider.so nettle_provider.so: nettle.o c_utils.o | lib_timing.so lib_csignals.so - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs nettle) -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so $(shell pkg-config --libs hogweed) -lgmp + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs nettle hogweed gmp) \ + -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so nettle.o: nettle.c - $(CC) $(shell pkg-config --cflags nettle) $(shell pkg-config --libs hogweed) -lgmp $(CFLAGS) -c $< + $(CC) -Wl,-static $(shell pkg-config --cflags nettle hogweed gmp) $(CFLAGS) -c $< # LibreSSL shim -- cgit v1.3.1 From 40f5279a1f84c737daac70a3b66c649708f63973 Mon Sep 17 00:00:00 2001 From: quapka Date: Tue, 30 Jul 2024 20:24:46 +0200 Subject: Fix Crypto++ version calculation --- nix/botan_pkg_versions.nix | 19 ++++++++ nix/cryptopp_pkg_versions.nix | 53 ++++++++++++++++++++++ .../crcs/ectester/standalone/libs/jni/cryptopp.cpp | 2 +- 3 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 nix/botan_pkg_versions.nix create mode 100644 nix/cryptopp_pkg_versions.nix (limited to 'standalone/src') diff --git a/nix/botan_pkg_versions.nix b/nix/botan_pkg_versions.nix new file mode 100644 index 0000000..90295f1 --- /dev/null +++ b/nix/botan_pkg_versions.nix @@ -0,0 +1,19 @@ +{ + +v200 = buildECTesterStandalone { + botan = { version="2.0.0"; hash="sha256-AxZZzKD4CGnp2XogkX7b4hZM7bwHnoxT4Oe9m+oVNxo="; }; +}; + +v201 = buildECTesterStandalone { + botan = { version="2.0.1"; hash="sha256-oTjtMW0RRQqEBUUbnJZkuOZAqbethNPzrTToBx82Tgs="; }; +}; + +v210 = buildECTesterStandalone { + botan = { version="2.1.0"; hash="sha256-Rg8tcgWu0RP4mN9JR7H2bM+NCA7sfawinvC3VMmtYpQ="; }; +}; + +v2100 = buildECTesterStandalone { + botan = { version="2.10.0"; hash="sha256-iEgZl1eMJ5JHJP6nZhDUPZ9ZyZ7f5WHUGAO7yYhxrTE="; }; +}; + +} diff --git a/nix/cryptopp_pkg_versions.nix b/nix/cryptopp_pkg_versions.nix new file mode 100644 index 0000000..3e77a12 --- /dev/null +++ b/nix/cryptopp_pkg_versions.nix @@ -0,0 +1,53 @@ +{ + buildECTesterStandalone +}: +{ + v890 = buildECTesterStandalone { + cryptopp = { version="8_9_0"; hash="sha256-q1F0ubXGI2WI4VoaoarstmWM2+CVAceYGsjbJ2ok2as="; }; + }; + v880 = buildECTesterStandalone { + cryptopp = { version="8_8_0"; hash="sha256-+Lj2MlM7J57il2lOZR6SBIJLumAizmbmDr67CLVR/no="; }; + }; + v870 = buildECTesterStandalone { + cryptopp = { version="8_7_0"; hash="sha256-jWpAZLjp80zT6Dj1oSxABn7nuV7jfZFz7Cc8sJE+fKI="; }; + }; + v860 = buildECTesterStandalone { + cryptopp = { version="8_6_0"; hash="sha256-kwRiX0dnoT4KXybQ8BnXjPk3VgSjPlORw78ugTmd/rg="; }; + }; + v850 = buildECTesterStandalone { + cryptopp = { version="8_5_0"; hash="sha256-j2TPCc9PYdXXS8pTV0uMyZWRhswPByouZZfkmZ1q1ds="; }; + }; + v840 = buildECTesterStandalone { + cryptopp = { version="8_4_0"; hash="sha256-ZoffweM7CErqtIw1qFULI57l9zoJmjtqCRjXC4qJ5lQ="; }; + }; + v830 = buildECTesterStandalone { + cryptopp = { version="8_3_0"; hash="sha256-YzBMb5Q/Q1pOOFJz4Vq7ac/zuFpEZjFQv1pgabhKvUM="; }; + }; + v820 = buildECTesterStandalone { + cryptopp = { version="8_2_0"; hash="sha256-47zUimJzmtF5rYBktSM0artTdnvL78Af43MDQSKSND4="; }; + }; + v810 = buildECTesterStandalone { + cryptopp = { version="8_1_0"; hash="sha256-ik5Hc6ObDAfXzqG4vno/ep0Sa9Osmp8HL4LTpTpHSoc="; }; + }; + v800 = buildECTesterStandalone { + cryptopp = { version="8_0_0"; hash="sha256-Zei3qwaKkUJ/nrvdFP/uLM/tNN79GQIyXIej6xbvvm0="; }; + }; + v700 = buildECTesterStandalone { + cryptopp = { version="7_0_0"; hash="sha256-Pul5A4grX1jIi2+dLOUP0QAL6VR5GAx7RoHNP0wcdik="; }; + }; + v610 = buildECTesterStandalone { + cryptopp = { version="6_1_0"; hash="sha256-ae5x/f+cwNVmNHEnA8jrqXIEv1j+rN/hqU34f6/+/1U="; }; + }; + v600 = buildECTesterStandalone { + cryptopp = { version="6_0_0"; hash="sha256-7ZUZc65PTVLtzyWIL6UjgUWgCtyB7bnXvkznuap0Qmk="; }; + }; + v565 = buildECTesterStandalone { + cryptopp = { version="5_6_5"; hash="sha256-ef1VFLOxkaHG2TTNmJ1eBY9HJqcqPa0kRL0SdKaq5oY="; }; + }; + v564 = buildECTesterStandalone { + cryptopp = { version="5_6_4"; hash="sha256-T6hN4QUOjiBUlyIpMsk6jWtuJvR+rE8RAojtVJAuBdM="; }; + }; + v563 = buildECTesterStandalone { + cryptopp = { version="5_6_3"; hash="sha256-7ZP5aTEtlWvdlduDIOyVc8OPT+mJYKXFg2k73fDrBlQ="; }; + }; +} \ No newline at end of file diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp index c4c74a6..028c321 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp @@ -111,7 +111,7 @@ JNIEXPORT jobject JNICALL Java_cz_crcs_ectester_standalone_libs_CryptoppLib_crea } jstring name = env->NewStringUTF(lib_name.c_str()); - double version = lib_version / 100; + double version = lib_version / 100.0; jstring info = env->NewStringUTF(ss.str().c_str()); return env->NewObject(provider_class, init, name, version, info); -- cgit v1.3.1 From edbc1c2b50a25e567d1c2f9cc49485a84be18833 Mon Sep 17 00:00:00 2001 From: quapka Date: Wed, 7 Aug 2024 14:50:48 +0200 Subject: Autoformat all Nix sources --- flake.nix | 894 +++++++++++++-------- nix/boringssl_pkg_versions.nix | 504 +++++++++--- nix/boringsslshim.nix | 8 +- nix/botan_pkg_versions.nix | 318 ++++++-- nix/botanshim.nix | 10 +- nix/commonlibs.nix | 7 +- nix/cryptopp_pkg_versions.nix | 118 ++- nix/cryptoppshim.nix | 8 +- nix/gcrypt_pkg_versions.nix | 410 +++++++--- nix/gcryptshim.nix | 9 +- nix/ippcp_pkg_versions.nix | 174 ++-- nix/ippcpshim.nix | 8 +- nix/libressl_pkg_versions.nix | 837 +++++++++++++------ nix/libresslshim.nix | 8 +- nix/mbedtls_pkg_versions.nix | 154 +++- nix/mbedtlsshim.nix | 8 +- nix/nettle_pkg_versions.nix | 148 +++- nix/nettleshim.nix | 9 +- nix/openssl_pkg_versions.nix | 146 +++- nix/opensslshim.nix | 8 +- nix/tomcrypt_pkg_versions.nix | 46 +- nix/tomcryptshim.nix | 9 +- nix/x | 21 + .../cz/crcs/ectester/standalone/libs/jni/Makefile | 8 +- 24 files changed, 2724 insertions(+), 1146 deletions(-) create mode 100644 nix/x (limited to 'standalone/src') diff --git a/flake.nix b/flake.nix index fec71e9..d6e2997 100644 --- a/flake.nix +++ b/flake.nix @@ -2,267 +2,498 @@ description = "ECTester"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - flake-utils.url = "github:numtide/flake-utils"; - gradle2nix.url = "github:tadfisher/gradle2nix/03c1b713ad139eb6dfc8d463b5bd348368125cf1"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + gradle2nix.url = "github:tadfisher/gradle2nix/03c1b713ad139eb6dfc8d463b5bd348368125cf1"; custom-nixpkgs.url = "github:quapka/nixpkgs/customPkgs"; }; - outputs = { self, nixpkgs, custom-nixpkgs, flake-utils, gradle2nix, ... }: - flake-utils.lib.eachDefaultSystem (system: + outputs = + { + self, + nixpkgs, + custom-nixpkgs, + flake-utils, + gradle2nix, + ... + }: + flake-utils.lib.eachDefaultSystem ( + system: let - overlays = []; - pkgs = import nixpkgs { - inherit system overlays; - }; - customPkgs = import custom-nixpkgs { - inherit system overlays; - }; + overlays = [ ]; + pkgs = import nixpkgs { inherit system overlays; }; + customPkgs = import custom-nixpkgs { inherit system overlays; }; # removes the patch/revision from the version. E.g. getMajorMinor "1.2.3" = "1.2" - getMajorMinor = version: builtins.concatStringsSep "." (pkgs.lib.take 2 ( builtins.splitVersion version)); + getMajorMinor = + version: builtins.concatStringsSep "." (pkgs.lib.take 2 (builtins.splitVersion version)); # Altered upstream packages - boringsslBuilder = { rev, hash }: pkgs.boringssl.overrideAttrs (final: prev: rec { - src = if rev == null then prev.src else pkgs.fetchgit { - url = "https://boringssl.googlesource.com/boringssl"; - inherit rev hash; - }; - postFixup = '' - cp $out/lib/libcrypto.a $out/lib/lib_boringssl.a - ''; - }); + boringsslBuilder = + { rev, hash }: + pkgs.boringssl.overrideAttrs ( + final: prev: rec { + src = + if rev == null then + prev.src + else + pkgs.fetchgit { + url = "https://boringssl.googlesource.com/boringssl"; + inherit rev hash; + }; + postFixup = '' + cp $out/lib/libcrypto.a $out/lib/lib_boringssl.a + ''; + } + ); # FIXME: `nix develeop` now has different version than `nix run` - opensslBuilder = { version ? null, hash ? null }: (pkgs.openssl.override { static = true; }).overrideAttrs (final: prev: rec { - pname = "openssl"; - src = if version != null then pkgs.fetchurl { - url = "https://www.openssl.org/source/openssl-${version}.tar.gz"; - hash = hash; - } else prev.src; - # FIXME Removing patches might cause unwanted things; this should be version based! - patches = []; - }); - botan2Builder = { version, source_extension, hash }: pkgs.botan2.overrideAttrs (final: prev: { - src = if ( version == null ) then prev.src else - pkgs.fetchurl { - urls = [ - "http://botan.randombit.net/releases/Botan-${version}.${source_extension}" - ]; - inherit hash; + opensslBuilder = + { + version ? null, + hash ? null, + }: + (pkgs.openssl.override { static = true; }).overrideAttrs ( + final: prev: rec { + pname = "openssl"; + src = + if version != null then + pkgs.fetchurl { + url = "https://www.openssl.org/source/openssl-${version}.tar.gz"; + hash = hash; + } + else + prev.src; + # FIXME Removing patches might cause unwanted things; this should be version based! + patches = [ ]; + } + ); + botan2Builder = + { + version, + source_extension, + hash, + }: + pkgs.botan2.overrideAttrs ( + final: prev: { + src = + if (version == null) then + prev.src + else + pkgs.fetchurl { + urls = [ "http://botan.randombit.net/releases/Botan-${version}.${source_extension}" ]; + inherit hash; + }; + } + ); + + libgcryptBuilder = + { version, hash }: + pkgs.libgcrypt.overrideAttrs ( + final: prev: { + configureFlags = (prev.configureFlags or [ ]) ++ [ "--enable-static" ]; + src = + if version == null then + prev.src + else + pkgs.fetchurl { + url = "mirror://gnupg/libgcrypt/${prev.pname}-${version}.tar.bz2"; + inherit hash; + }; + } + ); + libgpg-error = pkgs.libgpg-error.overrideAttrs ( + final: prev: { configureFlags = (prev.configureFlags or [ ]) ++ [ "--enable-static" ]; } + ); + + mbedtlsBuilder = + { version, hash }: + pkgs.mbedtls.overrideAttrs ( + final: prev: { + src = + if version == null then + prev.src + else + pkgs.fetchFromGitHub { + owner = "Mbed-TLS"; + repo = "mbedtls"; + rev = "mbedtls-${version}"; + inherit hash; + # mbedtls >= 3.6.0 uses git submodules + fetchSubmodules = true; + }; + } + ); + + ipp-cryptoBuilder = + { version, hash }: + customPkgs.ipp-crypto.overrideAttrs ( + final: prev: { + src = + if version == null then + prev.src + else + pkgs.fetchFromGitHub { + owner = "intel"; + repo = "ipp-crypto"; + rev = "ippcp_${version}"; + inherit hash; + }; + } + ); + + libtomcryptBuilder = + { + tcVersion, + tcHash, + tmVersion, + tmHash, + }: + (pkgs.libtomcrypt.override { + libtommath = libtommathBuilder { + version = tmVersion; + hash = tmHash; }; - }); + }).overrideAttrs + ( + final: prev: + let + preBuilds = { + "1.18" = '' + makeFlagsArray+=(PREFIX=$out \ + CFLAGS="-DUSE_LTM -DLTM_DESC" \ + EXTRALIBS=\"-ltommath\" \ + INSTALL_GROUP=$(id -g) \ + INSTALL_USER=$(id -u)) + ''; + "1.17" = '' + mkdir --parents $out/{lib, include, share/doc/} + + makeFlagsArray+=(PREFIX=$out \ + LIBPATH=$out/lib \ + INCPATH=$out/include \ + DATAPATH=$out/share/doc/libtomcrypt/pdf + CFLAGS_OPTS="-DUSE_LTM -DLTM_DESC" \ + EXTRALIBS=\"-ltommath\" \ + GROUP=$(id -g) \ + USER=$(id -u)) + ''; + # "1.01" = '' + # ''; + }; + preBuild = + if tcVersion != null then + if builtins.hasAttr (getMajorMinor tcVersion) preBuilds then + preBuilds."${getMajorMinor tcVersion}" + else + preBuilds."1.17" + else + preBuilds."1.18"; + in + rec { + makefile = "makefile.unix"; + version = if tcVersion != null then tcVersion else prev.version; + + src = + if version == prev.version then + prev.src + else + pkgs.fetchFromGitHub { + owner = "libtom"; + repo = "libtomcrypt"; + rev = if pkgs.lib.hasPrefix "1.18" version then "refs/tags/v${version}" else "refs/tags/${version}"; + hash = tcHash; + }; + + inherit preBuild; + patches = + if pkgs.lib.hasPrefix "1.18" version then + (prev.patches or [ ]) + ++ [ + # NOTE: LibTomCrypt does not expose the lib, when built statically (using `makefile and not `makefile.shared`). + # This patch copies the necessary code from `makefile.shared`. + ./nix/libtomcrypt-pkgconfig-for-static.patch + ] + else + [ ]; + } + ); + + libtommathBuilder = + { version, hash }: + pkgs.libtommath.overrideAttrs ( + final: prev: rec { + makefile = "makefile.unix"; + # version = if version != null then version else prev.version; + version = "1.3.0"; + src = pkgs.fetchurl { + url = "https://github.com/libtom/libtommath/releases/download/v${version}/ltm-${version}.tar.xz"; + # hash = if hash != null then hash else prev.hash; + hash = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg"; + }; + patches = (prev.patches or [ ]) ++ [ + # NOTE: LibTomMath does not expose the lib, when built statically (using `makefile and not `makefile.shared`). + # This patch copies the necessary code from `makefile.shared`. + ./nix/libtommath-pkgconfig-for-static-build.patch + ]; + } + ); + nettleBuilder = + { + version, + tag, + hash, + }: + pkgs.nettle.overrideAttrs ( + final: prev: { + configureFlags = (prev.configureFlags or [ ]) ++ [ "--enable-static" ]; + src = + if version == null then + prev.src + else + pkgs.fetchurl { + url = "mirror://gnu/nettle/nettle-${version}.tar.gz"; + inherit hash; + }; + } + ); + cryptoppBuilder = + { version, hash }: + (pkgs.cryptopp.override { enableStatic = true; }).overrideAttrs ( + final: prev: { + src = + if version == null then + prev.src + else + pkgs.fetchFromGitHub { + owner = "weidai11"; + repo = "cryptopp"; + rev = "CRYPTOPP_${version}"; + inherit hash; + }; + } + ); + libresslBuilder = + { version, hash }: + (pkgs.libressl.override { buildShared = false; }).overrideAttrs ( + final: prev: rec { + + src = + if version == null then + prev.src + else + pkgs.fetchurl { + url = "mirror://openbsd/LibreSSL/${prev.pname}-${version}.tar.gz"; + inherit hash; + }; + patches = [ + (pkgs.fetchpatch { + url = "https://github.com/libressl/portable/commit/86e4965d7f20c3a6afc41d95590c9f6abb4fe788.patch"; + includes = [ "tests/tlstest.sh" ]; + hash = "sha256-XmmKTvP6+QaWxyGFCX6/gDfME9GqBWSx4X8RH8QbDXA="; + }) + ]; - libgcryptBuilder = { version, hash }: pkgs.libgcrypt.overrideAttrs (final: prev: { - configureFlags = ( prev.configureFlags or [] ) ++ [ "--enable-static" ]; - src = if version == null then prev.src else pkgs.fetchurl { - url = "mirror://gnupg/libgcrypt/${prev.pname}-${version}.tar.bz2"; - inherit hash; - }; - }); - libgpg-error = pkgs.libgpg-error.overrideAttrs (final: prev: { - configureFlags = ( prev.configureFlags or [] ) ++ [ "--enable-static" ]; - }); - - mbedtlsBuilder = { version, hash}: pkgs.mbedtls.overrideAttrs (final: prev: { - src = if version == null then prev.src else pkgs.fetchFromGitHub { - owner = "Mbed-TLS"; - repo = "mbedtls"; - rev = "mbedtls-${version}"; - inherit hash; - # mbedtls >= 3.6.0 uses git submodules - fetchSubmodules = true; + # NOTE: Due to name conflicts between OpenSSL and LibreSSL we need to resolve this manually. + # This is not needed for building the individual shims through Nix, as libresslShim build env does not + # contain OpenSSL at all, but for the interactive shell (started with `nix develop`), when multiple + # lib shims are built alongside each other. + postFixup = pkgs.lib.concatLines [ + (prev.postFixup or "") + '' + cp $dev/lib/pkgconfig/libcrypto.pc $dev/lib/pkgconfig/libresslcrypto.pc + sed --in-place --expression 's/-lcrypto/-lresslcrypto/' $dev/lib/pkgconfig/libresslcrypto.pc + ln -s $out/lib/libcrypto.so $out/lib/libresslcrypto.so + ln -s $out/lib/libcrypto.a $out/lib/libresslcrypto.a + '' + ]; + + } + ); + gmp = pkgs.gmp.override { withStatic = true; }; + + # Custom added packages + wolfcryptjni = + with customPkgs; + wolfcrypt-jni.overrideAttrs ( + final: prev: { + src = pkgs.fetchFromGitHub { + owner = "wolfSSL"; + repo = "wolfcrypt-jni"; + rev = "0497ee767c994775beda2f2091009593961e5c7e"; + hash = "sha256-mtUXUyIKJ617WzAWjlOaMscWM7zuGBISVMEAbmQNBOg="; + }; + } + ); + + # Shims and libs + # Current list of targets: tomcrypt botan cryptopp openssl boringssl gcrypt mbedtls ippcp nettle libressl + tomcryptShimBuilder = + { + tcVersion, + tcHash, + tmVersion, + tmHash, + }: + pkgs.callPackage ./nix/tomcryptshim.nix { + inherit pkgs; + libtomcrypt = ( + libtomcryptBuilder { + inherit + tcVersion + tcHash + tmVersion + tmHash + ; + } + ); + libtommath = ( + libtommathBuilder { + version = tmVersion; + hash = tmHash; + } + ); }; - }); - - ipp-cryptoBuilder = { version, hash }: customPkgs.ipp-crypto.overrideAttrs (final: prev: { - src = if version == null then prev.src else pkgs.fetchFromGitHub { - owner = "intel"; - repo = "ipp-crypto"; - rev = "ippcp_${version}"; - inherit hash; + botanShimBuilder = + { + version, + source_extension, + hash, + }: + pkgs.callPackage ./nix/botanshim.nix { + botan2 = botan2Builder { inherit version source_extension hash; }; }; - }); - - libtomcryptBuilder = { tcVersion, tcHash, tmVersion, tmHash }: - (pkgs.libtomcrypt.override { libtommath = libtommathBuilder { version = tmVersion; hash = tmHash; }; }).overrideAttrs (final: prev: - let - preBuilds = { - "1.18" = '' - makeFlagsArray+=(PREFIX=$out \ - CFLAGS="-DUSE_LTM -DLTM_DESC" \ - EXTRALIBS=\"-ltommath\" \ - INSTALL_GROUP=$(id -g) \ - INSTALL_USER=$(id -u)) - ''; - "1.17" = '' - mkdir --parents $out/{lib, include, share/doc/} - - makeFlagsArray+=(PREFIX=$out \ - LIBPATH=$out/lib \ - INCPATH=$out/include \ - DATAPATH=$out/share/doc/libtomcrypt/pdf - CFLAGS_OPTS="-DUSE_LTM -DLTM_DESC" \ - EXTRALIBS=\"-ltommath\" \ - GROUP=$(id -g) \ - USER=$(id -u)) - ''; - # "1.01" = '' - # ''; + cryptoppShimBuilder = + { version, hash }: + pkgs.callPackage ./nix/cryptoppshim.nix { cryptopp = cryptoppBuilder { inherit version hash; }; }; + opensslShimBuilder = + { version, hash }: + import ./nix/opensslshim.nix { + inherit pkgs; + openssl = ( + opensslBuilder { + version = version; + hash = hash; + } + ); }; - preBuild = if tcVersion != null - then if builtins.hasAttr (getMajorMinor tcVersion) preBuilds - then preBuilds."${getMajorMinor tcVersion}" - else preBuilds."1.17" - else preBuilds."1.18"; - in - rec { - makefile = "makefile.unix"; - version = if tcVersion != null then tcVersion else prev.version; - - src = if version == prev.version then prev.src else pkgs.fetchFromGitHub { - owner = "libtom"; - repo = "libtomcrypt"; - rev = if pkgs.lib.hasPrefix "1.18" version then "refs/tags/v${version}" else "refs/tags/${version}" ; - hash = tcHash; + boringsslShimBuilder = + { rev, hash }: + import ./nix/boringsslshim.nix { + inherit pkgs; + boringssl = (boringsslBuilder { inherit rev hash; }); }; - - inherit preBuild; - patches = if pkgs.lib.hasPrefix "1.18" version then ( prev.patches or [] ) ++ [ - # NOTE: LibTomCrypt does not expose the lib, when built statically (using `makefile and not `makefile.shared`). - # This patch copies the necessary code from `makefile.shared`. - ./nix/libtomcrypt-pkgconfig-for-static.patch - ] else []; - }); - - libtommathBuilder = { version, hash }: pkgs.libtommath.overrideAttrs (final: prev: rec { - makefile = "makefile.unix"; - # version = if version != null then version else prev.version; - version = "1.3.0"; - src = pkgs.fetchurl { - url = "https://github.com/libtom/libtommath/releases/download/v${version}/ltm-${version}.tar.xz"; - # hash = if hash != null then hash else prev.hash; - hash = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg"; + gcryptShimBuilder = + { version, hash }: + import ./nix/gcryptshim.nix { + inherit pkgs libgpg-error; + libgcrypt = libgcryptBuilder { inherit version hash; }; }; - patches = ( prev.patches or [] ) ++ [ - # NOTE: LibTomMath does not expose the lib, when built statically (using `makefile and not `makefile.shared`). - # This patch copies the necessary code from `makefile.shared`. - ./nix/libtommath-pkgconfig-for-static-build.patch - ]; - }); - nettleBuilder = { version, tag, hash }: pkgs.nettle.overrideAttrs (final: prev: { - configureFlags = ( prev.configureFlags or [] ) ++ [ "--enable-static" ]; - src = if version == null then prev.src else pkgs.fetchurl { - url = "mirror://gnu/nettle/nettle-${version}.tar.gz"; - inherit hash; + mbedtlsShimBuilder = + { version, hash }: + import ./nix/mbedtlsshim.nix { + inherit pkgs; + mbedtls = (mbedtlsBuilder { inherit version hash; }); }; - }); - cryptoppBuilder = { version, hash }: (pkgs.cryptopp.override { enableStatic = true; }).overrideAttrs (final: prev: { - src = if version == null then prev.src else - pkgs.fetchFromGitHub { - owner = "weidai11"; - repo = "cryptopp"; - rev = "CRYPTOPP_${version}"; - inherit hash; + ippcpShimBuilder = + { version, hash }: + import ./nix/ippcpshim.nix { + pkgs = pkgs; + ipp-crypto = (ipp-cryptoBuilder { inherit version hash; }); }; - }); - libresslBuilder = { version, hash }: (pkgs.libressl.override { buildShared = false; } ).overrideAttrs (final: prev: rec { - - src = if version == null then prev.src else pkgs.fetchurl { - url = "mirror://openbsd/LibreSSL/${prev.pname}-${version}.tar.gz"; - inherit hash; + nettleShimBuilder = + { + version, + tag, + hash, + }: + import ./nix/nettleshim.nix { + inherit pkgs gmp; + nettle = (nettleBuilder { inherit version tag hash; }); }; - patches = [ - (pkgs.fetchpatch { - url = "https://github.com/libressl/portable/commit/86e4965d7f20c3a6afc41d95590c9f6abb4fe788.patch"; - includes = [ "tests/tlstest.sh" ]; - hash = "sha256-XmmKTvP6+QaWxyGFCX6/gDfME9GqBWSx4X8RH8QbDXA="; - }) - ]; - - # NOTE: Due to name conflicts between OpenSSL and LibreSSL we need to resolve this manually. - # This is not needed for building the individual shims through Nix, as libresslShim build env does not - # contain OpenSSL at all, but for the interactive shell (started with `nix develop`), when multiple - # lib shims are built alongside each other. - postFixup = pkgs.lib.concatLines [ - ( prev.postFixup or "" ) - '' - cp $dev/lib/pkgconfig/libcrypto.pc $dev/lib/pkgconfig/libresslcrypto.pc - sed --in-place --expression 's/-lcrypto/-lresslcrypto/' $dev/lib/pkgconfig/libresslcrypto.pc - ln -s $out/lib/libcrypto.so $out/lib/libresslcrypto.so - ln -s $out/lib/libcrypto.a $out/lib/libresslcrypto.a - '' - ]; - - }); - gmp = pkgs.gmp.override { withStatic = true; }; - - # Custom added packages - wolfcryptjni = with customPkgs; wolfcrypt-jni.overrideAttrs (final: prev: { - src = pkgs.fetchFromGitHub { - owner = "wolfSSL"; - repo = "wolfcrypt-jni"; - rev = "0497ee767c994775beda2f2091009593961e5c7e"; - hash = "sha256-mtUXUyIKJ617WzAWjlOaMscWM7zuGBISVMEAbmQNBOg="; + libresslShimBuilder = + { version, hash }: + import ./nix/libresslshim.nix { + inherit pkgs; + libressl = (libresslBuilder { inherit version hash; }); }; - }); - - # Shims and libs - # Current list of targets: tomcrypt botan cryptopp openssl boringssl gcrypt mbedtls ippcp nettle libressl - tomcryptShimBuilder = { tcVersion, tcHash, tmVersion, tmHash}: pkgs.callPackage ./nix/tomcryptshim.nix { - inherit pkgs; - libtomcrypt = ( libtomcryptBuilder { inherit tcVersion tcHash tmVersion tmHash; }); - libtommath = ( libtommathBuilder { version = tmVersion; hash = tmHash; }); - }; - botanShimBuilder = { version, source_extension, hash }: pkgs.callPackage ./nix/botanshim.nix { botan2 = botan2Builder { inherit version source_extension hash; }; }; - cryptoppShimBuilder = { version, hash}: pkgs.callPackage ./nix/cryptoppshim.nix { cryptopp = cryptoppBuilder { inherit version hash; };}; - opensslShimBuilder = { version, hash }: import ./nix/opensslshim.nix { inherit pkgs; openssl = (opensslBuilder { version = version; hash = hash;}); }; - boringsslShimBuilder = { rev, hash }: import ./nix/boringsslshim.nix { inherit pkgs; boringssl = ( boringsslBuilder { inherit rev hash; }); }; - gcryptShimBuilder = { version, hash}: import ./nix/gcryptshim.nix { inherit pkgs libgpg-error; libgcrypt = libgcryptBuilder { inherit version hash; }; }; - mbedtlsShimBuilder = { version, hash }: import ./nix/mbedtlsshim.nix { inherit pkgs; mbedtls = ( mbedtlsBuilder { inherit version hash; }); }; - ippcpShimBuilder = { version, hash }: import ./nix/ippcpshim.nix { pkgs = pkgs; ipp-crypto = ( ipp-cryptoBuilder { inherit version hash; }); }; - nettleShimBuilder = { version, tag, hash }: import ./nix/nettleshim.nix { inherit pkgs gmp; nettle = ( nettleBuilder { inherit version tag hash; }); }; - libresslShimBuilder = { version, hash }: import ./nix/libresslshim.nix { inherit pkgs; libressl = ( libresslBuilder { inherit version hash; }); }; commonLibs = import ./nix/commonlibs.nix { pkgs = pkgs; }; - buildECTesterStandalone = { - tomcrypt ? { version = null; hash = null; }, - tommath ? { version = null; hash = null; }, - botan ? { version = null; source_extension = null; hash = null; }, - cryptopp ? { version = null; hash = null; }, - openssl ? { version = null; hash = null; }, - boringssl ? { rev = null; hash = null; }, - gcrypt ? { version = null; hash = null; }, - mbedtls ? { version = null; hash = null; }, - ippcp ? { version = null; hash = null; }, - nettle ? { version = null; tag = null; hash = null; }, - libressl ? { version = null; hash = null; }, - }: ( - let - tomcryptShim = tomcryptShimBuilder { - tcVersion = tomcrypt.version; - tcHash = tomcrypt.hash; - tmVersion = tommath.version; - tmHash = tommath.hash; - }; - opensslShim = (opensslShimBuilder { inherit (openssl) version hash; }); - botanShim = botanShimBuilder { inherit (botan) version source_extension hash; }; - cryptoppShim = cryptoppShimBuilder { inherit (cryptopp) version hash; }; - boringsslShim = boringsslShimBuilder { inherit (boringssl) rev hash; }; - gcryptShim = gcryptShimBuilder { inherit (gcrypt) version hash; }; - mbedtlsShim = mbedtlsShimBuilder { inherit (mbedtls) version hash; }; - ippcpShim = ippcpShimBuilder { inherit (ippcp) version hash; }; - nettleShim = nettleShimBuilder { inherit (nettle) version tag hash; }; - libresslShim = libresslShimBuilder { inherit (libressl) version hash; }; - in - with pkgs; + buildECTesterStandalone = + { + tomcrypt ? { + version = null; + hash = null; + }, + tommath ? { + version = null; + hash = null; + }, + botan ? { + version = null; + source_extension = null; + hash = null; + }, + cryptopp ? { + version = null; + hash = null; + }, + openssl ? { + version = null; + hash = null; + }, + boringssl ? { + rev = null; + hash = null; + }, + gcrypt ? { + version = null; + hash = null; + }, + mbedtls ? { + version = null; + hash = null; + }, + ippcp ? { + version = null; + hash = null; + }, + nettle ? { + version = null; + tag = null; + hash = null; + }, + libressl ? { + version = null; + hash = null; + }, + }: + ( + let + tomcryptShim = tomcryptShimBuilder { + tcVersion = tomcrypt.version; + tcHash = tomcrypt.hash; + tmVersion = tommath.version; + tmHash = tommath.hash; + }; + opensslShim = (opensslShimBuilder { inherit (openssl) version hash; }); + botanShim = botanShimBuilder { inherit (botan) version source_extension hash; }; + cryptoppShim = cryptoppShimBuilder { inherit (cryptopp) version hash; }; + boringsslShim = boringsslShimBuilder { inherit (boringssl) rev hash; }; + gcryptShim = gcryptShimBuilder { inherit (gcrypt) version hash; }; + mbedtlsShim = mbedtlsShimBuilder { inherit (mbedtls) version hash; }; + ippcpShim = ippcpShimBuilder { inherit (ippcp) version hash; }; + nettleShim = nettleShimBuilder { inherit (nettle) version tag hash; }; + libresslShim = libresslShimBuilder { inherit (libressl) version hash; }; + in + with pkgs; gradle2nix.builders.${system}.buildGradlePackage rec { pname = "ECTesterStandalone"; version = "0.3.3"; lockFile = ./gradle.lock; # NOTE: the shims are built separately, therefore no need to call build `libs` target - gradleBuildFlags = [ ":standalone:uberJar"]; + gradleBuildFlags = [ ":standalone:uberJar" ]; src = ./.; jniLibsPath = "standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/"; @@ -300,7 +531,8 @@ --set LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$LD_LIBRARY_PATH ''; - }); + } + ); in { packages = rec { @@ -316,110 +548,112 @@ nettle = pkgs.callPackage ./nix/nettle_pkg_versions.nix { inherit buildECTesterStandalone; }; libressl = pkgs.callPackage ./nix/libressl_pkg_versions.nix { inherit buildECTesterStandalone; }; - fetchReleases = with pkgs.python3Packages; buildPythonApplication { - pname = "fetchReleases"; - version = "0.1.0"; - format = "other"; + fetchReleases = + with pkgs.python3Packages; + buildPythonApplication { + pname = "fetchReleases"; + version = "0.1.0"; + format = "other"; + + propagatedBuildInputs = [ + jinja2 + requests + beautifulsoup4 + ]; - propagatedBuildInputs = [ - jinja2 - requests - beautifulsoup4 - ]; + src = ./fetchReleases.py; + dontUnpack = true; + installPhase = '' + install -Dm755 $src $out/bin/$pname + ''; - src = ./fetchReleases.py; - dontUnpack = true; - installPhase = '' - install -Dm755 $src $out/bin/$pname + }; + + }; + devShells.default = + with pkgs; + mkShell rec { + nativeBuildInputs = [ pkg-config ]; + + preConfigure = '' + cp ${boringssl}/lib/lib_boringssl.a standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ ''; - }; + buildInputs = [ + # # gradle2nix + # libresslShim + gdb + ant + jdk17 + pkg-config + global-platform-pro + gradle + # libraries to test + (opensslBuilder { }) + libressl + # glibc + boringssl + libtomcrypt + libtommath + botan2 + cryptopp + + # libraries' dependencies + cmake + ninja + gawk + automake + go + gtest + libunwind + autoconf + libb64 + + # clang + libgcrypt + libgpg-error + mbedtls + nasm + libtool + perl + + wolfssl + nettle + # libressl + + customPkgs.ipp-crypto + + gmp + libgpg-error + wget + libconfig + ]; - }; - devShells.default = with pkgs; mkShell rec { - nativeBuildInputs = [ - pkg-config - ]; - - preConfigure = '' - cp ${boringssl}/lib/lib_boringssl.a standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ - ''; - - buildInputs = [ - # # gradle2nix - # libresslShim - gdb - ant - jdk17 - pkg-config - global-platform-pro - gradle - # libraries to test - (opensslBuilder {}) - libressl - # glibc - boringssl - libtomcrypt - libtommath - botan2 - cryptopp - - # libraries' dependencies - cmake - ninja - gawk - automake - go - gtest - libunwind - autoconf - libb64 - - # clang - libgcrypt - libgpg-error - mbedtls - nasm - libtool - perl - - wolfssl - nettle - # libressl - - customPkgs.ipp-crypto - - gmp - libgpg-error - wget - libconfig - ]; - - LD_LIBRARY_PATH = with pkgs; pkgs.lib.makeLibraryPath [ - libtommath - libtomcrypt - botan2 - cryptopp - (opensslBuilder {}) - boringssl - libgcrypt - libgpg-error - nettle - gmp - libgpg-error - libconfig - wolfcryptjni - ]; - - BORINGSSL_CFLAGS = "${boringssl.dev.outPath}/include"; - WOLFCRYPT_LIB_PATH = "${wolfcryptjni}/lib"; - - - IPP_CRYPTO_HEADER = "${customPkgs.ipp-crypto.dev}/include"; - IPP_CRYPTO_LIB = "${customPkgs.ipp-crypto}/lib/"; + LD_LIBRARY_PATH = + with pkgs; + pkgs.lib.makeLibraryPath [ + libtommath + libtomcrypt + botan2 + cryptopp + (opensslBuilder { }) + boringssl + libgcrypt + libgpg-error + nettle + gmp + libgpg-error + libconfig + wolfcryptjni + ]; + BORINGSSL_CFLAGS = "${boringssl.dev.outPath}/include"; + WOLFCRYPT_LIB_PATH = "${wolfcryptjni}/lib"; - }; + IPP_CRYPTO_HEADER = "${customPkgs.ipp-crypto.dev}/include"; + IPP_CRYPTO_LIB = "${customPkgs.ipp-crypto}/lib/"; + + }; } ); } diff --git a/nix/boringssl_pkg_versions.nix b/nix/boringssl_pkg_versions.nix index 1979814..87e9519 100644 --- a/nix/boringssl_pkg_versions.nix +++ b/nix/boringssl_pkg_versions.nix @@ -1,305 +1,603 @@ -{ - buildECTesterStandalone -}: +{ buildECTesterStandalone }: { r5af122c3 = buildECTesterStandalone { - boringssl = { rev="5af122c3dfc163b5d1859f1f450756e8e320a142"; hash="sha256-q4fuH35u6WlmDweGFf7WOmOJyq3F6NeJe6B8oTWjutk="; }; + boringssl = { + rev = "5af122c3dfc163b5d1859f1f450756e8e320a142"; + hash = "sha256-q4fuH35u6WlmDweGFf7WOmOJyq3F6NeJe6B8oTWjutk="; + }; }; r1e8c35af = buildECTesterStandalone { - boringssl = { rev="1e8c35af5363c21f0f349b4e570dcccfb9ec3f74"; hash="sha256-inBz7hCoJjO/wFY8Rrvov+9lPO66zjWn4tUOwS+qLEI="; }; + boringssl = { + rev = "1e8c35af5363c21f0f349b4e570dcccfb9ec3f74"; + hash = "sha256-inBz7hCoJjO/wFY8Rrvov+9lPO66zjWn4tUOwS+qLEI="; + }; }; r14a2f35b = buildECTesterStandalone { - boringssl = { rev="14a2f35b6e06756902eaa7e188a25895721055fc"; hash="sha256-wmbkh5Gh3ewKBNrLgeUPTUKBFrVy5J/vKMnckvFR2Aw="; }; + boringssl = { + rev = "14a2f35b6e06756902eaa7e188a25895721055fc"; + hash = "sha256-wmbkh5Gh3ewKBNrLgeUPTUKBFrVy5J/vKMnckvFR2Aw="; + }; }; re23fe9b6 = buildECTesterStandalone { - boringssl = { rev="e23fe9b6eecc10e4f9ea1f0027fea5eaee7bd6b6"; hash="sha256-jB5WXaxGKCqT9tuKwiMr68RMrQgp8ElbQ+WZB8PY8NQ="; }; + boringssl = { + rev = "e23fe9b6eecc10e4f9ea1f0027fea5eaee7bd6b6"; + hash = "sha256-jB5WXaxGKCqT9tuKwiMr68RMrQgp8ElbQ+WZB8PY8NQ="; + }; }; r7a6e828d = buildECTesterStandalone { - boringssl = { rev="7a6e828dc53ba9a56bd49915f2a0780d63af97d2"; hash="sha256-BloPVeQvY7wxvxx6IqFbuo5dt1ATbl2epcgG8PmVXQk="; }; + boringssl = { + rev = "7a6e828dc53ba9a56bd49915f2a0780d63af97d2"; + hash = "sha256-BloPVeQvY7wxvxx6IqFbuo5dt1ATbl2epcgG8PmVXQk="; + }; }; r9cffd74f = buildECTesterStandalone { - boringssl = { rev="9cffd74fdb65c69506a0ce1b19420a67ad0cb19e"; hash="sha256-xy0eVPmLnoV/K8S0q0vsKvMR0bjGw2q1HzCeYclQBJ4="; }; + boringssl = { + rev = "9cffd74fdb65c69506a0ce1b19420a67ad0cb19e"; + hash = "sha256-xy0eVPmLnoV/K8S0q0vsKvMR0bjGw2q1HzCeYclQBJ4="; + }; }; r82f9853f = buildECTesterStandalone { - boringssl = { rev="82f9853fc7d7360ae44f1e1357a6422c5244bbd8"; hash="sha256-oppWaOb3gmQN5O+xtdCZJfbwc4GbFmuAJxZDp9e/GEY="; }; + boringssl = { + rev = "82f9853fc7d7360ae44f1e1357a6422c5244bbd8"; + hash = "sha256-oppWaOb3gmQN5O+xtdCZJfbwc4GbFmuAJxZDp9e/GEY="; + }; }; r9b3ef1b3 = buildECTesterStandalone { - boringssl = { rev="9b3ef1b3d34d09c40b999d05ca6a92c77a9345e3"; hash="sha256-LJF+ooOKaB0Zj+VoLMJO5HDilQKEZfWJSl92X+ZMZmE="; }; + boringssl = { + rev = "9b3ef1b3d34d09c40b999d05ca6a92c77a9345e3"; + hash = "sha256-LJF+ooOKaB0Zj+VoLMJO5HDilQKEZfWJSl92X+ZMZmE="; + }; }; r096ded9f = buildECTesterStandalone { - boringssl = { rev="096ded9f097b73a15956b04cd168c7cfe7e28f52"; hash="sha256-WL0ndihbDyZnT3dJmwDIZWilxNtjsoZTQCbQ9+hjofo="; }; + boringssl = { + rev = "096ded9f097b73a15956b04cd168c7cfe7e28f52"; + hash = "sha256-WL0ndihbDyZnT3dJmwDIZWilxNtjsoZTQCbQ9+hjofo="; + }; }; rd274b1ba = buildECTesterStandalone { - boringssl = { rev="d274b1bacdca36f3941bf78e43dc38acf676a1a8"; hash="sha256-FtJFZorlGqPBfkPgFbEztNvYHweFaRVeuAM8xOMleMk="; }; + boringssl = { + rev = "d274b1bacdca36f3941bf78e43dc38acf676a1a8"; + hash = "sha256-FtJFZorlGqPBfkPgFbEztNvYHweFaRVeuAM8xOMleMk="; + }; }; rb34976ca = buildECTesterStandalone { - boringssl = { rev="b34976cae99f8d1b864dbab31e20fc00d06acb09"; hash="sha256-QUeBGFNQJE9DHq/thfk3RsRMTUhwB2Z6LRN0SJYJsVo="; }; + boringssl = { + rev = "b34976cae99f8d1b864dbab31e20fc00d06acb09"; + hash = "sha256-QUeBGFNQJE9DHq/thfk3RsRMTUhwB2Z6LRN0SJYJsVo="; + }; }; r77ef86d0 = buildECTesterStandalone { - boringssl = { rev="77ef86d0431ec3ceea503b0c59888942fd35b035"; hash="sha256-DprfilhYcYUcQA4kDtvh6UNsntXJwTo7YDm16yduJ1M="; }; + boringssl = { + rev = "77ef86d0431ec3ceea503b0c59888942fd35b035"; + hash = "sha256-DprfilhYcYUcQA4kDtvh6UNsntXJwTo7YDm16yduJ1M="; + }; }; r8934b1ef = buildECTesterStandalone { - boringssl = { rev="8934b1ef0857bc08626a2206a6f5f718942c14fc"; hash="sha256-3haLXiXWipf27XCChJQ9UU76hjydoGAC/HS+8AftZd0="; }; + boringssl = { + rev = "8934b1ef0857bc08626a2206a6f5f718942c14fc"; + hash = "sha256-3haLXiXWipf27XCChJQ9UU76hjydoGAC/HS+8AftZd0="; + }; }; r7c2b62e9 = buildECTesterStandalone { - boringssl = { rev="7c2b62e93487b772990fddc1905f22d4cfaee4a4"; hash="sha256-FGpAeOQ4Sfd/kbKs/Ziv+H/UzN3yH4FmUnFE5afszU4="; }; + boringssl = { + rev = "7c2b62e93487b772990fddc1905f22d4cfaee4a4"; + hash = "sha256-FGpAeOQ4Sfd/kbKs/Ziv+H/UzN3yH4FmUnFE5afszU4="; + }; }; r12f0f4be = buildECTesterStandalone { - boringssl = { rev="12f0f4bec2a6db53a53748dd6001d1aacaae26ba"; hash="sha256-uj99vsXUoHicoysqcPOn/yJf1M7fTPL3gSlikNyzUJw="; }; + boringssl = { + rev = "12f0f4bec2a6db53a53748dd6001d1aacaae26ba"; + hash = "sha256-uj99vsXUoHicoysqcPOn/yJf1M7fTPL3gSlikNyzUJw="; + }; }; rca2eba6a = buildECTesterStandalone { - boringssl = { rev="ca2eba6a5e6a1db7fc970b38c2975fb7bb7153fa"; hash="sha256-XVBOVn9ZuO9tobQ8TA6zDBwD/hxkMkcigGUpwn6Hnd8="; }; + boringssl = { + rev = "ca2eba6a5e6a1db7fc970b38c2975fb7bb7153fa"; + hash = "sha256-XVBOVn9ZuO9tobQ8TA6zDBwD/hxkMkcigGUpwn6Hnd8="; + }; }; rf01108e4 = buildECTesterStandalone { - boringssl = { rev="f01108e4761e1d4189cb134322c3cb01dc71ef87"; hash="sha256-jZ9T5/6t1ImeCDBAMzW0aSmT/NcLxbESYv/F+cBjIFY="; }; + boringssl = { + rev = "f01108e4761e1d4189cb134322c3cb01dc71ef87"; + hash = "sha256-jZ9T5/6t1ImeCDBAMzW0aSmT/NcLxbESYv/F+cBjIFY="; + }; }; r26468aea = buildECTesterStandalone { - boringssl = { rev="26468aea6483135b156fb03a5693c495dbad2e0f"; hash="sha256-a8r0bjKqsd/0FMhp5yR8iMU5LIC4ICV9cxsTIidWMUE="; }; + boringssl = { + rev = "26468aea6483135b156fb03a5693c495dbad2e0f"; + hash = "sha256-a8r0bjKqsd/0FMhp5yR8iMU5LIC4ICV9cxsTIidWMUE="; + }; }; r7811fdc9 = buildECTesterStandalone { - boringssl = { rev="7811fdc94b7ec146937e83f98d411157974ffa32"; hash="sha256-jZ9T5/6t1ImeCDBAMzW0aSmT/NcLxbESYv/F+cBjIFY="; }; + boringssl = { + rev = "7811fdc94b7ec146937e83f98d411157974ffa32"; + hash = "sha256-jZ9T5/6t1ImeCDBAMzW0aSmT/NcLxbESYv/F+cBjIFY="; + }; }; r45db24b3 = buildECTesterStandalone { - boringssl = { rev="45db24b36a030ec54464ea7a26c362f3c82305ee"; hash="sha256-dQhTNkyN+yVKpEWUSiaezfnktHr2EySScCANDcQjgq0="; }; + boringssl = { + rev = "45db24b36a030ec54464ea7a26c362f3c82305ee"; + hash = "sha256-dQhTNkyN+yVKpEWUSiaezfnktHr2EySScCANDcQjgq0="; + }; }; r45b24641 = buildECTesterStandalone { - boringssl = { rev="45b2464158379f48cec6e35a1ef503ddea1511a6"; hash="sha256-YLgAs3CzvTJ50C/VPUrflD2THBMLLNoEFEpOALrZQhY="; }; + boringssl = { + rev = "45b2464158379f48cec6e35a1ef503ddea1511a6"; + hash = "sha256-YLgAs3CzvTJ50C/VPUrflD2THBMLLNoEFEpOALrZQhY="; + }; }; r2fcdd11f = buildECTesterStandalone { - boringssl = { rev="2fcdd11f6d33b667968a5bc5147e2ba83a2082b8"; hash="sha256-aEZ3/t6Jg3LH+ZYuaqrB/sK44d8nilVfUleJEvN/qKA="; }; + boringssl = { + rev = "2fcdd11f6d33b667968a5bc5147e2ba83a2082b8"; + hash = "sha256-aEZ3/t6Jg3LH+ZYuaqrB/sK44d8nilVfUleJEvN/qKA="; + }; }; r6c98ebeb = buildECTesterStandalone { - boringssl = { rev="6c98ebeb8cf24c7be5d462ded7e60d88b2ceccec"; hash="sha256-BnD/HKW/2dz7AJz4B3iFvjx6ZTuItR2IyHgAGzexvCI="; }; + boringssl = { + rev = "6c98ebeb8cf24c7be5d462ded7e60d88b2ceccec"; + hash = "sha256-BnD/HKW/2dz7AJz4B3iFvjx6ZTuItR2IyHgAGzexvCI="; + }; }; rd1e6d3b4 = buildECTesterStandalone { - boringssl = { rev="d1e6d3b4af50c9490cc6210e2763b3c45ba14b07"; hash="sha256-Da2bMR7COJib9Y6GLpQmsTRt9oyDWZcbz3OkEExYvYo="; }; + boringssl = { + rev = "d1e6d3b4af50c9490cc6210e2763b3c45ba14b07"; + hash = "sha256-Da2bMR7COJib9Y6GLpQmsTRt9oyDWZcbz3OkEExYvYo="; + }; }; r84dc9bb6 = buildECTesterStandalone { - boringssl = { rev="84dc9bb624b47bda0bf802ae9e04a6eecb40865c"; hash="sha256-iM2dQCZIemZZysm5tQ83THHsdv3SAl8g6bR2eV5jqqo="; }; + boringssl = { + rev = "84dc9bb624b47bda0bf802ae9e04a6eecb40865c"; + hash = "sha256-iM2dQCZIemZZysm5tQ83THHsdv3SAl8g6bR2eV5jqqo="; + }; }; r67422ed4 = buildECTesterStandalone { - boringssl = { rev="67422ed4434116daa8898773692165ddd51a6ac2"; hash="sha256-7ScEX6ZqBl3PL+zn4bBBPFu5xxP1YswGQxh7g8+9VUc="; }; + boringssl = { + rev = "67422ed4434116daa8898773692165ddd51a6ac2"; + hash = "sha256-7ScEX6ZqBl3PL+zn4bBBPFu5xxP1YswGQxh7g8+9VUc="; + }; }; rc6c0b650 = buildECTesterStandalone { - boringssl = { rev="c6c0b650091e90e6206a361c14a73223f54d42c1"; hash="sha256-GirZs6NfiMvoXqDkW+J5zSK4NJJtI0rl2GOb+B+Hyeg="; }; + boringssl = { + rev = "c6c0b650091e90e6206a361c14a73223f54d42c1"; + hash = "sha256-GirZs6NfiMvoXqDkW+J5zSK4NJJtI0rl2GOb+B+Hyeg="; + }; }; r66d274df = buildECTesterStandalone { - boringssl = { rev="66d274dfbab9e4f84599f06504987c418ca087d9"; hash="sha256-eppy21RtniwE5gpD0ff4B1Gd0xLCdwc71i2DP7Y3nt0="; }; + boringssl = { + rev = "66d274dfbab9e4f84599f06504987c418ca087d9"; + hash = "sha256-eppy21RtniwE5gpD0ff4B1Gd0xLCdwc71i2DP7Y3nt0="; + }; }; re1d209d4 = buildECTesterStandalone { - boringssl = { rev="e1d209d4432846d28c31d84f269f4edcb9a63509"; hash="sha256-K2/9RS+UHCkHiog+//Q99RFWxLVXASE62l8yhJ6JVjg="; }; + boringssl = { + rev = "e1d209d4432846d28c31d84f269f4edcb9a63509"; + hash = "sha256-K2/9RS+UHCkHiog+//Q99RFWxLVXASE62l8yhJ6JVjg="; + }; }; r9cac8a6b = buildECTesterStandalone { - boringssl = { rev="9cac8a6b38c1cbd45c77aee108411d588da006fe"; hash="sha256-oVRzPR4OSpgifskilpke116E4mpx+9baXw6rfW/jegs="; }; + boringssl = { + rev = "9cac8a6b38c1cbd45c77aee108411d588da006fe"; + hash = "sha256-oVRzPR4OSpgifskilpke116E4mpx+9baXw6rfW/jegs="; + }; }; r11acdc6a = buildECTesterStandalone { - boringssl = { rev="11acdc6abf13cc8139c30ac9455840a347793110"; hash="sha256-FPiV4a+MmC3UdBZPqQRu2vUe0v7w+ar6/p19f0YGS+Y="; }; + boringssl = { + rev = "11acdc6abf13cc8139c30ac9455840a347793110"; + hash = "sha256-FPiV4a+MmC3UdBZPqQRu2vUe0v7w+ar6/p19f0YGS+Y="; + }; }; r962432c6 = buildECTesterStandalone { - boringssl = { rev="962432c687f67f8df1aa6e3dd364fbc88fea4ed8"; hash="sha256-BPOeSCjPiLh3pY/07J0vqUGdj6529idZtc+LCKb2MuQ="; }; + boringssl = { + rev = "962432c687f67f8df1aa6e3dd364fbc88fea4ed8"; + hash = "sha256-BPOeSCjPiLh3pY/07J0vqUGdj6529idZtc+LCKb2MuQ="; + }; }; ra220a602 = buildECTesterStandalone { - boringssl = { rev="a220a6024f66c123019b5c080f6bd8bcaf75448c"; hash="sha256-0R5EhwUi1Sc3hhwVhzCBAPxRhcftdmp2/FnwFckxlU0="; }; + boringssl = { + rev = "a220a6024f66c123019b5c080f6bd8bcaf75448c"; + hash = "sha256-0R5EhwUi1Sc3hhwVhzCBAPxRhcftdmp2/FnwFckxlU0="; + }; }; ra6c42d68 = buildECTesterStandalone { - boringssl = { rev="a6c42d6810ea5317fe8ed85704c097cd8f3513ca"; hash="sha256-tqgorwXUKb4wkTRD1OlMKNOp8LTDzyci5ulfaYHYGkQ="; }; + boringssl = { + rev = "a6c42d6810ea5317fe8ed85704c097cd8f3513ca"; + hash = "sha256-tqgorwXUKb4wkTRD1OlMKNOp8LTDzyci5ulfaYHYGkQ="; + }; }; r56fb43a2 = buildECTesterStandalone { - boringssl = { rev="56fb43a204e57af68e00f4561c108a7004381aa3"; hash="sha256-CK3EhbxQxL0SR1lznYTbOGO4PVU0ajHyJ6lVi6OzJGY="; }; + boringssl = { + rev = "56fb43a204e57af68e00f4561c108a7004381aa3"; + hash = "sha256-CK3EhbxQxL0SR1lznYTbOGO4PVU0ajHyJ6lVi6OzJGY="; + }; }; r29223ac3 = buildECTesterStandalone { - boringssl = { rev="29223ac349c144a4d0babc281644c0410dd1e313"; hash="sha256-0zOLcNJh7SMzI1r5AVdFpzZxH1Li9+m0rhXyIg+hiMQ="; }; + boringssl = { + rev = "29223ac349c144a4d0babc281644c0410dd1e313"; + hash = "sha256-0zOLcNJh7SMzI1r5AVdFpzZxH1Li9+m0rhXyIg+hiMQ="; + }; }; re2a801f6 = buildECTesterStandalone { - boringssl = { rev="e2a801f688dbdfac8fde90b849b1bf75f80b466c"; hash="sha256-me6iT8/l4uCeTPo0L6ID0GiUklFEiwR7JGOB+OhotLs="; }; + boringssl = { + rev = "e2a801f688dbdfac8fde90b849b1bf75f80b466c"; + hash = "sha256-me6iT8/l4uCeTPo0L6ID0GiUklFEiwR7JGOB+OhotLs="; + }; }; r39dd1e3c = buildECTesterStandalone { - boringssl = { rev="39dd1e3c904341ac14da80224d72a77d95501ad4"; hash="sha256-hyCIctgppjZmLquRQ7TfvOza9M5gUSPjkECeXIuhw/4="; }; + boringssl = { + rev = "39dd1e3c904341ac14da80224d72a77d95501ad4"; + hash = "sha256-hyCIctgppjZmLquRQ7TfvOza9M5gUSPjkECeXIuhw/4="; + }; }; r1385dbd5 = buildECTesterStandalone { - boringssl = { rev="1385dbd51dc2eeba39076687a6c9e45c7dc8965c"; hash="sha256-wutjtx+JxOdWOVxdwSDosQVAQag/u3KAlQqpUBSPkyk="; }; + boringssl = { + rev = "1385dbd51dc2eeba39076687a6c9e45c7dc8965c"; + hash = "sha256-wutjtx+JxOdWOVxdwSDosQVAQag/u3KAlQqpUBSPkyk="; + }; }; r2bc9245e = buildECTesterStandalone { - boringssl = { rev="2bc9245eb4b50bd9e6b8bd0aa4ac94b91eda997a"; hash="sha256-Wn1rWoaCIfNZuouxt9FPV8L0akTkgXULG68SGNyYDQM="; }; + boringssl = { + rev = "2bc9245eb4b50bd9e6b8bd0aa4ac94b91eda997a"; + hash = "sha256-Wn1rWoaCIfNZuouxt9FPV8L0akTkgXULG68SGNyYDQM="; + }; }; ra055b938 = buildECTesterStandalone { - boringssl = { rev="a055b93845a1b2a910919e21920e4bd1ce900841"; hash="sha256-ZjQC/pT8pdGMj1km4k9RPlMNB6FXkLStClfiazQJonI="; }; + boringssl = { + rev = "a055b93845a1b2a910919e21920e4bd1ce900841"; + hash = "sha256-ZjQC/pT8pdGMj1km4k9RPlMNB6FXkLStClfiazQJonI="; + }; }; rdec5989b = buildECTesterStandalone { - boringssl = { rev="dec5989b793c56ad4dd32173bd2d8595ca78b398"; hash="sha256-IRlarsuNbK7hBJ6W8bXqbHEfk0K9Gqy7h1uHZ1xazhI="; }; + boringssl = { + rev = "dec5989b793c56ad4dd32173bd2d8595ca78b398"; + hash = "sha256-IRlarsuNbK7hBJ6W8bXqbHEfk0K9Gqy7h1uHZ1xazhI="; + }; }; rc1d9ac02 = buildECTesterStandalone { - boringssl = { rev="c1d9ac02514a138129872a036e3f8a1074dcb8bd"; hash="sha256-C1+2oEyLY58IqeLD0G6kHs10cJvMt2AwfhMUEqb8Lt8="; }; + boringssl = { + rev = "c1d9ac02514a138129872a036e3f8a1074dcb8bd"; + hash = "sha256-C1+2oEyLY58IqeLD0G6kHs10cJvMt2AwfhMUEqb8Lt8="; + }; }; re1a860c3 = buildECTesterStandalone { - boringssl = { rev="e1a860c3745c77cb83228dde1b73fa62eaf43930"; hash="sha256-hVVyDOiPrmYFZVOEVPH+gQDdpAJQQXMpslyhXwRIESs="; }; + boringssl = { + rev = "e1a860c3745c77cb83228dde1b73fa62eaf43930"; + hash = "sha256-hVVyDOiPrmYFZVOEVPH+gQDdpAJQQXMpslyhXwRIESs="; + }; }; rfb1c75ca = buildECTesterStandalone { - boringssl = { rev="fb1c75caf8ba5d45a0f2c52facd36e4ad9289549"; hash="sha256-A4qrMxsfBMpkTl+GbhIp6tfa4ArbwYUy+wdl3M01kMI="; }; + boringssl = { + rev = "fb1c75caf8ba5d45a0f2c52facd36e4ad9289549"; + hash = "sha256-A4qrMxsfBMpkTl+GbhIp6tfa4ArbwYUy+wdl3M01kMI="; + }; }; re491eeb6 = buildECTesterStandalone { - boringssl = { rev="e491eeb610fcc69b98bc6d1ba08faf78655808f6"; hash="sha256-5Ju7KKWLJheH9E7aicjJEMCzrky1/6bhV8OsARsrK0U="; }; + boringssl = { + rev = "e491eeb610fcc69b98bc6d1ba08faf78655808f6"; + hash = "sha256-5Ju7KKWLJheH9E7aicjJEMCzrky1/6bhV8OsARsrK0U="; + }; }; ra11277e1 = buildECTesterStandalone { - boringssl = { rev="a11277e187e407d0ef403b8a60d9a32eaab7d301"; hash="sha256-7RsYw9E4fQgy5bdLviRIqLZE3/kbkOQmI+SCGgyCeuo="; }; + boringssl = { + rev = "a11277e187e407d0ef403b8a60d9a32eaab7d301"; + hash = "sha256-7RsYw9E4fQgy5bdLviRIqLZE3/kbkOQmI+SCGgyCeuo="; + }; }; r25cf1bb9 = buildECTesterStandalone { - boringssl = { rev="25cf1bb965ba9ae0302cbc6de4ff4dd6cdbbc016"; hash="sha256-suA9B4DZyRrSKCSrJifvYbRC923GstqPr8qLzUPmyfk="; }; + boringssl = { + rev = "25cf1bb965ba9ae0302cbc6de4ff4dd6cdbbc016"; + hash = "sha256-suA9B4DZyRrSKCSrJifvYbRC923GstqPr8qLzUPmyfk="; + }; }; rc8100f0f = buildECTesterStandalone { - boringssl = { rev="c8100f0f0d05c5185d58113e12a867ae0771a6c9"; hash="sha256-oTa8ZyNJH86rWRlq2+wOl6cc0MFm/yD0N3RK0/8t91Q="; }; + boringssl = { + rev = "c8100f0f0d05c5185d58113e12a867ae0771a6c9"; + hash = "sha256-oTa8ZyNJH86rWRlq2+wOl6cc0MFm/yD0N3RK0/8t91Q="; + }; }; r1eda2363 = buildECTesterStandalone { - boringssl = { rev="1eda2363f9e79aaa5febe91d31b6756ae4f24f30"; hash="sha256-zQ+y78EaZ36yeCi/pk9v7W7M2t5yPLpEO0QXyxtKJ0g="; }; + boringssl = { + rev = "1eda2363f9e79aaa5febe91d31b6756ae4f24f30"; + hash = "sha256-zQ+y78EaZ36yeCi/pk9v7W7M2t5yPLpEO0QXyxtKJ0g="; + }; }; r261579f0 = buildECTesterStandalone { - boringssl = { rev="261579f08b2f8aa7959670df1e928c1c305a632c"; hash="sha256-fnnCC4JcUtp3i3rTVbKAzzH/6YX8ZHXzv86oC9o61Tg="; }; + boringssl = { + rev = "261579f08b2f8aa7959670df1e928c1c305a632c"; + hash = "sha256-fnnCC4JcUtp3i3rTVbKAzzH/6YX8ZHXzv86oC9o61Tg="; + }; }; r9540c045 = buildECTesterStandalone { - boringssl = { rev="9540c0452343e684f94515288880b6b35655f792"; hash="sha256-7y6OxtmpHp3N48RRqP6us3twYHB/JGE5ElCxhxXOXCk="; }; + boringssl = { + rev = "9540c0452343e684f94515288880b6b35655f792"; + hash = "sha256-7y6OxtmpHp3N48RRqP6us3twYHB/JGE5ElCxhxXOXCk="; + }; }; red3f05a6 = buildECTesterStandalone { - boringssl = { rev="ed3f05a6794adfd39937d0027afefad8f6afcae9"; hash="sha256-dL2IJZIKYUoH9lnQMV6e95Ju9bl6D93JvLeio5waZrc="; }; + boringssl = { + rev = "ed3f05a6794adfd39937d0027afefad8f6afcae9"; + hash = "sha256-dL2IJZIKYUoH9lnQMV6e95Ju9bl6D93JvLeio5waZrc="; + }; }; r4a7815c9 = buildECTesterStandalone { - boringssl = { rev="4a7815c94077eebb3546fc287d1fa0e1356a2cd0"; hash="sha256-PWwhREqN/KUSNX7A+8sGJHd2ZUI+WsLW3+eVFBsLjN8="; }; + boringssl = { + rev = "4a7815c94077eebb3546fc287d1fa0e1356a2cd0"; + hash = "sha256-PWwhREqN/KUSNX7A+8sGJHd2ZUI+WsLW3+eVFBsLjN8="; + }; }; r5326e94d = buildECTesterStandalone { - boringssl = { rev="5326e94dd188beba0a5e536b1d2723aee65bd85d"; hash="sha256-FzKzPLXG9IiqtS1xzY/8Rkrs064YaZcISKADI1bwgP0="; }; + boringssl = { + rev = "5326e94dd188beba0a5e536b1d2723aee65bd85d"; + hash = "sha256-FzKzPLXG9IiqtS1xzY/8Rkrs064YaZcISKADI1bwgP0="; + }; }; re09fcf83 = buildECTesterStandalone { - boringssl = { rev="e09fcf8302f75dc50afcfe40f0d59a92b40a3c2e"; hash="sha256-S2/UyMz3xuQTwO5sXx9l+871q/aIvQVq9ezSOPTveUE="; }; + boringssl = { + rev = "e09fcf8302f75dc50afcfe40f0d59a92b40a3c2e"; + hash = "sha256-S2/UyMz3xuQTwO5sXx9l+871q/aIvQVq9ezSOPTveUE="; + }; }; rafd52e91 = buildECTesterStandalone { - boringssl = { rev="afd52e91dfed27ab7193be040f067900947b14ac"; hash="sha256-wi5sQnj631WuCLmDLa0DrM6GJoVKBsI4NUaXeREIEeo="; }; + boringssl = { + rev = "afd52e91dfed27ab7193be040f067900947b14ac"; + hash = "sha256-wi5sQnj631WuCLmDLa0DrM6GJoVKBsI4NUaXeREIEeo="; + }; }; re95b0cad = buildECTesterStandalone { - boringssl = { rev="e95b0cad901abd49755d2a2a2f1f6c3e87d12b94"; hash="sha256-xv3Q30yLrM0l8oDtyLxnfLGH1ZnfHs6F6XEJHjgu6Dw="; }; + boringssl = { + rev = "e95b0cad901abd49755d2a2a2f1f6c3e87d12b94"; + hash = "sha256-xv3Q30yLrM0l8oDtyLxnfLGH1ZnfHs6F6XEJHjgu6Dw="; + }; }; r13aa2733 = buildECTesterStandalone { - boringssl = { rev="13aa27338663c62600249ece54c94f180d57bbb7"; hash="sha256-Wj2gBLAe/C0A6p20lwjc9xa/eo/8ukATxP8dwiRQgds="; }; + boringssl = { + rev = "13aa27338663c62600249ece54c94f180d57bbb7"; + hash = "sha256-Wj2gBLAe/C0A6p20lwjc9xa/eo/8ukATxP8dwiRQgds="; + }; }; r03982b4c = buildECTesterStandalone { - boringssl = { rev="03982b4cfadca0e650b384c9539b2fdb5f8aa012"; hash="sha256-CKd60IZM09YYxXyvrnGvv2z7ecWFsTX2u6rP+wOtCyg="; }; + boringssl = { + rev = "03982b4cfadca0e650b384c9539b2fdb5f8aa012"; + hash = "sha256-CKd60IZM09YYxXyvrnGvv2z7ecWFsTX2u6rP+wOtCyg="; + }; }; r273a920f = buildECTesterStandalone { - boringssl = { rev="273a920f84e8b0b258737cea0f2f24627e8c5ed9"; hash="sha256-fBvaQk2cJE57DRfTV9avEKG2A+MBzsNJeQLQX63kykQ="; }; + boringssl = { + rev = "273a920f84e8b0b258737cea0f2f24627e8c5ed9"; + hash = "sha256-fBvaQk2cJE57DRfTV9avEKG2A+MBzsNJeQLQX63kykQ="; + }; }; r9f7f4d03 = buildECTesterStandalone { - boringssl = { rev="9f7f4d033b03ae1b6e7b69c9e3bfb368f06a887d"; hash="sha256-op7ClsGIL/o1ulHquGq+Uegtn8auPONTs/uWn92ieGw="; }; + boringssl = { + rev = "9f7f4d033b03ae1b6e7b69c9e3bfb368f06a887d"; + hash = "sha256-op7ClsGIL/o1ulHquGq+Uegtn8auPONTs/uWn92ieGw="; + }; }; rd7278ceb = buildECTesterStandalone { - boringssl = { rev="d7278cebad5b8eda0901246f2215344cffece4f4"; hash="sha256-QzrhYKnZKtV9SFwMPW2Axvw9mg1HKg3m5XqOKsDPLGA="; }; + boringssl = { + rev = "d7278cebad5b8eda0901246f2215344cffece4f4"; + hash = "sha256-QzrhYKnZKtV9SFwMPW2Axvw9mg1HKg3m5XqOKsDPLGA="; + }; }; rbfcab2aa = buildECTesterStandalone { - boringssl = { rev="bfcab2aa518899ce71e7ffbc23bb22c4ef51858f"; hash="sha256-DZRdCZA1BTQgBb7WWQylfsI+5naekSj8fmzTL7NeXGY="; }; + boringssl = { + rev = "bfcab2aa518899ce71e7ffbc23bb22c4ef51858f"; + hash = "sha256-DZRdCZA1BTQgBb7WWQylfsI+5naekSj8fmzTL7NeXGY="; + }; }; r68c29a24 = buildECTesterStandalone { - boringssl = { rev="68c29a24ee6c9c70ecce56766ca70b115aad768f"; hash="sha256-yf5eELIkNrJepihcf4SMg78wM8GpNGCgLZIYujHHlRo="; }; + boringssl = { + rev = "68c29a24ee6c9c70ecce56766ca70b115aad768f"; + hash = "sha256-yf5eELIkNrJepihcf4SMg78wM8GpNGCgLZIYujHHlRo="; + }; }; rde6ba216 = buildECTesterStandalone { - boringssl = { rev="de6ba216656b819d4d8de7602006561f82a8c669"; hash="sha256-U4d7K/3YDXOaUGtdJ56YMZ3o7Pb4rUoigo88+/m8oV4="; }; + boringssl = { + rev = "de6ba216656b819d4d8de7602006561f82a8c669"; + hash = "sha256-U4d7K/3YDXOaUGtdJ56YMZ3o7Pb4rUoigo88+/m8oV4="; + }; }; r29c9e64c = buildECTesterStandalone { - boringssl = { rev="29c9e64ce548ff8278e9d98aa53f611f115c2bed"; hash="sha256-29Qkg39XceB0LMHAvFkhbkg9jxlNbiPaSgXjKQ6e5c4="; }; + boringssl = { + rev = "29c9e64ce548ff8278e9d98aa53f611f115c2bed"; + hash = "sha256-29Qkg39XceB0LMHAvFkhbkg9jxlNbiPaSgXjKQ6e5c4="; + }; }; r58745d61 = buildECTesterStandalone { - boringssl = { rev="58745d61afe244a37941d391f5dec3ab08f5cf2c"; hash="sha256-IcfvFmoFoxzorWfKdPfcKLpqmNflqFFR5mxZ5y3fSIQ="; }; + boringssl = { + rev = "58745d61afe244a37941d391f5dec3ab08f5cf2c"; + hash = "sha256-IcfvFmoFoxzorWfKdPfcKLpqmNflqFFR5mxZ5y3fSIQ="; + }; }; rc798e3a5 = buildECTesterStandalone { - boringssl = { rev="c798e3a54912a1bfbf1c846630e2bb86e9b543a7"; hash="sha256-sBDyJuTz8yHcSwDgrXlKjQqvuifaXegb3qwqH0naGig="; }; + boringssl = { + rev = "c798e3a54912a1bfbf1c846630e2bb86e9b543a7"; + hash = "sha256-sBDyJuTz8yHcSwDgrXlKjQqvuifaXegb3qwqH0naGig="; + }; }; rba62c812 = buildECTesterStandalone { - boringssl = { rev="ba62c812f01fb379f49f94a08a2d1282ce46e678"; hash="sha256-u0F0CNV5F6kIfTRnTXLIHXkQ5bOBEUAG/SUItU/g2vU="; }; + boringssl = { + rev = "ba62c812f01fb379f49f94a08a2d1282ce46e678"; + hash = "sha256-u0F0CNV5F6kIfTRnTXLIHXkQ5bOBEUAG/SUItU/g2vU="; + }; }; r2fb5f9cb = buildECTesterStandalone { - boringssl = { rev="2fb5f9cb8feec2234952f6999af941ac48555710"; hash="sha256-dS+ze7Pz8oB2rAFFODOZYD49N7ngea5GKKi76+MLNs8="; }; + boringssl = { + rev = "2fb5f9cb8feec2234952f6999af941ac48555710"; + hash = "sha256-dS+ze7Pz8oB2rAFFODOZYD49N7ngea5GKKi76+MLNs8="; + }; }; rd477c0d7 = buildECTesterStandalone { - boringssl = { rev="d477c0d7c40ddca3a64ae26fc02d2dac175836d3"; hash="sha256-CMLdmGoHH0KBqSLLsTfnWi9Cg5OJZyIZ85ftVjzfcag="; }; + boringssl = { + rev = "d477c0d7c40ddca3a64ae26fc02d2dac175836d3"; + hash = "sha256-CMLdmGoHH0KBqSLLsTfnWi9Cg5OJZyIZ85ftVjzfcag="; + }; }; rc7019036 = buildECTesterStandalone { - boringssl = { rev="c70190368c7040c37c1d655f0690bcde2b109a0d"; hash="sha256-elaaAg/eub/myMsfsN1SQ3AKKMMdduaGHdvU05jxnmE="; }; + boringssl = { + rev = "c70190368c7040c37c1d655f0690bcde2b109a0d"; + hash = "sha256-elaaAg/eub/myMsfsN1SQ3AKKMMdduaGHdvU05jxnmE="; + }; }; r7662e58e = buildECTesterStandalone { - boringssl = { rev="7662e58e3e0f6b6bcfd6e93ef8c83062096f22e2"; hash="sha256-N++DCJApfXa19xRH+u0WXPdfr1bXFwLEFOxT0wSfiF4="; }; + boringssl = { + rev = "7662e58e3e0f6b6bcfd6e93ef8c83062096f22e2"; + hash = "sha256-N++DCJApfXa19xRH+u0WXPdfr1bXFwLEFOxT0wSfiF4="; + }; }; r0355048c = buildECTesterStandalone { - boringssl = { rev="0355048ce0302fdeb4744dae4b8a156a38496150"; hash="sha256-Cypt4iPc6ZJarXKVloUl7G+XfGSEunOCblTzakSjdIY="; }; + boringssl = { + rev = "0355048ce0302fdeb4744dae4b8a156a38496150"; + hash = "sha256-Cypt4iPc6ZJarXKVloUl7G+XfGSEunOCblTzakSjdIY="; + }; }; r3a01cba9 = buildECTesterStandalone { - boringssl = { rev="3a01cba9a5a133799dbb58b5fbf15d0ddfe23cee"; hash="sha256-2bVUZJToGg1xKKwPAKxCqQCucEccfk4wfZFSLQ3XDMk="; }; + boringssl = { + rev = "3a01cba9a5a133799dbb58b5fbf15d0ddfe23cee"; + hash = "sha256-2bVUZJToGg1xKKwPAKxCqQCucEccfk4wfZFSLQ3XDMk="; + }; }; r07f27b1d = buildECTesterStandalone { - boringssl = { rev="07f27b1d445a27433f2c871935da2cefcfbdb458"; hash="sha256-qWhcq7fcteKLlC/EG+/bkUew5UoNzBbkAvWDh22JC8A="; }; + boringssl = { + rev = "07f27b1d445a27433f2c871935da2cefcfbdb458"; + hash = "sha256-qWhcq7fcteKLlC/EG+/bkUew5UoNzBbkAvWDh22JC8A="; + }; }; rfc953df2 = buildECTesterStandalone { - boringssl = { rev="fc953df2352e1c1bcb34cb5f75a0e409014c1690"; hash="sha256-cxmSyN3FYc1/uC0qrf0SWbzzKikyQCNCYajlLldAxDU="; }; + boringssl = { + rev = "fc953df2352e1c1bcb34cb5f75a0e409014c1690"; + hash = "sha256-cxmSyN3FYc1/uC0qrf0SWbzzKikyQCNCYajlLldAxDU="; + }; }; r1a9edc3e = buildECTesterStandalone { - boringssl = { rev="1a9edc3e3b1024af4f6dc1ed6bb391510cb494ba"; hash="sha256-nYN7UhORegjNiH5XB+6wS+NPkxBtAXazps1KzNgyXnI="; }; + boringssl = { + rev = "1a9edc3e3b1024af4f6dc1ed6bb391510cb494ba"; + hash = "sha256-nYN7UhORegjNiH5XB+6wS+NPkxBtAXazps1KzNgyXnI="; + }; }; rb8912d71 = buildECTesterStandalone { - boringssl = { rev="b8912d713cb82a748bbe63f28f28b17632c70964"; hash="sha256-UJBdbyc0uv9NcAxKtVUh5L9FL35gk3PqVbRyxaUhbHc="; }; + boringssl = { + rev = "b8912d713cb82a748bbe63f28f28b17632c70964"; + hash = "sha256-UJBdbyc0uv9NcAxKtVUh5L9FL35gk3PqVbRyxaUhbHc="; + }; }; rb6bca9c6 = buildECTesterStandalone { - boringssl = { rev="b6bca9c6dde177f641137d2991aa677997c54c67"; hash="sha256-Qo/cW+FSCDoEDZClVZmlHurz3CbVN3iqYmpJwmANFcI="; }; + boringssl = { + rev = "b6bca9c6dde177f641137d2991aa677997c54c67"; + hash = "sha256-Qo/cW+FSCDoEDZClVZmlHurz3CbVN3iqYmpJwmANFcI="; + }; }; r03d1b7c5 = buildECTesterStandalone { - boringssl = { rev="03d1b7c544851d9f44df1e9ff21839742e08c819"; hash="sha256-bRmRC4iO1TdyKmb98inr9XNB0hna9z7iZg3CGEQPwIA="; }; + boringssl = { + rev = "03d1b7c544851d9f44df1e9ff21839742e08c819"; + hash = "sha256-bRmRC4iO1TdyKmb98inr9XNB0hna9z7iZg3CGEQPwIA="; + }; }; r6b36ad2b = buildECTesterStandalone { - boringssl = { rev="6b36ad2bd6001f17a997b7a1e0ab254b001438ef"; hash="sha256-bwu01bczIOLU93LYOJXRU0bZ5+a14eqEo8G6EVaXXzY="; }; + boringssl = { + rev = "6b36ad2bd6001f17a997b7a1e0ab254b001438ef"; + hash = "sha256-bwu01bczIOLU93LYOJXRU0bZ5+a14eqEo8G6EVaXXzY="; + }; }; r1d24e04c = buildECTesterStandalone { - boringssl = { rev="1d24e04c7143171ae2010c842e3e1438510fd1c0"; hash="sha256-fgsqIdp4ua4G1bpZflD/eRk7OLh+jlBn3gKmKoa5Qbc="; }; + boringssl = { + rev = "1d24e04c7143171ae2010c842e3e1438510fd1c0"; + hash = "sha256-fgsqIdp4ua4G1bpZflD/eRk7OLh+jlBn3gKmKoa5Qbc="; + }; }; r8a0da669 = buildECTesterStandalone { - boringssl = { rev="8a0da669a08b6c6b805fd7ec9d1e67694fda3711"; hash="sha256-kxx37r693eFZFyjTssS2KrSGYBjYb4hjNljc1wazAbc="; }; + boringssl = { + rev = "8a0da669a08b6c6b805fd7ec9d1e67694fda3711"; + hash = "sha256-kxx37r693eFZFyjTssS2KrSGYBjYb4hjNljc1wazAbc="; + }; }; r4d50a595 = buildECTesterStandalone { - boringssl = { rev="4d50a595b49a2e7b7017060a4d402c4ee9fe28a2"; hash="sha256-nuPaIVPLUxQVrjOx5kfeWOq8XZfrP+wwnZc8gH/diGA="; }; + boringssl = { + rev = "4d50a595b49a2e7b7017060a4d402c4ee9fe28a2"; + hash = "sha256-nuPaIVPLUxQVrjOx5kfeWOq8XZfrP+wwnZc8gH/diGA="; + }; }; rd34f540e = buildECTesterStandalone { - boringssl = { rev="d34f540e57394de22a1599c3c5d852519d388d6c"; hash="sha256-4ErkViNNPnrqzoXjiTA0yRM22XhNIMsc6fLpBcVjjE0="; }; + boringssl = { + rev = "d34f540e57394de22a1599c3c5d852519d388d6c"; + hash = "sha256-4ErkViNNPnrqzoXjiTA0yRM22XhNIMsc6fLpBcVjjE0="; + }; }; re7d76da9 = buildECTesterStandalone { - boringssl = { rev="e7d76da920a1bd79b6ebc77e75b407cdf0a58962"; hash="sha256-mb7io8ljofKPKD4jlZjfqk8+SjiMrlLUrnWod2b9/v0="; }; + boringssl = { + rev = "e7d76da920a1bd79b6ebc77e75b407cdf0a58962"; + hash = "sha256-mb7io8ljofKPKD4jlZjfqk8+SjiMrlLUrnWod2b9/v0="; + }; }; r3efe2eb9 = buildECTesterStandalone { - boringssl = { rev="3efe2eb9e3dfb49cb110c53e3430caeae4599f52"; hash="sha256-i2xw3iE1EGNxWd43qKDum0z7Krfp30WqIoICQD4R45I="; }; + boringssl = { + rev = "3efe2eb9e3dfb49cb110c53e3430caeae4599f52"; + hash = "sha256-i2xw3iE1EGNxWd43qKDum0z7Krfp30WqIoICQD4R45I="; + }; }; r35a91094 = buildECTesterStandalone { - boringssl = { rev="35a910949d684aea8b86a8c42db76c4f43e31a96"; hash="sha256-vgtsVwEspe5gUDOwOHrchvwjfVC9lM4Ks0eFFQrzDMw="; }; + boringssl = { + rev = "35a910949d684aea8b86a8c42db76c4f43e31a96"; + hash = "sha256-vgtsVwEspe5gUDOwOHrchvwjfVC9lM4Ks0eFFQrzDMw="; + }; }; r8e6aa7f3 = buildECTesterStandalone { - boringssl = { rev="8e6aa7f39f4357a6ad15944884f72db8d25b9dff"; hash="sha256-Tdm9SExUr/YsxIbV9GsUqlTZpFZMAAlbUv/u7+GuE+M="; }; + boringssl = { + rev = "8e6aa7f39f4357a6ad15944884f72db8d25b9dff"; + hash = "sha256-Tdm9SExUr/YsxIbV9GsUqlTZpFZMAAlbUv/u7+GuE+M="; + }; }; r7c44f450 = buildECTesterStandalone { - boringssl = { rev="7c44f450547cc777229462c2ac864a9326c0106c"; hash="sha256-snkPY4R9RKdCI0yUS3ICn4CHyXE9DKaYaHAggD2UAOk="; }; + boringssl = { + rev = "7c44f450547cc777229462c2ac864a9326c0106c"; + hash = "sha256-snkPY4R9RKdCI0yUS3ICn4CHyXE9DKaYaHAggD2UAOk="; + }; }; r6ab7c148 = buildECTesterStandalone { - boringssl = { rev="6ab7c1482bf4cdc91c87bc512aaf68ffb18975ec"; hash="sha256-+5ICkcKZRXCSC/y5d5Oo9WtcgdfkLZL/goGXE6V/9hE="; }; + boringssl = { + rev = "6ab7c1482bf4cdc91c87bc512aaf68ffb18975ec"; + hash = "sha256-+5ICkcKZRXCSC/y5d5Oo9WtcgdfkLZL/goGXE6V/9hE="; + }; }; rb17231cd = buildECTesterStandalone { - boringssl = { rev="b17231cdb9ec4e877b470c57d3280d9195811cd9"; hash="sha256-5G/wh35qlfGi6vHEj51QFyIryzKeTiGthfTe7tCWK8s="; }; + boringssl = { + rev = "b17231cdb9ec4e877b470c57d3280d9195811cd9"; + hash = "sha256-5G/wh35qlfGi6vHEj51QFyIryzKeTiGthfTe7tCWK8s="; + }; }; r3e89a7e8 = buildECTesterStandalone { - boringssl = { rev="3e89a7e8db8139db356b892ca9993172346c80cf"; hash="sha256-VsTll0A8FfNbObOnoFLah4BMuCzlLNbqOEgSbppQo7k="; }; + boringssl = { + rev = "3e89a7e8db8139db356b892ca9993172346c80cf"; + hash = "sha256-VsTll0A8FfNbObOnoFLah4BMuCzlLNbqOEgSbppQo7k="; + }; }; r8de798be = buildECTesterStandalone { - boringssl = { rev="8de798be4b850cf88ad2c50602abe2ca3bb285df"; hash="sha256-pQ8BTRMOjxLu8UoyTH23wYwy2pC29yZoCyl1c+94hyM="; }; + boringssl = { + rev = "8de798be4b850cf88ad2c50602abe2ca3bb285df"; + hash = "sha256-pQ8BTRMOjxLu8UoyTH23wYwy2pC29yZoCyl1c+94hyM="; + }; }; rd2e3212d = buildECTesterStandalone { - boringssl = { rev="d2e3212de29bac1ceed33ca8ab8bbff3f41a2459"; hash="sha256-HRa+IdVwchzjJh1Unx8wmu++eiFtY7ctdmwgjJqkx9Y="; }; + boringssl = { + rev = "d2e3212de29bac1ceed33ca8ab8bbff3f41a2459"; + hash = "sha256-HRa+IdVwchzjJh1Unx8wmu++eiFtY7ctdmwgjJqkx9Y="; + }; }; r783ae722 = buildECTesterStandalone { - boringssl = { rev="783ae722ed307a3b3782cd253fd4ffb387f38767"; hash="sha256-bdhCbLFmXOl07F/yjeYpnoM41F7EkaWDRG45cNOSnVo="; }; + boringssl = { + rev = "783ae722ed307a3b3782cd253fd4ffb387f38767"; + hash = "sha256-bdhCbLFmXOl07F/yjeYpnoM41F7EkaWDRG45cNOSnVo="; + }; }; r2db0eb3f = buildECTesterStandalone { - boringssl = { rev="2db0eb3f96a5756298dcd7f9319e56a98585bd10"; hash="sha256-+G7BcdtU8AeNMY4NLQgKpgF28/CS9FIjf+vaOd+Wf6o="; }; + boringssl = { + rev = "2db0eb3f96a5756298dcd7f9319e56a98585bd10"; + hash = "sha256-+G7BcdtU8AeNMY4NLQgKpgF28/CS9FIjf+vaOd+Wf6o="; + }; }; r70d05d5a = buildECTesterStandalone { - boringssl = { rev="70d05d5a34f6366116e2b0a530ea8d0186bb2a8e"; hash="sha256-aEtH4Efvt+zRGvUD9JAsBU+EfZySk8gU05fek5rbcbM="; }; + boringssl = { + rev = "70d05d5a34f6366116e2b0a530ea8d0186bb2a8e"; + hash = "sha256-aEtH4Efvt+zRGvUD9JAsBU+EfZySk8gU05fek5rbcbM="; + }; }; } diff --git a/nix/boringsslshim.nix b/nix/boringsslshim.nix index 3969381..a5e7fbd 100644 --- a/nix/boringsslshim.nix +++ b/nix/boringsslshim.nix @@ -1,8 +1,6 @@ -{ - pkgs - , boringssl -}: -with pkgs; stdenv.mkDerivation { +{ pkgs, boringssl }: +with pkgs; +stdenv.mkDerivation { name = "BoringSSLShim"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; diff --git a/nix/botan_pkg_versions.nix b/nix/botan_pkg_versions.nix index 66b0db5..254bca9 100644 --- a/nix/botan_pkg_versions.nix +++ b/nix/botan_pkg_versions.nix @@ -1,122 +1,276 @@ +{ buildECTesterStandalone }: { - buildECTesterStandalone -}: -{ v200 = buildECTesterStandalone { - botan = { version="2.0.0"; source_extension="tgz"; hash="sha256-AxZZzKD4CGnp2XogkX7b4hZM7bwHnoxT4Oe9m+oVNxo="; }; - }; + botan = { + version = "2.0.0"; + source_extension = "tgz"; + hash = "sha256-AxZZzKD4CGnp2XogkX7b4hZM7bwHnoxT4Oe9m+oVNxo="; + }; + }; v201 = buildECTesterStandalone { - botan = { version="2.0.1"; source_extension="tgz"; hash="sha256-oTjtMW0RRQqEBUUbnJZkuOZAqbethNPzrTToBx82Tgs="; }; - }; + botan = { + version = "2.0.1"; + source_extension = "tgz"; + hash = "sha256-oTjtMW0RRQqEBUUbnJZkuOZAqbethNPzrTToBx82Tgs="; + }; + }; v210 = buildECTesterStandalone { - botan = { version="2.1.0"; source_extension="tgz"; hash="sha256-Rg8tcgWu0RP4mN9JR7H2bM+NCA7sfawinvC3VMmtYpQ="; }; - }; + botan = { + version = "2.1.0"; + source_extension = "tgz"; + hash = "sha256-Rg8tcgWu0RP4mN9JR7H2bM+NCA7sfawinvC3VMmtYpQ="; + }; + }; v2100 = buildECTesterStandalone { - botan = { version="2.10.0"; source_extension="tgz"; hash="sha256-iEgZl1eMJ5JHJP6nZhDUPZ9ZyZ7f5WHUGAO7yYhxrTE="; }; - }; + botan = { + version = "2.10.0"; + source_extension = "tgz"; + hash = "sha256-iEgZl1eMJ5JHJP6nZhDUPZ9ZyZ7f5WHUGAO7yYhxrTE="; + }; + }; v2110 = buildECTesterStandalone { - botan = { version="2.11.0"; source_extension="tar.xz"; hash="sha256-94dNoq64wBj9d99AshN4eb+Qtm9ViUkMmR6D+z6AlL4="; }; - }; + botan = { + version = "2.11.0"; + source_extension = "tar.xz"; + hash = "sha256-94dNoq64wBj9d99AshN4eb+Qtm9ViUkMmR6D+z6AlL4="; + }; + }; v2120 = buildECTesterStandalone { - botan = { version="2.12.0"; source_extension="tar.xz"; hash="sha256-Hq79RZ1S8n3hgFz/jGh5LgYQkZZI7pjhAZgOlO25CmM="; }; - }; + botan = { + version = "2.12.0"; + source_extension = "tar.xz"; + hash = "sha256-Hq79RZ1S8n3hgFz/jGh5LgYQkZZI7pjhAZgOlO25CmM="; + }; + }; v2121 = buildECTesterStandalone { - botan = { version="2.12.1"; source_extension="tar.xz"; hash="sha256-fgNfFCpR/KE1lwV5JieigkVtSXSb9io3qOSDddQbqqk="; }; - }; + botan = { + version = "2.12.1"; + source_extension = "tar.xz"; + hash = "sha256-fgNfFCpR/KE1lwV5JieigkVtSXSb9io3qOSDddQbqqk="; + }; + }; v2130 = buildECTesterStandalone { - botan = { version="2.13.0"; source_extension="tar.xz"; hash="sha256-9XrkKkHhCRvKWPRPQa3evZo5C2UWA5UsiB7InVAYfpA="; }; - }; + botan = { + version = "2.13.0"; + source_extension = "tar.xz"; + hash = "sha256-9XrkKkHhCRvKWPRPQa3evZo5C2UWA5UsiB7InVAYfpA="; + }; + }; v2140 = buildECTesterStandalone { - botan = { version="2.14.0"; source_extension="tar.xz"; hash="sha256-DBDxK0JKQO4ZveACkgmOIB10mFNcBi2NW1htB4YaVLU="; }; - }; + botan = { + version = "2.14.0"; + source_extension = "tar.xz"; + hash = "sha256-DBDxK0JKQO4ZveACkgmOIB10mFNcBi2NW1htB4YaVLU="; + }; + }; v2150 = buildECTesterStandalone { - botan = { version="2.15.0"; source_extension="tar.xz"; hash="sha256-2IrxMH8f76x5qk8vUkaZR41pzhWoV88tCpCsa/KlAAk="; }; - }; + botan = { + version = "2.15.0"; + source_extension = "tar.xz"; + hash = "sha256-2IrxMH8f76x5qk8vUkaZR41pzhWoV88tCpCsa/KlAAk="; + }; + }; v2160 = buildECTesterStandalone { - botan = { version="2.16.0"; source_extension="tar.xz"; hash="sha256-ku1uvJGNhr0bBCIcpRivTPKcwybEdgdAvS0i5hzqJig="; }; - }; + botan = { + version = "2.16.0"; + source_extension = "tar.xz"; + hash = "sha256-ku1uvJGNhr0bBCIcpRivTPKcwybEdgdAvS0i5hzqJig="; + }; + }; v2170 = buildECTesterStandalone { - botan = { version="2.17.0"; source_extension="tar.xz"; hash="sha256-uXBEsxKqcYNJr3hRMxsGS8e9U1JADV+AeTus5CfQE0M="; }; - }; + botan = { + version = "2.17.0"; + source_extension = "tar.xz"; + hash = "sha256-uXBEsxKqcYNJr3hRMxsGS8e9U1JADV+AeTus5CfQE0M="; + }; + }; v2171 = buildECTesterStandalone { - botan = { version="2.17.1"; source_extension="tar.xz"; hash="sha256-dBNYs/FjjtfZsvWbTjRKpG9JZrFZWLVDTArBWA3wwME="; }; - }; + botan = { + version = "2.17.1"; + source_extension = "tar.xz"; + hash = "sha256-dBNYs/FjjtfZsvWbTjRKpG9JZrFZWLVDTArBWA3wwME="; + }; + }; v2172 = buildECTesterStandalone { - botan = { version="2.17.2"; source_extension="tar.xz"; hash="sha256-6+J9/itV1+Ar9SDpJmBsSLdrIvrLSDJWsTqzjgGOHmw="; }; - }; + botan = { + version = "2.17.2"; + source_extension = "tar.xz"; + hash = "sha256-6+J9/itV1+Ar9SDpJmBsSLdrIvrLSDJWsTqzjgGOHmw="; + }; + }; v2173 = buildECTesterStandalone { - botan = { version="2.17.3"; source_extension="tar.xz"; hash="sha256-eRI7ZURFpKu6SG4JpDF4hUXHCCNzgqPnZWZMn1WwO4g="; }; - }; + botan = { + version = "2.17.3"; + source_extension = "tar.xz"; + hash = "sha256-eRI7ZURFpKu6SG4JpDF4hUXHCCNzgqPnZWZMn1WwO4g="; + }; + }; v2180 = buildECTesterStandalone { - botan = { version="2.18.0"; source_extension="tar.xz"; hash="sha256-zGSFLh4MW7MOzQUuShLVE2ElqM5cO+LvtvsGHIZ34yc="; }; - }; + botan = { + version = "2.18.0"; + source_extension = "tar.xz"; + hash = "sha256-zGSFLh4MW7MOzQUuShLVE2ElqM5cO+LvtvsGHIZ34yc="; + }; + }; v2181 = buildECTesterStandalone { - botan = { version="2.18.1"; source_extension="tar.xz"; hash="sha256-+Me0YiKoVxaKdUpcwym7eAUEEisnABjdpTBMmNsorik="; }; - }; + botan = { + version = "2.18.1"; + source_extension = "tar.xz"; + hash = "sha256-+Me0YiKoVxaKdUpcwym7eAUEEisnABjdpTBMmNsorik="; + }; + }; v2182 = buildECTesterStandalone { - botan = { version="2.18.2"; source_extension="tar.xz"; hash="sha256-VBo7E/G50w+XfGwa5Me/39p2PNpuRN6Ac2nc559CMH4="; }; - }; + botan = { + version = "2.18.2"; + source_extension = "tar.xz"; + hash = "sha256-VBo7E/G50w+XfGwa5Me/39p2PNpuRN6Ac2nc559CMH4="; + }; + }; v2190 = buildECTesterStandalone { - botan = { version="2.19.0"; source_extension="tar.xz"; hash="sha256-JA2eVuasuR70zwaoocbA8QHGHUDPSMzPE5+u+CHXBAs="; }; - }; + botan = { + version = "2.19.0"; + source_extension = "tar.xz"; + hash = "sha256-JA2eVuasuR70zwaoocbA8QHGHUDPSMzPE5+u+CHXBAs="; + }; + }; v2191 = buildECTesterStandalone { - botan = { version="2.19.1"; source_extension="tar.xz"; hash="sha256-4m4Az+/aZAgq/dVA08U3kk9kXWpnSv7SzRcQBd7/VWA="; }; - }; + botan = { + version = "2.19.1"; + source_extension = "tar.xz"; + hash = "sha256-4m4Az+/aZAgq/dVA08U3kk9kXWpnSv7SzRcQBd7/VWA="; + }; + }; v2192 = buildECTesterStandalone { - botan = { version="2.19.2"; source_extension="tar.xz"; hash="sha256-OvXxdhXGtc2Lgy0mn7bLTVTsZPnrCd2/Gt1Qk5QbTXU="; }; - }; + botan = { + version = "2.19.2"; + source_extension = "tar.xz"; + hash = "sha256-OvXxdhXGtc2Lgy0mn7bLTVTsZPnrCd2/Gt1Qk5QbTXU="; + }; + }; v2193 = buildECTesterStandalone { - botan = { version="2.19.3"; source_extension="tar.xz"; hash="sha256-2uBH85nFpH8IfbXT2dno8RrkmF0UySjXHaGv+AGALVU="; }; - }; + botan = { + version = "2.19.3"; + source_extension = "tar.xz"; + hash = "sha256-2uBH85nFpH8IfbXT2dno8RrkmF0UySjXHaGv+AGALVU="; + }; + }; v2194 = buildECTesterStandalone { - botan = { version="2.19.4"; source_extension="tar.xz"; hash="sha256-WjqI72Qz6XvKsO+h7WDGGX5K2p2dMLwcR0N7+JuX8nY="; }; - }; + botan = { + version = "2.19.4"; + source_extension = "tar.xz"; + hash = "sha256-WjqI72Qz6XvKsO+h7WDGGX5K2p2dMLwcR0N7+JuX8nY="; + }; + }; v2195 = buildECTesterStandalone { - botan = { version="2.19.5"; source_extension="tar.xz"; hash="sha256-3+6g4KbybWckxK8B2pp7iEh62y2Bunxy/K9S21IsmtQ="; }; - }; + botan = { + version = "2.19.5"; + source_extension = "tar.xz"; + hash = "sha256-3+6g4KbybWckxK8B2pp7iEh62y2Bunxy/K9S21IsmtQ="; + }; + }; v220 = buildECTesterStandalone { - botan = { version="2.2.0"; source_extension="tgz"; hash="sha256-x5TbLsRvb/iPN652gl8MJY8HiAuGW2cHsmrPzEVnuCQ="; }; - }; + botan = { + version = "2.2.0"; + source_extension = "tgz"; + hash = "sha256-x5TbLsRvb/iPN652gl8MJY8HiAuGW2cHsmrPzEVnuCQ="; + }; + }; v230 = buildECTesterStandalone { - botan = { version="2.3.0"; source_extension="tgz"; hash="sha256-Oflw/uWYakw+QlAwrvUKwoTaGFlsAE0anM52iMTm1Hw="; }; - }; + botan = { + version = "2.3.0"; + source_extension = "tgz"; + hash = "sha256-Oflw/uWYakw+QlAwrvUKwoTaGFlsAE0anM52iMTm1Hw="; + }; + }; v240 = buildECTesterStandalone { - botan = { version="2.4.0"; source_extension="tgz"; hash="sha256-7ZRk4qXP7kzT2b16j4BnO0XIoHGNshgac/VGWmBmCKU="; }; - }; + botan = { + version = "2.4.0"; + source_extension = "tgz"; + hash = "sha256-7ZRk4qXP7kzT2b16j4BnO0XIoHGNshgac/VGWmBmCKU="; + }; + }; v250 = buildECTesterStandalone { - botan = { version="2.5.0"; source_extension="tgz"; hash="sha256-uKMf4D5/BIpb05Z+zQS2pIlmIV54eS3wbjM7Du3k+xs="; }; - }; + botan = { + version = "2.5.0"; + source_extension = "tgz"; + hash = "sha256-uKMf4D5/BIpb05Z+zQS2pIlmIV54eS3wbjM7Du3k+xs="; + }; + }; v260 = buildECTesterStandalone { - botan = { version="2.6.0"; source_extension="tgz"; hash="sha256-wfJhVVu6cCxzYI3ee9dD7y1jd6QaHClZFbJcW6uvXMU="; }; - }; + botan = { + version = "2.6.0"; + source_extension = "tgz"; + hash = "sha256-wfJhVVu6cCxzYI3ee9dD7y1jd6QaHClZFbJcW6uvXMU="; + }; + }; v270 = buildECTesterStandalone { - botan = { version="2.7.0"; source_extension="tgz"; hash="sha256-5C35FVYxdYjGyg5Bv3lvm9XsXHDgZo5sl8YIxpfCSpA="; }; - }; + botan = { + version = "2.7.0"; + source_extension = "tgz"; + hash = "sha256-5C35FVYxdYjGyg5Bv3lvm9XsXHDgZo5sl8YIxpfCSpA="; + }; + }; v280 = buildECTesterStandalone { - botan = { version="2.8.0"; source_extension="tgz"; hash="sha256-5xWbEn6R4MFYJF1hxjjFDUQ+x7RAtrAWEyjEezq6OWA="; }; - }; + botan = { + version = "2.8.0"; + source_extension = "tgz"; + hash = "sha256-5xWbEn6R4MFYJF1hxjjFDUQ+x7RAtrAWEyjEezq6OWA="; + }; + }; v290 = buildECTesterStandalone { - botan = { version="2.9.0"; source_extension="tgz"; hash="sha256-MFVkNSM03WOuY9sDkHfZauUt+lejJIhxCBcZtqny0Rk="; }; - }; + botan = { + version = "2.9.0"; + source_extension = "tgz"; + hash = "sha256-MFVkNSM03WOuY9sDkHfZauUt+lejJIhxCBcZtqny0Rk="; + }; + }; v300 = buildECTesterStandalone { - botan = { version="3.0.0"; source_extension="tar.xz"; hash="sha256-XaVS4A+hwEepDCLrXwJH7CfnQytot44Qp84JVSacytc="; }; - }; + botan = { + version = "3.0.0"; + source_extension = "tar.xz"; + hash = "sha256-XaVS4A+hwEepDCLrXwJH7CfnQytot44Qp84JVSacytc="; + }; + }; v310 = buildECTesterStandalone { - botan = { version="3.1.0"; source_extension="tar.xz"; hash="sha256-ThjnVai7xr+W+skW+/By7NBnQMcqcgF8JxYuTAtHJf4="; }; - }; + botan = { + version = "3.1.0"; + source_extension = "tar.xz"; + hash = "sha256-ThjnVai7xr+W+skW+/By7NBnQMcqcgF8JxYuTAtHJf4="; + }; + }; v311 = buildECTesterStandalone { - botan = { version="3.1.1"; source_extension="tar.xz"; hash="sha256-MMhP6RmTapj+9TMfJGxiqiwOTSCFstRREgf2ogr6Oms="; }; - }; + botan = { + version = "3.1.1"; + source_extension = "tar.xz"; + hash = "sha256-MMhP6RmTapj+9TMfJGxiqiwOTSCFstRREgf2ogr6Oms="; + }; + }; v320 = buildECTesterStandalone { - botan = { version="3.2.0"; source_extension="tar.xz"; hash="sha256-BJyEeDX89u86niBrM94F3TiZnDJeJHSCdypVmNnl7OM="; }; - }; + botan = { + version = "3.2.0"; + source_extension = "tar.xz"; + hash = "sha256-BJyEeDX89u86niBrM94F3TiZnDJeJHSCdypVmNnl7OM="; + }; + }; v330 = buildECTesterStandalone { - botan = { version="3.3.0"; source_extension="tar.xz"; hash="sha256-No8R9CbxIFrtuenjI2ihZTXcEb1gNRBm5vZmTsNrhbk="; }; - }; + botan = { + version = "3.3.0"; + source_extension = "tar.xz"; + hash = "sha256-No8R9CbxIFrtuenjI2ihZTXcEb1gNRBm5vZmTsNrhbk="; + }; + }; v340 = buildECTesterStandalone { - botan = { version="3.4.0"; source_extension="tar.xz"; hash="sha256-cYQ6/MCixYX48z+jBPC1iuS5xdgwb4lGZ7N0YEQndVc="; }; - }; + botan = { + version = "3.4.0"; + source_extension = "tar.xz"; + hash = "sha256-cYQ6/MCixYX48z+jBPC1iuS5xdgwb4lGZ7N0YEQndVc="; + }; + }; v350 = buildECTesterStandalone { - botan = { version="3.5.0"; source_extension="tar.xz"; hash="sha256-Z+ja4cokaNkN5OYByH1fMf9JKzjoq4vL0C3fcQTtip8="; }; - }; -} \ No newline at end of file + botan = { + version = "3.5.0"; + source_extension = "tar.xz"; + hash = "sha256-Z+ja4cokaNkN5OYByH1fMf9JKzjoq4vL0C3fcQTtip8="; + }; + }; +} diff --git a/nix/botanshim.nix b/nix/botanshim.nix index 3711d1d..8688b20 100644 --- a/nix/botanshim.nix +++ b/nix/botanshim.nix @@ -1,9 +1,9 @@ -{ - stdenv - , botan2 - , pkg-config +{ + stdenv, + botan2, + pkg-config, # NOTE change to jdk17? - , jdk11_headless + jdk11_headless, }: stdenv.mkDerivation { name = "BotanShim"; diff --git a/nix/commonlibs.nix b/nix/commonlibs.nix index 525d4aa..dde4cca 100644 --- a/nix/commonlibs.nix +++ b/nix/commonlibs.nix @@ -1,7 +1,6 @@ -{ - pkgs -}: -with pkgs; stdenv.mkDerivation rec { +{ pkgs }: +with pkgs; +stdenv.mkDerivation rec { name = "Common Libraries"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; diff --git a/nix/cryptopp_pkg_versions.nix b/nix/cryptopp_pkg_versions.nix index 781135b..a4b01e5 100644 --- a/nix/cryptopp_pkg_versions.nix +++ b/nix/cryptopp_pkg_versions.nix @@ -1,53 +1,99 @@ +{ buildECTesterStandalone }: { - buildECTesterStandalone -}: -{ v890 = buildECTesterStandalone { - cryptopp = { version="8_9_0"; hash="sha256-HV+afSFkiXdy840JbHBTR8lLL0GMwsN3QdwaoQmicpQ="; }; - }; + cryptopp = { + version = "8_9_0"; + hash = "sha256-HV+afSFkiXdy840JbHBTR8lLL0GMwsN3QdwaoQmicpQ="; + }; + }; v880 = buildECTesterStandalone { - cryptopp = { version="8_8_0"; hash="sha256-hg7g56bIYaXxB28nAmSQ7EP9NEwd1Psf/2GUtbC27oU="; }; - }; + cryptopp = { + version = "8_8_0"; + hash = "sha256-hg7g56bIYaXxB28nAmSQ7EP9NEwd1Psf/2GUtbC27oU="; + }; + }; v870 = buildECTesterStandalone { - cryptopp = { version="8_7_0"; hash="sha256-KtZXW7+J9a4uKHnK8sqj5WVaIjG3d6tzBBDxa7Wv4AE="; }; - }; + cryptopp = { + version = "8_7_0"; + hash = "sha256-KtZXW7+J9a4uKHnK8sqj5WVaIjG3d6tzBBDxa7Wv4AE="; + }; + }; v860 = buildECTesterStandalone { - cryptopp = { version="8_6_0"; hash="sha256-a3TYaK34WvKEXN7LKAfGwQ3ZL6a3k/zMZyyVfnkQqO4="; }; - }; + cryptopp = { + version = "8_6_0"; + hash = "sha256-a3TYaK34WvKEXN7LKAfGwQ3ZL6a3k/zMZyyVfnkQqO4="; + }; + }; v850 = buildECTesterStandalone { - cryptopp = { version="8_5_0"; hash="sha256-A7eoJNwIOSCrO7vXyA6JER4E18k8vRRKdDsk/BXNx0Y="; }; - }; + cryptopp = { + version = "8_5_0"; + hash = "sha256-A7eoJNwIOSCrO7vXyA6JER4E18k8vRRKdDsk/BXNx0Y="; + }; + }; v840 = buildECTesterStandalone { - cryptopp = { version="8_4_0"; hash="sha256-gxd3LtvtgwgE1bUQc9pXLT8/WFrQPm3ghIHAGqBHlr8="; }; - }; + cryptopp = { + version = "8_4_0"; + hash = "sha256-gxd3LtvtgwgE1bUQc9pXLT8/WFrQPm3ghIHAGqBHlr8="; + }; + }; v830 = buildECTesterStandalone { - cryptopp = { version="8_3_0"; hash="sha256-PHQol8Q7R0b63wiAf43nq+l+FcGItBzw65JZYSMf1ng="; }; - }; + cryptopp = { + version = "8_3_0"; + hash = "sha256-PHQol8Q7R0b63wiAf43nq+l+FcGItBzw65JZYSMf1ng="; + }; + }; v820 = buildECTesterStandalone { - cryptopp = { version="8_2_0"; hash="sha256-sg7MrjzuAfWRK0RNZ6xR6cUD6z6F/u/SmtCTYOXP+Qc="; }; - }; + cryptopp = { + version = "8_2_0"; + hash = "sha256-sg7MrjzuAfWRK0RNZ6xR6cUD6z6F/u/SmtCTYOXP+Qc="; + }; + }; v810 = buildECTesterStandalone { - cryptopp = { version="8_1_0"; hash="sha256-6SRr0Kv+iJrtEixJjb7Rbj/YdVa7vhW7u476FZLTymI="; }; - }; + cryptopp = { + version = "8_1_0"; + hash = "sha256-6SRr0Kv+iJrtEixJjb7Rbj/YdVa7vhW7u476FZLTymI="; + }; + }; v800 = buildECTesterStandalone { - cryptopp = { version="8_0_0"; hash="sha256-mq8xhse5xXbP0VcnNbnNz6xxLxJDIj8Gm3Pn/DEOt4w="; }; - }; + cryptopp = { + version = "8_0_0"; + hash = "sha256-mq8xhse5xXbP0VcnNbnNz6xxLxJDIj8Gm3Pn/DEOt4w="; + }; + }; v700 = buildECTesterStandalone { - cryptopp = { version="7_0_0"; hash="sha256-6m7ZnIBbOqthlX7I4uj/UvUgh1BEopNE02BC4pyMuU4="; }; - }; + cryptopp = { + version = "7_0_0"; + hash = "sha256-6m7ZnIBbOqthlX7I4uj/UvUgh1BEopNE02BC4pyMuU4="; + }; + }; v610 = buildECTesterStandalone { - cryptopp = { version="6_1_0"; hash="sha256-ZbercC0i/XhMhCYv54GwyIJuTygezD89/8HGeSKgkTo="; }; - }; + cryptopp = { + version = "6_1_0"; + hash = "sha256-ZbercC0i/XhMhCYv54GwyIJuTygezD89/8HGeSKgkTo="; + }; + }; v600 = buildECTesterStandalone { - cryptopp = { version="6_0_0"; hash="sha256-3IZpDOzlljFmYRfkw/Kxe8BiBxYkqM4zIF03FyNqC/E="; }; - }; + cryptopp = { + version = "6_0_0"; + hash = "sha256-3IZpDOzlljFmYRfkw/Kxe8BiBxYkqM4zIF03FyNqC/E="; + }; + }; v565 = buildECTesterStandalone { - cryptopp = { version="5_6_5"; hash="sha256-h+7LK8nzk1NlkVB4Loc9VQpN79SUFvBYESSpTZyXZ/o="; }; - }; + cryptopp = { + version = "5_6_5"; + hash = "sha256-h+7LK8nzk1NlkVB4Loc9VQpN79SUFvBYESSpTZyXZ/o="; + }; + }; v564 = buildECTesterStandalone { - cryptopp = { version="5_6_4"; hash="sha256-IgSRJAF+4lEFSXeboxktfG0iW+a72ZFp6Vibk5/qgz4="; }; - }; + cryptopp = { + version = "5_6_4"; + hash = "sha256-IgSRJAF+4lEFSXeboxktfG0iW+a72ZFp6Vibk5/qgz4="; + }; + }; v563 = buildECTesterStandalone { - cryptopp = { version="5_6_3"; hash="sha256-FDskGxaeACp7x3ZbgYXDr6PpFcPO0d6SEKVsOLIXbN0="; }; - }; -} \ No newline at end of file + cryptopp = { + version = "5_6_3"; + hash = "sha256-FDskGxaeACp7x3ZbgYXDr6PpFcPO0d6SEKVsOLIXbN0="; + }; + }; +} diff --git a/nix/cryptoppshim.nix b/nix/cryptoppshim.nix index 1c3532c..8c735d7 100644 --- a/nix/cryptoppshim.nix +++ b/nix/cryptoppshim.nix @@ -1,8 +1,6 @@ -{ - pkgs - , cryptopp -}: -with pkgs; stdenv.mkDerivation { +{ pkgs, cryptopp }: +with pkgs; +stdenv.mkDerivation { name = "Crypto++ Shim"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; diff --git a/nix/gcrypt_pkg_versions.nix b/nix/gcrypt_pkg_versions.nix index b0be7d7..d27bfae 100644 --- a/nix/gcrypt_pkg_versions.nix +++ b/nix/gcrypt_pkg_versions.nix @@ -1,180 +1,352 @@ +{ buildECTesterStandalone }: { - buildECTesterStandalone -}: -{ v1110 = buildECTesterStandalone { - gcrypt = { version="1.11.0"; hash="sha256-CRIMmGfOfyCB1qqhd1OGuYwvLyRhNXYarkfYH1hoW5w="; }; - }; + gcrypt = { + version = "1.11.0"; + hash = "sha256-CRIMmGfOfyCB1qqhd1OGuYwvLyRhNXYarkfYH1hoW5w="; + }; + }; v1103 = buildECTesterStandalone { - gcrypt = { version="1.10.3"; hash="sha256-iwhwiXrFrGfe1Wjc+t9Flpz6imvrD9YK8qnq3Coycqo="; }; - }; + gcrypt = { + version = "1.10.3"; + hash = "sha256-iwhwiXrFrGfe1Wjc+t9Flpz6imvrD9YK8qnq3Coycqo="; + }; + }; v1102 = buildECTesterStandalone { - gcrypt = { version="1.10.2"; hash="sha256-O5wCoAS2jCVq3ZlwHeALODrMzPNxd+DWxYKJZkzODAM="; }; - }; + gcrypt = { + version = "1.10.2"; + hash = "sha256-O5wCoAS2jCVq3ZlwHeALODrMzPNxd+DWxYKJZkzODAM="; + }; + }; v1101 = buildECTesterStandalone { - gcrypt = { version="1.10.1"; hash="sha256-7xSuVGsAhM2EJZ9hpV4Ho4w7U6/A9Ua//O8vAbr/6d4="; }; - }; + gcrypt = { + version = "1.10.1"; + hash = "sha256-7xSuVGsAhM2EJZ9hpV4Ho4w7U6/A9Ua//O8vAbr/6d4="; + }; + }; v1100 = buildECTesterStandalone { - gcrypt = { version="1.10.0"; hash="sha256-agD1wFyqTErMEgxGtjhX2g1P9h3EtLA5M/qNRgE/roE="; }; - }; + gcrypt = { + version = "1.10.0"; + hash = "sha256-agD1wFyqTErMEgxGtjhX2g1P9h3EtLA5M/qNRgE/roE="; + }; + }; v194 = buildECTesterStandalone { - gcrypt = { version="1.9.4"; hash="sha256-6oScg6ckVOPtQmdpfoygM5Cu6XKrQh599p3+QrZcqvc="; }; - }; + gcrypt = { + version = "1.9.4"; + hash = "sha256-6oScg6ckVOPtQmdpfoygM5Cu6XKrQh599p3+QrZcqvc="; + }; + }; v193 = buildECTesterStandalone { - gcrypt = { version="1.9.3"; hash="sha256-l+vk+U4vfjW3UhlM4VoPPGYyTg/2ryZlm7+1/y7DKP0="; }; - }; + gcrypt = { + version = "1.9.3"; + hash = "sha256-l+vk+U4vfjW3UhlM4VoPPGYyTg/2ryZlm7+1/y7DKP0="; + }; + }; v192 = buildECTesterStandalone { - gcrypt = { version="1.9.2"; hash="sha256-ssENCRUTsnHkcXcnRgex/7o9lbGIu/qHl/lIrskFPFo="; }; - }; + gcrypt = { + version = "1.9.2"; + hash = "sha256-ssENCRUTsnHkcXcnRgex/7o9lbGIu/qHl/lIrskFPFo="; + }; + }; v191 = buildECTesterStandalone { - gcrypt = { version="1.9.1"; hash="sha256-xaZ6i5sr03D7QV7R7jHHFy5Wgwdkk89KNnig+98CZdk="; }; - }; + gcrypt = { + version = "1.9.1"; + hash = "sha256-xaZ6i5sr03D7QV7R7jHHFy5Wgwdkk89KNnig+98CZdk="; + }; + }; # NOTE Do not use copied from the source https://gnupg.org/ftp/gcrypt/libgcrypt/ v190_do_not_use = buildECTesterStandalone { - gcrypt = { version="1.9.0"; hash="sha256-TZzKpfmdtZ68tk1z9iglsFzoprf4bRkXhVnvhN4Tgcs="; }; - }; + gcrypt = { + version = "1.9.0"; + hash = "sha256-TZzKpfmdtZ68tk1z9iglsFzoprf4bRkXhVnvhN4Tgcs="; + }; + }; v1811 = buildECTesterStandalone { - gcrypt = { version="1.8.11"; hash="sha256-yYJJ+1ux9gF/X5v0hDJ6lAtZB1vKfEb6aeu1QJgkmGA="; }; - }; + gcrypt = { + version = "1.8.11"; + hash = "sha256-yYJJ+1ux9gF/X5v0hDJ6lAtZB1vKfEb6aeu1QJgkmGA="; + }; + }; v1810 = buildECTesterStandalone { - gcrypt = { version="1.8.10"; hash="sha256-aJaRVQH5UeI9AtywRTRpwswiqk13oAH/c6JkfC0p590="; }; - }; + gcrypt = { + version = "1.8.10"; + hash = "sha256-aJaRVQH5UeI9AtywRTRpwswiqk13oAH/c6JkfC0p590="; + }; + }; v189 = buildECTesterStandalone { - gcrypt = { version="1.8.9"; hash="sha256-K9pHkKpfCJXTQHz3v2vXcn/ZkvJaRaY9kv7xB2f6N2k="; }; - }; + gcrypt = { + version = "1.8.9"; + hash = "sha256-K9pHkKpfCJXTQHz3v2vXcn/ZkvJaRaY9kv7xB2f6N2k="; + }; + }; v188 = buildECTesterStandalone { - gcrypt = { version="1.8.8"; hash="sha256-iV3iu5gd0Sfwgh0c4T+t99dg+fp3N2SLFfLB/hPMWvU="; }; - }; + gcrypt = { + version = "1.8.8"; + hash = "sha256-iV3iu5gd0Sfwgh0c4T+t99dg+fp3N2SLFfLB/hPMWvU="; + }; + }; v187 = buildECTesterStandalone { - gcrypt = { version="1.8.7"; hash="sha256-A7cPAoKZVhtwNLiWbX3XfvFu0TnENECSX+h4JWGXR0g="; }; - }; + gcrypt = { + version = "1.8.7"; + hash = "sha256-A7cPAoKZVhtwNLiWbX3XfvFu0TnENECSX+h4JWGXR0g="; + }; + }; v186 = buildECTesterStandalone { - gcrypt = { version="1.8.6"; hash="sha256-DLonAGF7mfwzhkoMFrH6f9+XgdntNQn112cXjl/XuXU="; }; - }; + gcrypt = { + version = "1.8.6"; + hash = "sha256-DLonAGF7mfwzhkoMFrH6f9+XgdntNQn112cXjl/XuXU="; + }; + }; v185 = buildECTesterStandalone { - gcrypt = { version="1.8.5"; hash="sha256-O0oqlMtjfv9b3rvK9G9NlcTyUgb0WYCTOc2toOtXesM="; }; - }; + gcrypt = { + version = "1.8.5"; + hash = "sha256-O0oqlMtjfv9b3rvK9G9NlcTyUgb0WYCTOc2toOtXesM="; + }; + }; v184 = buildECTesterStandalone { - gcrypt = { version="1.8.4"; hash="sha256-9jgUOgZyYo/eDK10XpsU3rhd/7F1cJyswfT+JLk/Iic="; }; - }; + gcrypt = { + version = "1.8.4"; + hash = "sha256-9jgUOgZyYo/eDK10XpsU3rhd/7F1cJyswfT+JLk/Iic="; + }; + }; v183 = buildECTesterStandalone { - gcrypt = { version="1.8.3"; hash="sha256-ZuyQvgNnR2AvK0j5gxI2GpGAyXxoppCl83b6D2fQr3w="; }; - }; + gcrypt = { + version = "1.8.3"; + hash = "sha256-ZuyQvgNnR2AvK0j5gxI2GpGAyXxoppCl83b6D2fQr3w="; + }; + }; v182 = buildECTesterStandalone { - gcrypt = { version="1.8.2"; hash="sha256-yAZMrnVYFEsT7w64cJNBI4DvoWxO4wrRLstUiGpSTAc="; }; - }; + gcrypt = { + version = "1.8.2"; + hash = "sha256-yAZMrnVYFEsT7w64cJNBI4DvoWxO4wrRLstUiGpSTAc="; + }; + }; v181 = buildECTesterStandalone { - gcrypt = { version="1.8.1"; hash="sha256-eih1+LGuAwFzLoeMDMoslmT/Ce9xQI8IXFDjMmVqeLM="; }; - }; + gcrypt = { + version = "1.8.1"; + hash = "sha256-eih1+LGuAwFzLoeMDMoslmT/Ce9xQI8IXFDjMmVqeLM="; + }; + }; v180 = buildECTesterStandalone { - gcrypt = { version="1.8.0"; hash="sha256-I+SWl7h8xBc7A7R1fI30MU4xSQWPoYvcT4IJjxA9iRs="; }; - }; + gcrypt = { + version = "1.8.0"; + hash = "sha256-I+SWl7h8xBc7A7R1fI30MU4xSQWPoYvcT4IJjxA9iRs="; + }; + }; v1710 = buildECTesterStandalone { - gcrypt = { version="1.7.10"; hash="sha256-ifBaQj3WaiXls4MICX4jhuZA0c+DUWDRmlx1NQBx2Uw="; }; - }; + gcrypt = { + version = "1.7.10"; + hash = "sha256-ifBaQj3WaiXls4MICX4jhuZA0c+DUWDRmlx1NQBx2Uw="; + }; + }; v179 = buildECTesterStandalone { - gcrypt = { version="1.7.9"; hash="sha256-v+m7cDwRJsNkfaKBD9IwOcLwnUaWn3FhLCBl3D+pNzs="; }; - }; + gcrypt = { + version = "1.7.9"; + hash = "sha256-v+m7cDwRJsNkfaKBD9IwOcLwnUaWn3FhLCBl3D+pNzs="; + }; + }; v178 = buildECTesterStandalone { - gcrypt = { version="1.7.8"; hash="sha256-lIJ26kfmugJE82oXtR3N1Sz9HmZLChrDvIITT7bOwZk="; }; - }; + gcrypt = { + version = "1.7.8"; + hash = "sha256-lIJ26kfmugJE82oXtR3N1Sz9HmZLChrDvIITT7bOwZk="; + }; + }; v177 = buildECTesterStandalone { - gcrypt = { version="1.7.7"; hash="sha256-ubheugeT6j5uZriW6wMfoF4aRRcnfMmrEIFrNZJUzZo="; }; - }; + gcrypt = { + version = "1.7.7"; + hash = "sha256-ubheugeT6j5uZriW6wMfoF4aRRcnfMmrEIFrNZJUzZo="; + }; + }; v176 = buildECTesterStandalone { - gcrypt = { version="1.7.6"; hash="sha256-Ymqv7oSvnSziU9LBQ9wcCQLdoEV4DMJB85lw/GC+Bbw="; }; - }; + gcrypt = { + version = "1.7.6"; + hash = "sha256-Ymqv7oSvnSziU9LBQ9wcCQLdoEV4DMJB85lw/GC+Bbw="; + }; + }; v175 = buildECTesterStandalone { - gcrypt = { version="1.7.5"; hash="sha256-0f6kEovu8rswpHCva6+rzMUDztNQU0+53Y9aU/+66AA="; }; - }; + gcrypt = { + version = "1.7.5"; + hash = "sha256-0f6kEovu8rswpHCva6+rzMUDztNQU0+53Y9aU/+66AA="; + }; + }; v174 = buildECTesterStandalone { - gcrypt = { version="1.7.4"; hash="sha256-O2eGLi9HEeJcTOPMS0jVKlijr9zR2Malf5OhwO8D5cY="; }; - }; + gcrypt = { + version = "1.7.4"; + hash = "sha256-O2eGLi9HEeJcTOPMS0jVKlijr9zR2Malf5OhwO8D5cY="; + }; + }; v173 = buildECTesterStandalone { - gcrypt = { version="1.7.3"; hash="sha256-3axhEQd9ChYSJHWHviOMUpTdDuTXbce6eDzFX7AzcHE="; }; - }; + gcrypt = { + version = "1.7.3"; + hash = "sha256-3axhEQd9ChYSJHWHviOMUpTdDuTXbce6eDzFX7AzcHE="; + }; + }; v172 = buildECTesterStandalone { - gcrypt = { version="1.7.2"; hash="sha256-PTXfkG1uqzVFBMBddJqbAhlEyyn/X2XI75w91fe2aJ8="; }; - }; + gcrypt = { + version = "1.7.2"; + hash = "sha256-PTXfkG1uqzVFBMBddJqbAhlEyyn/X2XI75w91fe2aJ8="; + }; + }; v171 = buildECTesterStandalone { - gcrypt = { version="1.7.1"; hash="sha256-RQ2c/L8WEcZNvjvQS2J7gzee+J8RQG2UyLujBeNtepU="; }; - }; + gcrypt = { + version = "1.7.1"; + hash = "sha256-RQ2c/L8WEcZNvjvQS2J7gzee+J8RQG2UyLujBeNtepU="; + }; + }; v170 = buildECTesterStandalone { - gcrypt = { version="1.7.0"; hash="sha256-sOZ+p0R0k5kTxNnZ70717DeO++K+vjY4ne4xnHm/+pI="; }; - }; + gcrypt = { + version = "1.7.0"; + hash = "sha256-sOZ+p0R0k5kTxNnZ70717DeO++K+vjY4ne4xnHm/+pI="; + }; + }; v166 = buildECTesterStandalone { - gcrypt = { version="1.6.6"; hash="sha256-+UYbRhm7eLJzqI1GiRV1DUGOiaPqO2QbqwVjqa9LBNA="; }; - }; + gcrypt = { + version = "1.6.6"; + hash = "sha256-+UYbRhm7eLJzqI1GiRV1DUGOiaPqO2QbqwVjqa9LBNA="; + }; + }; v165 = buildECTesterStandalone { - gcrypt = { version="1.6.5"; hash="sha256-9J68WELUVa5wGd7zPrWgFKDweiqDU9w6pQp2/R2vqSQ="; }; - }; + gcrypt = { + version = "1.6.5"; + hash = "sha256-9J68WELUVa5wGd7zPrWgFKDweiqDU9w6pQp2/R2vqSQ="; + }; + }; v164 = buildECTesterStandalone { - gcrypt = { version="1.6.4"; hash="sha256-ybwsf+Ll9OoTsMdPnSS8uxrYibs5KX2Agq6/I/QzYCY="; }; - }; + gcrypt = { + version = "1.6.4"; + hash = "sha256-ybwsf+Ll9OoTsMdPnSS8uxrYibs5KX2Agq6/I/QzYCY="; + }; + }; v163 = buildECTesterStandalone { - gcrypt = { version="1.6.3"; hash="sha256-QbSRe5OuNMag4hJzeNek1m2AWiqGoJkR1Pm9hx23Al8="; }; - }; + gcrypt = { + version = "1.6.3"; + hash = "sha256-QbSRe5OuNMag4hJzeNek1m2AWiqGoJkR1Pm9hx23Al8="; + }; + }; v162 = buildECTesterStandalone { - gcrypt = { version="1.6.2"; hash="sha256-3ghEkqazjNsntn6vdJzrp2v3Ap9jqcDDwbBciMmIXEw="; }; - }; + gcrypt = { + version = "1.6.2"; + hash = "sha256-3ghEkqazjNsntn6vdJzrp2v3Ap9jqcDDwbBciMmIXEw="; + }; + }; v161 = buildECTesterStandalone { - gcrypt = { version="1.6.1"; hash="sha256-ocPv6mn4/+dp9IizAM4ZDu6www3iSlPxwbbkIC/cIHA="; }; - }; + gcrypt = { + version = "1.6.1"; + hash = "sha256-ocPv6mn4/+dp9IizAM4ZDu6www3iSlPxwbbkIC/cIHA="; + }; + }; v160 = buildECTesterStandalone { - gcrypt = { version="1.6.0"; hash="sha256-Zi1QhgCtlMwzTmZbcBYTf+7fzKUiaZjGXd1Wvfyilwg="; }; - }; + gcrypt = { + version = "1.6.0"; + hash = "sha256-Zi1QhgCtlMwzTmZbcBYTf+7fzKUiaZjGXd1Wvfyilwg="; + }; + }; v156 = buildECTesterStandalone { - gcrypt = { version="1.5.6"; hash="sha256-MBgmteUhyGcFb9Ywqtbwpg4XbRigF9prwksWld86vnk="; }; - }; + gcrypt = { + version = "1.5.6"; + hash = "sha256-MBgmteUhyGcFb9Ywqtbwpg4XbRigF9prwksWld86vnk="; + }; + }; v155 = buildECTesterStandalone { - gcrypt = { version="1.5.5"; hash="sha256-2JWCA+eGvKR5zXyQOQaSXop+AzzLlZv1Mxe1fPEaBlU="; }; - }; + gcrypt = { + version = "1.5.5"; + hash = "sha256-2JWCA+eGvKR5zXyQOQaSXop+AzzLlZv1Mxe1fPEaBlU="; + }; + }; v154 = buildECTesterStandalone { - gcrypt = { version="1.5.4"; hash="sha256-1fiNn0GkaVPcJQzbhXUSmzfuIghAG3+jOMiX9mfH+zM="; }; - }; + gcrypt = { + version = "1.5.4"; + hash = "sha256-1fiNn0GkaVPcJQzbhXUSmzfuIghAG3+jOMiX9mfH+zM="; + }; + }; v153 = buildECTesterStandalone { - gcrypt = { version="1.5.3"; hash="sha256-vPUzTn2jUsRd5q7F0ghM6aHTACn/SkpdoT8YSIdHWdE="; }; - }; + gcrypt = { + version = "1.5.3"; + hash = "sha256-vPUzTn2jUsRd5q7F0ghM6aHTACn/SkpdoT8YSIdHWdE="; + }; + }; v152 = buildECTesterStandalone { - gcrypt = { version="1.5.2"; hash="sha256-5BpDOfUClPPJJfL3Gq8kJ+sWLSmU2pFmbfwyYhr+lj8="; }; - }; + gcrypt = { + version = "1.5.2"; + hash = "sha256-5BpDOfUClPPJJfL3Gq8kJ+sWLSmU2pFmbfwyYhr+lj8="; + }; + }; v151 = buildECTesterStandalone { - gcrypt = { version="1.5.1"; hash="sha256-rZ6xWAjnaZmMC9jBgayIFCORn08QVYaRPcy8Dfv65Sc="; }; - }; + gcrypt = { + version = "1.5.1"; + hash = "sha256-rZ6xWAjnaZmMC9jBgayIFCORn08QVYaRPcy8Dfv65Sc="; + }; + }; v150 = buildECTesterStandalone { - gcrypt = { version="1.5.0"; hash="sha256-S2L8UWAElAoFcQJUAaBYHUkZnxp237XOb9Y/UNuBc/o="; }; - }; + gcrypt = { + version = "1.5.0"; + hash = "sha256-S2L8UWAElAoFcQJUAaBYHUkZnxp237XOb9Y/UNuBc/o="; + }; + }; v146 = buildECTesterStandalone { - gcrypt = { version="1.4.6"; hash="sha256-Pksw2ms1e1ZTM9AiITO2SgQUvpm6cnMwgRZcjqm8a4U="; }; - }; + gcrypt = { + version = "1.4.6"; + hash = "sha256-Pksw2ms1e1ZTM9AiITO2SgQUvpm6cnMwgRZcjqm8a4U="; + }; + }; v145 = buildECTesterStandalone { - gcrypt = { version="1.4.5"; hash="sha256-SW+QfFMk3nU2fsYcY7/u0TCe8LxkhF3CCzWXcxq9nkA="; }; - }; + gcrypt = { + version = "1.4.5"; + hash = "sha256-SW+QfFMk3nU2fsYcY7/u0TCe8LxkhF3CCzWXcxq9nkA="; + }; + }; v144 = buildECTesterStandalone { - gcrypt = { version="1.4.4"; hash="sha256-MhK4gIDPj6AGFk04/Bdvr6XClZHIOE8oSriA2w2/MG8="; }; - }; + gcrypt = { + version = "1.4.4"; + hash = "sha256-MhK4gIDPj6AGFk04/Bdvr6XClZHIOE8oSriA2w2/MG8="; + }; + }; v143 = buildECTesterStandalone { - gcrypt = { version="1.4.3"; hash="sha256-iMgZvZ8B19SBiJjhM6USBE54w0MHqmBrapTuznwLIws="; }; - }; + gcrypt = { + version = "1.4.3"; + hash = "sha256-iMgZvZ8B19SBiJjhM6USBE54w0MHqmBrapTuznwLIws="; + }; + }; v142 = buildECTesterStandalone { - gcrypt = { version="1.4.2"; hash="sha256-unQUhG9/O6IrIs842hug6dXCJjixxArAh85RZJgRUsM="; }; - }; + gcrypt = { + version = "1.4.2"; + hash = "sha256-unQUhG9/O6IrIs842hug6dXCJjixxArAh85RZJgRUsM="; + }; + }; v141 = buildECTesterStandalone { - gcrypt = { version="1.4.1"; hash="sha256-/jsyvfDJLWs7t7Pks8Gaaomanetl8bNvCliC0wjJH6M="; }; - }; + gcrypt = { + version = "1.4.1"; + hash = "sha256-/jsyvfDJLWs7t7Pks8Gaaomanetl8bNvCliC0wjJH6M="; + }; + }; v140 = buildECTesterStandalone { - gcrypt = { version="1.4.0"; hash="sha256-1/hV92aUSltuf/7i1v/fgoq3CazURTsOZK6oCM4nYOw="; }; - }; + gcrypt = { + version = "1.4.0"; + hash = "sha256-1/hV92aUSltuf/7i1v/fgoq3CazURTsOZK6oCM4nYOw="; + }; + }; v124 = buildECTesterStandalone { - gcrypt = { version="1.2.4"; hash="sha256-fWFVxNCkD7o9ug8hqVnHhIxzS6ZzTejifuomrlPAyIA="; }; - }; + gcrypt = { + version = "1.2.4"; + hash = "sha256-fWFVxNCkD7o9ug8hqVnHhIxzS6ZzTejifuomrlPAyIA="; + }; + }; v123 = buildECTesterStandalone { - gcrypt = { version="1.2.3"; hash="sha256-6OKRFjlRFIIHWAeSWILQBlYRPDHgqJAV1ITcFsbYD7Q="; }; - }; + gcrypt = { + version = "1.2.3"; + hash = "sha256-6OKRFjlRFIIHWAeSWILQBlYRPDHgqJAV1ITcFsbYD7Q="; + }; + }; v122 = buildECTesterStandalone { - gcrypt = { version="1.2.2"; hash="sha256-espQrfRId1XGHAWQ1286k1Lie9s908DcDP+Py0Eq5iQ="; }; - }; + gcrypt = { + version = "1.2.2"; + hash = "sha256-espQrfRId1XGHAWQ1286k1Lie9s908DcDP+Py0Eq5iQ="; + }; + }; v121 = buildECTesterStandalone { - gcrypt = { version="1.2.1"; hash="sha256-E3hqJqQgH8CfiPqiSDDRYxnJKrKPlJIcKu8JDq8Xp7I="; }; - }; + gcrypt = { + version = "1.2.1"; + hash = "sha256-E3hqJqQgH8CfiPqiSDDRYxnJKrKPlJIcKu8JDq8Xp7I="; + }; + }; } diff --git a/nix/gcryptshim.nix b/nix/gcryptshim.nix index bfe027b..764b03c 100644 --- a/nix/gcryptshim.nix +++ b/nix/gcryptshim.nix @@ -1,9 +1,10 @@ { - pkgs - , libgcrypt - , libgpg-error + pkgs, + libgcrypt, + libgpg-error, }: -with pkgs; stdenv.mkDerivation { +with pkgs; +stdenv.mkDerivation { name = "Gcrypt Shim"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; diff --git a/nix/ippcp_pkg_versions.nix b/nix/ippcp_pkg_versions.nix index ac97208..a3140cf 100644 --- a/nix/ippcp_pkg_versions.nix +++ b/nix/ippcp_pkg_versions.nix @@ -1,77 +1,147 @@ +{ buildECTesterStandalone }: { - buildECTesterStandalone -}: -{ v2021_12_1 = buildECTesterStandalone { - ippcp = { version="2021.12.1"; hash="sha256-voxjx9Np/8jy9XS6EvUK4aW18/DGQGaPpTKm9RzuCU8="; }; - }; + ippcp = { + version = "2021.12.1"; + hash = "sha256-voxjx9Np/8jy9XS6EvUK4aW18/DGQGaPpTKm9RzuCU8="; + }; + }; v2021_12_0 = buildECTesterStandalone { - ippcp = { version="2021.12.0"; hash="sha256-FeCfiXwOUM3cL4Ah3IjLa/2SKo9WHTZFUfg/w8WTNcc="; }; - }; + ippcp = { + version = "2021.12.0"; + hash = "sha256-FeCfiXwOUM3cL4Ah3IjLa/2SKo9WHTZFUfg/w8WTNcc="; + }; + }; v2021_11_1 = buildECTesterStandalone { - ippcp = { version="2021.11.1"; hash="sha256-OgNrrPE8jFVD/hcv7A43Bno96r4Z/lb7/SE6TEL7RDI="; }; - }; + ippcp = { + version = "2021.11.1"; + hash = "sha256-OgNrrPE8jFVD/hcv7A43Bno96r4Z/lb7/SE6TEL7RDI="; + }; + }; v2021_11_0 = buildECTesterStandalone { - ippcp = { version="2021.11.0"; hash="sha256-MVhiKEJxYa1HaicPbkzrAlZxFqIEP7eDLusC/T52gXI="; }; - }; + ippcp = { + version = "2021.11.0"; + hash = "sha256-MVhiKEJxYa1HaicPbkzrAlZxFqIEP7eDLusC/T52gXI="; + }; + }; v2021_10_0 = buildECTesterStandalone { - ippcp = { version="2021.10.0"; hash="sha256-DfXsJ+4XqyjCD+79LUD53Cx8D46o1a4fAZa2UxGI1Xg="; }; - }; + ippcp = { + version = "2021.10.0"; + hash = "sha256-DfXsJ+4XqyjCD+79LUD53Cx8D46o1a4fAZa2UxGI1Xg="; + }; + }; v2021_9_0 = buildECTesterStandalone { - ippcp = { version="2021.9.0"; hash="sha256-+ITnxyrkDQp4xRa+PVzXdYsSkI5sMNwQGfGU+lFJ6co="; }; - }; + ippcp = { + version = "2021.9.0"; + hash = "sha256-+ITnxyrkDQp4xRa+PVzXdYsSkI5sMNwQGfGU+lFJ6co="; + }; + }; v2021_8 = buildECTesterStandalone { - ippcp = { version="2021.8"; hash="sha256-Iz1Pql+cf2DdPe7KoNpxQ7H76SFwWkUbtL4bJxr7D4w="; }; - }; + ippcp = { + version = "2021.8"; + hash = "sha256-Iz1Pql+cf2DdPe7KoNpxQ7H76SFwWkUbtL4bJxr7D4w="; + }; + }; v2021_7_1 = buildECTesterStandalone { - ippcp = { version="2021.7.1"; hash="sha256-iyg4ja7tsbpng7XOZwISri+x8knwEeyh/aP9ldhQY60="; }; - }; + ippcp = { + version = "2021.7.1"; + hash = "sha256-iyg4ja7tsbpng7XOZwISri+x8knwEeyh/aP9ldhQY60="; + }; + }; v2021_7 = buildECTesterStandalone { - ippcp = { version="2021.7"; hash="sha256-3W0LlJgmrp2Rk7xQ+0GQfkF2UpH4htx9R7IL86smtnY="; }; - }; + ippcp = { + version = "2021.7"; + hash = "sha256-3W0LlJgmrp2Rk7xQ+0GQfkF2UpH4htx9R7IL86smtnY="; + }; + }; v2021_6 = buildECTesterStandalone { - ippcp = { version="2021.6"; hash="sha256-lr6oiJTaTQhTrxhdY5dTfOrl/ZBwOYbuyuNU3tJbEe0="; }; - }; + ippcp = { + version = "2021.6"; + hash = "sha256-lr6oiJTaTQhTrxhdY5dTfOrl/ZBwOYbuyuNU3tJbEe0="; + }; + }; v2021_5 = buildECTesterStandalone { - ippcp = { version="2021.5"; hash="sha256-xc44XvGz9KnbLKKMmSJQ2Eq8IhEFVb0tYIWVW4oJRuo="; }; - }; + ippcp = { + version = "2021.5"; + hash = "sha256-xc44XvGz9KnbLKKMmSJQ2Eq8IhEFVb0tYIWVW4oJRuo="; + }; + }; v2021_4 = buildECTesterStandalone { - ippcp = { version="2021.4"; hash="sha256-SyRY3BoHY7zQIFA6j0U0W0oD5PZhp3vsvFQVBw4/AXY="; }; - }; + ippcp = { + version = "2021.4"; + hash = "sha256-SyRY3BoHY7zQIFA6j0U0W0oD5PZhp3vsvFQVBw4/AXY="; + }; + }; v2021_3 = buildECTesterStandalone { - ippcp = { version="2021.3"; hash="sha256-QEJXvQ//zhQqibFxXwPMdS1MHewgyb24LRmkycVSGrM="; }; - }; + ippcp = { + version = "2021.3"; + hash = "sha256-QEJXvQ//zhQqibFxXwPMdS1MHewgyb24LRmkycVSGrM="; + }; + }; v2021_2 = buildECTesterStandalone { - ippcp = { version="2021.2"; hash="sha256-8I3y//LK5TcyC71fdX1biF588rdK2AplO6eh9GUHx9U="; }; - }; + ippcp = { + version = "2021.2"; + hash = "sha256-8I3y//LK5TcyC71fdX1biF588rdK2AplO6eh9GUHx9U="; + }; + }; v2020u3 = buildECTesterStandalone { - ippcp = { version="2020u3"; hash="sha256-i/iPOSTKR02pHzxBRn3odZJ+6SzGtS+pCG1BWo1qdAs="; }; - }; + ippcp = { + version = "2020u3"; + hash = "sha256-i/iPOSTKR02pHzxBRn3odZJ+6SzGtS+pCG1BWo1qdAs="; + }; + }; v2020u2 = buildECTesterStandalone { - ippcp = { version="2020u2"; hash="sha256-cn76ju41RdEJxH9SmF75Z38V3e9vnLXGdyjh4hISpr8="; }; - }; + ippcp = { + version = "2020u2"; + hash = "sha256-cn76ju41RdEJxH9SmF75Z38V3e9vnLXGdyjh4hISpr8="; + }; + }; v2020u1 = buildECTesterStandalone { - ippcp = { version="2020u1"; hash="sha256-4h5Zrx4hvsvZkXpHu0ZXJftoLFms34PstTRN0gHCXrM="; }; - }; + ippcp = { + version = "2020u1"; + hash = "sha256-4h5Zrx4hvsvZkXpHu0ZXJftoLFms34PstTRN0gHCXrM="; + }; + }; v2020 = buildECTesterStandalone { - ippcp = { version="2020"; hash="sha256-k4CuLLtNX+wrEGRgoIP9e0wp42U1VRF96nhDE8qNkMk="; }; - }; + ippcp = { + version = "2020"; + hash = "sha256-k4CuLLtNX+wrEGRgoIP9e0wp42U1VRF96nhDE8qNkMk="; + }; + }; v2019u4 = buildECTesterStandalone { - ippcp = { version="2019u4"; hash="sha256-Xi3I0frlR/OjX4IRJyBuFcSkrCaxL9ABRZ1w8FUAseg="; }; - }; + ippcp = { + version = "2019u4"; + hash = "sha256-Xi3I0frlR/OjX4IRJyBuFcSkrCaxL9ABRZ1w8FUAseg="; + }; + }; v2019u3 = buildECTesterStandalone { - ippcp = { version="2019u3"; hash="sha256-8sdPlRNfdjMkc061e6EFpJMMA1QKK5/SpKlMV2E5TH4="; }; - }; + ippcp = { + version = "2019u3"; + hash = "sha256-8sdPlRNfdjMkc061e6EFpJMMA1QKK5/SpKlMV2E5TH4="; + }; + }; v2019u2 = buildECTesterStandalone { - ippcp = { version="2019u2"; hash="sha256-WoiO1pXA6UTRdKCcn9ckMk4/6IvbQAK4k7d8P3rGbqc="; }; - }; + ippcp = { + version = "2019u2"; + hash = "sha256-WoiO1pXA6UTRdKCcn9ckMk4/6IvbQAK4k7d8P3rGbqc="; + }; + }; v2019u1 = buildECTesterStandalone { - ippcp = { version="2019u1"; hash="sha256-2KcZz+7NrhbvRVLXtdME73uMBrhw+4q0ajiXeWwZdJs="; }; - }; + ippcp = { + version = "2019u1"; + hash = "sha256-2KcZz+7NrhbvRVLXtdME73uMBrhw+4q0ajiXeWwZdJs="; + }; + }; v2019 = buildECTesterStandalone { - ippcp = { version="2019"; hash="sha256-iTupt9pRN+6ze3Hf/dmtve9u15iVL0g2kujUpyGgums="; }; - }; + ippcp = { + version = "2019"; + hash = "sha256-iTupt9pRN+6ze3Hf/dmtve9u15iVL0g2kujUpyGgums="; + }; + }; v2019b = buildECTesterStandalone { - ippcp = { version="2019b"; hash="sha256-5zoY/nad8tQosX8EBxrebbupkFRRbWB8vf33xNAKTH8="; }; - }; -} \ No newline at end of file + ippcp = { + version = "2019b"; + hash = "sha256-5zoY/nad8tQosX8EBxrebbupkFRRbWB8vf33xNAKTH8="; + }; + }; +} diff --git a/nix/ippcpshim.nix b/nix/ippcpshim.nix index 43ec4d6..2b1d676 100644 --- a/nix/ippcpshim.nix +++ b/nix/ippcpshim.nix @@ -1,8 +1,6 @@ -{ - pkgs - , ipp-crypto -}: - with pkgs; stdenv.mkDerivation rec { +{ pkgs, ipp-crypto }: +with pkgs; +stdenv.mkDerivation rec { name = "IppCryptoShim"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; diff --git a/nix/libressl_pkg_versions.nix b/nix/libressl_pkg_versions.nix index 1621521..d723778 100644 --- a/nix/libressl_pkg_versions.nix +++ b/nix/libressl_pkg_versions.nix @@ -1,362 +1,717 @@ +{ buildECTesterStandalone }: { - buildECTesterStandalone -}: -{ v200 = buildECTesterStandalone { - libressl = { version="2.0.0"; hash="sha256-E5rIHJR4rM04qetmdiPXWZeiGXzsNvGEzY0j6Yp+R1s="; }; - }; + libressl = { + version = "2.0.0"; + hash = "sha256-E5rIHJR4rM04qetmdiPXWZeiGXzsNvGEzY0j6Yp+R1s="; + }; + }; v201 = buildECTesterStandalone { - libressl = { version="2.0.1"; hash="sha256-lZb2yz6Lr+NddJ3722yYTxu9hiM1mOtf20q/hUpXkro="; }; - }; + libressl = { + version = "2.0.1"; + hash = "sha256-lZb2yz6Lr+NddJ3722yYTxu9hiM1mOtf20q/hUpXkro="; + }; + }; v202 = buildECTesterStandalone { - libressl = { version="2.0.2"; hash="sha256-TRa2hSy9iV7VVzeBnSwEKzc3Hx2A/LpPskI566Kl1ys="; }; - }; + libressl = { + version = "2.0.2"; + hash = "sha256-TRa2hSy9iV7VVzeBnSwEKzc3Hx2A/LpPskI566Kl1ys="; + }; + }; v203 = buildECTesterStandalone { - libressl = { version="2.0.3"; hash="sha256-39U7eIA8JctQCD3R+PdzqSTcMc3Z3jlu6uQSDBSq4tQ="; }; - }; + libressl = { + version = "2.0.3"; + hash = "sha256-39U7eIA8JctQCD3R+PdzqSTcMc3Z3jlu6uQSDBSq4tQ="; + }; + }; v204 = buildECTesterStandalone { - libressl = { version="2.0.4"; hash="sha256-XMZ9F5AqMiu7iBEE4HyGITwBSqa1LmZRmG1Ct2/P7Tw="; }; - }; + libressl = { + version = "2.0.4"; + hash = "sha256-XMZ9F5AqMiu7iBEE4HyGITwBSqa1LmZRmG1Ct2/P7Tw="; + }; + }; v205 = buildECTesterStandalone { - libressl = { version="2.0.5"; hash="sha256-P1Rjtd65Pv0qxOI6IGEqHM8ymaVp0DiAuyBMkGR9/Jo="; }; - }; + libressl = { + version = "2.0.5"; + hash = "sha256-P1Rjtd65Pv0qxOI6IGEqHM8ymaVp0DiAuyBMkGR9/Jo="; + }; + }; v206 = buildECTesterStandalone { - libressl = { version="2.0.6"; hash="sha256-dlKjYV2uCsML2KZWbyhb2u4NzLc8E9f6h2ce2PV0y2Y="; }; - }; + libressl = { + version = "2.0.6"; + hash = "sha256-dlKjYV2uCsML2KZWbyhb2u4NzLc8E9f6h2ce2PV0y2Y="; + }; + }; v210 = buildECTesterStandalone { - libressl = { version="2.1.0"; hash="sha256-oy2XthqYw180RYS5hcr0mj/D4ObiTQu7vjT+Yd0mJ6w="; }; - }; + libressl = { + version = "2.1.0"; + hash = "sha256-oy2XthqYw180RYS5hcr0mj/D4ObiTQu7vjT+Yd0mJ6w="; + }; + }; v211 = buildECTesterStandalone { - libressl = { version="2.1.1"; hash="sha256-+1raQadbMcjdn/AT2spXslMEetFOQ/Zdi0GHm3uOPBc="; }; - }; + libressl = { + version = "2.1.1"; + hash = "sha256-+1raQadbMcjdn/AT2spXslMEetFOQ/Zdi0GHm3uOPBc="; + }; + }; v2110 = buildECTesterStandalone { - libressl = { version="2.1.10"; hash="sha256-im2jGORME8lhgI0WgMf/vm2v8o5uRlbAmi00D6+HnkE="; }; - }; + libressl = { + version = "2.1.10"; + hash = "sha256-im2jGORME8lhgI0WgMf/vm2v8o5uRlbAmi00D6+HnkE="; + }; + }; v212 = buildECTesterStandalone { - libressl = { version="2.1.2"; hash="sha256-B8BfEuXUnb/Pgt0jtrSHe3zbHI5MjdJ8tNnldYpsr1I="; }; - }; + libressl = { + version = "2.1.2"; + hash = "sha256-B8BfEuXUnb/Pgt0jtrSHe3zbHI5MjdJ8tNnldYpsr1I="; + }; + }; v213 = buildECTesterStandalone { - libressl = { version="2.1.3"; hash="sha256-6y83CXFAj7EK9kU+VWRlyO7nKKwzO/HrR+waURIwT3w="; }; - }; + libressl = { + version = "2.1.3"; + hash = "sha256-6y83CXFAj7EK9kU+VWRlyO7nKKwzO/HrR+waURIwT3w="; + }; + }; v214 = buildECTesterStandalone { - libressl = { version="2.1.4"; hash="sha256-6OCFNZKHdBGal5QS7o4wdES3oaQsjEesBu4JQjypoE4="; }; - }; + libressl = { + version = "2.1.4"; + hash = "sha256-6OCFNZKHdBGal5QS7o4wdES3oaQsjEesBu4JQjypoE4="; + }; + }; v215 = buildECTesterStandalone { - libressl = { version="2.1.5"; hash="sha256-qCN5kT/X9OJuBF/PAhqpKh9oOVSBa/gXs7aW3mLpw7s="; }; - }; + libressl = { + version = "2.1.5"; + hash = "sha256-qCN5kT/X9OJuBF/PAhqpKh9oOVSBa/gXs7aW3mLpw7s="; + }; + }; v216 = buildECTesterStandalone { - libressl = { version="2.1.6"; hash="sha256-T4Jt2Xs7gAFwcHO96EAUk/nNRmhGW0gcBC0o45c2U6g="; }; - }; + libressl = { + version = "2.1.6"; + hash = "sha256-T4Jt2Xs7gAFwcHO96EAUk/nNRmhGW0gcBC0o45c2U6g="; + }; + }; v217 = buildECTesterStandalone { - libressl = { version="2.1.7"; hash="sha256-HcS/wD++FHMnBCkdbZy3o8xwV1lXyVin4taGkI6c248="; }; - }; + libressl = { + version = "2.1.7"; + hash = "sha256-HcS/wD++FHMnBCkdbZy3o8xwV1lXyVin4taGkI6c248="; + }; + }; v218 = buildECTesterStandalone { - libressl = { version="2.1.8"; hash="sha256-c1rkgktuqgyiqfwd1HEX9wCeMQ2ee8+e22a+Rb2EDbM="; }; - }; + libressl = { + version = "2.1.8"; + hash = "sha256-c1rkgktuqgyiqfwd1HEX9wCeMQ2ee8+e22a+Rb2EDbM="; + }; + }; v219 = buildECTesterStandalone { - libressl = { version="2.1.9"; hash="sha256-Ycva8umWMj5HMzRS7HHNbn8D7dToJQGo8Jy+KZk7654="; }; - }; + libressl = { + version = "2.1.9"; + hash = "sha256-Ycva8umWMj5HMzRS7HHNbn8D7dToJQGo8Jy+KZk7654="; + }; + }; v220 = buildECTesterStandalone { - libressl = { version="2.2.0"; hash="sha256-lpDY84pdSEJTlUUu6zBbBbsPVgzZbg7jDzcNTxZWMEA="; }; - }; + libressl = { + version = "2.2.0"; + hash = "sha256-lpDY84pdSEJTlUUu6zBbBbsPVgzZbg7jDzcNTxZWMEA="; + }; + }; v221 = buildECTesterStandalone { - libressl = { version="2.2.1"; hash="sha256-TzMXUKv8O2BbAu7KHomU+g0mKZhbw/YpJDeBl/v+Vy0="; }; - }; + libressl = { + version = "2.2.1"; + hash = "sha256-TzMXUKv8O2BbAu7KHomU+g0mKZhbw/YpJDeBl/v+Vy0="; + }; + }; v222 = buildECTesterStandalone { - libressl = { version="2.2.2"; hash="sha256-4JSwnzPUaFRe27KxbcF4+VjsL2beGi/HzCogvSSJoRQ="; }; - }; + libressl = { + version = "2.2.2"; + hash = "sha256-4JSwnzPUaFRe27KxbcF4+VjsL2beGi/HzCogvSSJoRQ="; + }; + }; v223 = buildECTesterStandalone { - libressl = { version="2.2.3"; hash="sha256-oczCGt+R1g6ZJGAxuZyTDJr14bG1phsb7Ie+728W2II="; }; - }; + libressl = { + version = "2.2.3"; + hash = "sha256-oczCGt+R1g6ZJGAxuZyTDJr14bG1phsb7Ie+728W2II="; + }; + }; v224 = buildECTesterStandalone { - libressl = { version="2.2.4"; hash="sha256-a0CYWb6GVK/DhiVJSU4JcBfmTI0WfxJYQ4NYYwbvmn4="; }; - }; + libressl = { + version = "2.2.4"; + hash = "sha256-a0CYWb6GVK/DhiVJSU4JcBfmTI0WfxJYQ4NYYwbvmn4="; + }; + }; v225 = buildECTesterStandalone { - libressl = { version="2.2.5"; hash="sha256-48re0EadjcZPTKL+jkma2k3QFOhNHFpxgY055U5skUs="; }; - }; + libressl = { + version = "2.2.5"; + hash = "sha256-48re0EadjcZPTKL+jkma2k3QFOhNHFpxgY055U5skUs="; + }; + }; v226 = buildECTesterStandalone { - libressl = { version="2.2.6"; hash="sha256-HuGZlM/9BH1A9juhSRFduhimgbDMkjvuwwG/QktY1k8="; }; - }; + libressl = { + version = "2.2.6"; + hash = "sha256-HuGZlM/9BH1A9juhSRFduhimgbDMkjvuwwG/QktY1k8="; + }; + }; v227 = buildECTesterStandalone { - libressl = { version="2.2.7"; hash="sha256-fixos4O7qO+33OXqHsz9p3BIVH0dKnNVwHLv18zYk80="; }; - }; + libressl = { + version = "2.2.7"; + hash = "sha256-fixos4O7qO+33OXqHsz9p3BIVH0dKnNVwHLv18zYk80="; + }; + }; v228 = buildECTesterStandalone { - libressl = { version="2.2.8"; hash="sha256-0QUUd9vF3DbxSLU6qVnD4qCqpZROsEyJ3VSSVIJfuws="; }; - }; + libressl = { + version = "2.2.8"; + hash = "sha256-0QUUd9vF3DbxSLU6qVnD4qCqpZROsEyJ3VSSVIJfuws="; + }; + }; v229 = buildECTesterStandalone { - libressl = { version="2.2.9"; hash="sha256-cQ/zd+qDY3I51QEPTSYfX5HH/c6Ro4l0FJrNA+RcTEQ="; }; - }; + libressl = { + version = "2.2.9"; + hash = "sha256-cQ/zd+qDY3I51QEPTSYfX5HH/c6Ro4l0FJrNA+RcTEQ="; + }; + }; v230 = buildECTesterStandalone { - libressl = { version="2.3.0"; hash="sha256-BFFJjZmcz/R1Im9c+uB6N1SnsoxQfGvaAH4xb8kNkqA="; }; - }; + libressl = { + version = "2.3.0"; + hash = "sha256-BFFJjZmcz/R1Im9c+uB6N1SnsoxQfGvaAH4xb8kNkqA="; + }; + }; v231 = buildECTesterStandalone { - libressl = { version="2.3.1"; hash="sha256-QQtY2067yrQ8M1dhLlkQlPZPuTOSacqi5oco42+NWJ4="; }; - }; + libressl = { + version = "2.3.1"; + hash = "sha256-QQtY2067yrQ8M1dhLlkQlPZPuTOSacqi5oco42+NWJ4="; + }; + }; v2310 = buildECTesterStandalone { - libressl = { version="2.3.10"; hash="sha256-LQtareDF7TGjwZT61fjdcc3SGLcCBTQnOdJKYlpUxNM="; }; - }; + libressl = { + version = "2.3.10"; + hash = "sha256-LQtareDF7TGjwZT61fjdcc3SGLcCBTQnOdJKYlpUxNM="; + }; + }; v232 = buildECTesterStandalone { - libressl = { version="2.3.2"; hash="sha256-gPRfrkhZ8WGxmAythG1CF0F9DIkAatKcDqjIjaVkqWo="; }; - }; + libressl = { + version = "2.3.2"; + hash = "sha256-gPRfrkhZ8WGxmAythG1CF0F9DIkAatKcDqjIjaVkqWo="; + }; + }; v233 = buildECTesterStandalone { - libressl = { version="2.3.3"; hash="sha256-dnMxZhh8yFh+Dr4eg5Ze8lcmKhpnajaAbt07bVG1Cqk="; }; - }; + libressl = { + version = "2.3.3"; + hash = "sha256-dnMxZhh8yFh+Dr4eg5Ze8lcmKhpnajaAbt07bVG1Cqk="; + }; + }; v234 = buildECTesterStandalone { - libressl = { version="2.3.4"; hash="sha256-ehE1smIPeJKOiVOMIRpN8dlBWZQAHR58kXjGttct5qk="; }; - }; + libressl = { + version = "2.3.4"; + hash = "sha256-ehE1smIPeJKOiVOMIRpN8dlBWZQAHR58kXjGttct5qk="; + }; + }; v235 = buildECTesterStandalone { - libressl = { version="2.3.5"; hash="sha256-9CUnXOfevMcoLJ3LRr1u67r0GsYBNuL9Mtj9YL6LdTs="; }; - }; + libressl = { + version = "2.3.5"; + hash = "sha256-9CUnXOfevMcoLJ3LRr1u67r0GsYBNuL9Mtj9YL6LdTs="; + }; + }; v236 = buildECTesterStandalone { - libressl = { version="2.3.6"; hash="sha256-NYpHeeaBO9BvB9sM8PD+UxQB7Qxu2ViXPUBEFsPVN/o="; }; - }; + libressl = { + version = "2.3.6"; + hash = "sha256-NYpHeeaBO9BvB9sM8PD+UxQB7Qxu2ViXPUBEFsPVN/o="; + }; + }; v237 = buildECTesterStandalone { - libressl = { version="2.3.7"; hash="sha256-9Z9dhZzkhnzEdhoT0CAk9plJHid9VKn+duBT5bX3CGA="; }; - }; + libressl = { + version = "2.3.7"; + hash = "sha256-9Z9dhZzkhnzEdhoT0CAk9plJHid9VKn+duBT5bX3CGA="; + }; + }; v238 = buildECTesterStandalone { - libressl = { version="2.3.8"; hash="sha256-rmqk7Sx9IBMQ/vGEMQqFyIoxVQb2M+k/zequwNWlT8I="; }; - }; + libressl = { + version = "2.3.8"; + hash = "sha256-rmqk7Sx9IBMQ/vGEMQqFyIoxVQb2M+k/zequwNWlT8I="; + }; + }; v239 = buildECTesterStandalone { - libressl = { version="2.3.9"; hash="sha256-pv8TZk6xOvbboAJZz7VaMGsyt2iP7vUgpS/A9guBlvw="; }; - }; + libressl = { + version = "2.3.9"; + hash = "sha256-pv8TZk6xOvbboAJZz7VaMGsyt2iP7vUgpS/A9guBlvw="; + }; + }; v240 = buildECTesterStandalone { - libressl = { version="2.4.0"; hash="sha256-fmAAz7lDj7/H/n/gVyr1h+Lyo2u9uVQI6YdHWNDDOC4="; }; - }; + libressl = { + version = "2.4.0"; + hash = "sha256-fmAAz7lDj7/H/n/gVyr1h+Lyo2u9uVQI6YdHWNDDOC4="; + }; + }; v241 = buildECTesterStandalone { - libressl = { version="2.4.1"; hash="sha256-EhkisTFpzUeoXj538LwSn40EJHGTtCSRyx+rkHToBHc="; }; - }; + libressl = { + version = "2.4.1"; + hash = "sha256-EhkisTFpzUeoXj538LwSn40EJHGTtCSRyx+rkHToBHc="; + }; + }; v242 = buildECTesterStandalone { - libressl = { version="2.4.2"; hash="sha256-X4fXeOXWKCLWDjj6liHBxWSPxVnRmLoxS9nYnL9n2eM="; }; - }; + libressl = { + version = "2.4.2"; + hash = "sha256-X4fXeOXWKCLWDjj6liHBxWSPxVnRmLoxS9nYnL9n2eM="; + }; + }; v243 = buildECTesterStandalone { - libressl = { version="2.4.3"; hash="sha256-vVcm8+JH56fTDOaZRtF0uPuS2ZnSJxDGXxdslpgSlg4="; }; - }; + libressl = { + version = "2.4.3"; + hash = "sha256-vVcm8+JH56fTDOaZRtF0uPuS2ZnSJxDGXxdslpgSlg4="; + }; + }; v244 = buildECTesterStandalone { - libressl = { version="2.4.4"; hash="sha256-b8+vaTRzPqHcsvak1FnZYA4vSIeT5Rwtr0m3BRjuv9E="; }; - }; + libressl = { + version = "2.4.4"; + hash = "sha256-b8+vaTRzPqHcsvak1FnZYA4vSIeT5Rwtr0m3BRjuv9E="; + }; + }; v245 = buildECTesterStandalone { - libressl = { version="2.4.5"; hash="sha256-0wDE41iu6VGvbf0WhO8MA0dYtHFxVEIw88z2ziT+Q0c="; }; - }; + libressl = { + version = "2.4.5"; + hash = "sha256-0wDE41iu6VGvbf0WhO8MA0dYtHFxVEIw88z2ziT+Q0c="; + }; + }; v250 = buildECTesterStandalone { - libressl = { version="2.5.0"; hash="sha256-hlK/a1WrUfs3toaj9gSiZD4Oj94sVuapNgJ9Eq/abq4="; }; - }; + libressl = { + version = "2.5.0"; + hash = "sha256-hlK/a1WrUfs3toaj9gSiZD4Oj94sVuapNgJ9Eq/abq4="; + }; + }; v251 = buildECTesterStandalone { - libressl = { version="2.5.1"; hash="sha256-9xrgqCS3j7Gkf/ojycJunZbFybKSNOrO3Oa0x3QCh80="; }; - }; + libressl = { + version = "2.5.1"; + hash = "sha256-9xrgqCS3j7Gkf/ojycJunZbFybKSNOrO3Oa0x3QCh80="; + }; + }; v252 = buildECTesterStandalone { - libressl = { version="2.5.2"; hash="sha256-D/p9cICShKSslullkYphwdeTC8qGVFen2w/wr8ggHII="; }; - }; + libressl = { + version = "2.5.2"; + hash = "sha256-D/p9cICShKSslullkYphwdeTC8qGVFen2w/wr8ggHII="; + }; + }; v253 = buildECTesterStandalone { - libressl = { version="2.5.3"; hash="sha256-FONMxYbsTOV2P3YEbc82bEUQSyzHHXe2O+VQVgjmijA="; }; - }; + libressl = { + version = "2.5.3"; + hash = "sha256-FONMxYbsTOV2P3YEbc82bEUQSyzHHXe2O+VQVgjmijA="; + }; + }; v254 = buildECTesterStandalone { - libressl = { version="2.5.4"; hash="sha256-EHpbUi+7gxjUw75mgHXl5gcpbwqSVdcWdMqpRXEzbvo="; }; - }; + libressl = { + version = "2.5.4"; + hash = "sha256-EHpbUi+7gxjUw75mgHXl5gcpbwqSVdcWdMqpRXEzbvo="; + }; + }; v255 = buildECTesterStandalone { - libressl = { version="2.5.5"; hash="sha256-5X9ePVhCqB/pNRtugX/K8KdJyk7zWpFGXtup4HHc58Q="; }; - }; + libressl = { + version = "2.5.5"; + hash = "sha256-5X9ePVhCqB/pNRtugX/K8KdJyk7zWpFGXtup4HHc58Q="; + }; + }; v260 = buildECTesterStandalone { - libressl = { version="2.6.0"; hash="sha256-5I1VdHRXF5JpkADDKul9zvNCB9E+2T5BJvIT1dy+ilM="; }; - }; + libressl = { + version = "2.6.0"; + hash = "sha256-5I1VdHRXF5JpkADDKul9zvNCB9E+2T5BJvIT1dy+ilM="; + }; + }; v261 = buildECTesterStandalone { - libressl = { version="2.6.1"; hash="sha256-wpOztfH8HWNJwBnDkFNV1XffMnNLYx1+ZWUDiU4JEn4="; }; - }; + libressl = { + version = "2.6.1"; + hash = "sha256-wpOztfH8HWNJwBnDkFNV1XffMnNLYx1+ZWUDiU4JEn4="; + }; + }; v262 = buildECTesterStandalone { - libressl = { version="2.6.2"; hash="sha256-sCnSSStyqbpbX82fPWAsn9C6oIeRLyquzCj1L1Z+xHg="; }; - }; + libressl = { + version = "2.6.2"; + hash = "sha256-sCnSSStyqbpbX82fPWAsn9C6oIeRLyquzCj1L1Z+xHg="; + }; + }; v263 = buildECTesterStandalone { - libressl = { version="2.6.3"; hash="sha256-rq1lmCYxcblpcNoNiB5hbQgTtps169xZkfh/8up/XJg="; }; - }; + libressl = { + version = "2.6.3"; + hash = "sha256-rq1lmCYxcblpcNoNiB5hbQgTtps169xZkfh/8up/XJg="; + }; + }; v264 = buildECTesterStandalone { - libressl = { version="2.6.4"; hash="sha256-Y4ogwvnpnuKDqEHNeHq02EbRiA4YDE6WkE/DJ9QZ0R8="; }; - }; + libressl = { + version = "2.6.4"; + hash = "sha256-Y4ogwvnpnuKDqEHNeHq02EbRiA4YDE6WkE/DJ9QZ0R8="; + }; + }; v265 = buildECTesterStandalone { - libressl = { version="2.6.5"; hash="sha256-hZ7fxxAZ0nxEj+FI5nmv3ZcqC6qRsh8CsrL1+KhN3So="; }; - }; + libressl = { + version = "2.6.5"; + hash = "sha256-hZ7fxxAZ0nxEj+FI5nmv3ZcqC6qRsh8CsrL1+KhN3So="; + }; + }; v270 = buildECTesterStandalone { - libressl = { version="2.7.0"; hash="sha256-UM5tb4jepzo+/KYrCp5sp1KSve5skpPv1qdxz9soze4="; }; - }; + libressl = { + version = "2.7.0"; + hash = "sha256-UM5tb4jepzo+/KYrCp5sp1KSve5skpPv1qdxz9soze4="; + }; + }; v271 = buildECTesterStandalone { - libressl = { version="2.7.1"; hash="sha256-k3UH4ja6c3Csq6aJREUV1Oj0KRNvTn42IwgzktlrcHA="; }; - }; + libressl = { + version = "2.7.1"; + hash = "sha256-k3UH4ja6c3Csq6aJREUV1Oj0KRNvTn42IwgzktlrcHA="; + }; + }; v272 = buildECTesterStandalone { - libressl = { version="2.7.2"; hash="sha256-kXqHecNCF3/zdRor+VXQJi0diRaktAiTDEXO8yZwCZU="; }; - }; + libressl = { + version = "2.7.2"; + hash = "sha256-kXqHecNCF3/zdRor+VXQJi0diRaktAiTDEXO8yZwCZU="; + }; + }; v273 = buildECTesterStandalone { - libressl = { version="2.7.3"; hash="sha256-FscNj+Hebpvt6g1ngEtV84lHF2k6Be1F4V4OL5OcJ5U="; }; - }; + libressl = { + version = "2.7.3"; + hash = "sha256-FscNj+Hebpvt6g1ngEtV84lHF2k6Be1F4V4OL5OcJ5U="; + }; + }; v274 = buildECTesterStandalone { - libressl = { version="2.7.4"; hash="sha256-HjqfraBsHAYAEUcK0P+WDeKPmgUVJ31zNvfgk2JRfaY="; }; - }; + libressl = { + version = "2.7.4"; + hash = "sha256-HjqfraBsHAYAEUcK0P+WDeKPmgUVJ31zNvfgk2JRfaY="; + }; + }; v275 = buildECTesterStandalone { - libressl = { version="2.7.5"; hash="sha256-vuUDjYXvAWCkK5CWs1Fg6fee9dKb9MtbOEGceTpbwEA="; }; - }; + libressl = { + version = "2.7.5"; + hash = "sha256-vuUDjYXvAWCkK5CWs1Fg6fee9dKb9MtbOEGceTpbwEA="; + }; + }; v280 = buildECTesterStandalone { - libressl = { version="2.8.0"; hash="sha256-ryu6llsGBjUY7sbxktQRYx3+HQdxN2DGfDwp00h4ncM="; }; - }; + libressl = { + version = "2.8.0"; + hash = "sha256-ryu6llsGBjUY7sbxktQRYx3+HQdxN2DGfDwp00h4ncM="; + }; + }; v281 = buildECTesterStandalone { - libressl = { version="2.8.1"; hash="sha256-M0v3BQ8dtAh/7rswVx7BPZ+pdb8F1gA846ttfSRSz0I="; }; - }; + libressl = { + version = "2.8.1"; + hash = "sha256-M0v3BQ8dtAh/7rswVx7BPZ+pdb8F1gA846ttfSRSz0I="; + }; + }; v282 = buildECTesterStandalone { - libressl = { version="2.8.2"; hash="sha256-uMsx5Z8SlFV7/IDypmKWm8Bk6DAGzu8FdOJVOhwlT9U="; }; - }; + libressl = { + version = "2.8.2"; + hash = "sha256-uMsx5Z8SlFV7/IDypmKWm8Bk6DAGzu8FdOJVOhwlT9U="; + }; + }; v283 = buildECTesterStandalone { - libressl = { version="2.8.3"; hash="sha256-m2QLEwRxgnYamc4+TwAL6Wh1ZuCCi0pycJ6eaj75hHc="; }; - }; + libressl = { + version = "2.8.3"; + hash = "sha256-m2QLEwRxgnYamc4+TwAL6Wh1ZuCCi0pycJ6eaj75hHc="; + }; + }; v290 = buildECTesterStandalone { - libressl = { version="2.9.0"; hash="sha256-618phAi3I/EaDKAZLBIuy3m0hVv99+6hg6YmQpahPPQ="; }; - }; + libressl = { + version = "2.9.0"; + hash = "sha256-618phAi3I/EaDKAZLBIuy3m0hVv99+6hg6YmQpahPPQ="; + }; + }; v291 = buildECTesterStandalone { - libressl = { version="2.9.1"; hash="sha256-OeTdhWaU3BDVZCAeRUnEbSQxYBorEPNCJQfiTMyPYvg="; }; - }; + libressl = { + version = "2.9.1"; + hash = "sha256-OeTdhWaU3BDVZCAeRUnEbSQxYBorEPNCJQfiTMyPYvg="; + }; + }; v292 = buildECTesterStandalone { - libressl = { version="2.9.2"; hash="sha256-xMeBZ/rjJbR669i+tUtgQdb2pWs3Q/S9XXmxVkL51dQ="; }; - }; + libressl = { + version = "2.9.2"; + hash = "sha256-xMeBZ/rjJbR669i+tUtgQdb2pWs3Q/S9XXmxVkL51dQ="; + }; + }; v300 = buildECTesterStandalone { - libressl = { version="3.0.0"; hash="sha256-AdkQBFfTc5R9MWSnPMKFQ4uxL+KKsGXL4oNa1k3MPHY="; }; - }; + libressl = { + version = "3.0.0"; + hash = "sha256-AdkQBFfTc5R9MWSnPMKFQ4uxL+KKsGXL4oNa1k3MPHY="; + }; + }; v301 = buildECTesterStandalone { - libressl = { version="3.0.1"; hash="sha256-ZGrbEZf746dULxiEPStK34V7d+ULuHi1j0593ltzQ8s="; }; - }; + libressl = { + version = "3.0.1"; + hash = "sha256-ZGrbEZf746dULxiEPStK34V7d+ULuHi1j0593ltzQ8s="; + }; + }; v302 = buildECTesterStandalone { - libressl = { version="3.0.2"; hash="sha256-33sXK/eblX3SfvNtyqH7FiViwOiZnhlKqMGj3y8VOY4="; }; - }; + libressl = { + version = "3.0.2"; + hash = "sha256-33sXK/eblX3SfvNtyqH7FiViwOiZnhlKqMGj3y8VOY4="; + }; + }; v310 = buildECTesterStandalone { - libressl = { version="3.1.0"; hash="sha256-+RqtDI+5y8Z8kQrW3P+0AagZtP0SIAfqf5eGONsETPY="; }; - }; + libressl = { + version = "3.1.0"; + hash = "sha256-+RqtDI+5y8Z8kQrW3P+0AagZtP0SIAfqf5eGONsETPY="; + }; + }; v311 = buildECTesterStandalone { - libressl = { version="3.1.1"; hash="sha256-vcbOXrs6Lq/ExHX37qpfCo5g2b6tAe+3bi4lQkK22wA="; }; - }; + libressl = { + version = "3.1.1"; + hash = "sha256-vcbOXrs6Lq/ExHX37qpfCo5g2b6tAe+3bi4lQkK22wA="; + }; + }; v312 = buildECTesterStandalone { - libressl = { version="3.1.2"; hash="sha256-+IovfqYXFJo05AwCLZkSlj8A6qYQmvQhMXUl5sl42JI="; }; - }; + libressl = { + version = "3.1.2"; + hash = "sha256-+IovfqYXFJo05AwCLZkSlj8A6qYQmvQhMXUl5sl42JI="; + }; + }; v313 = buildECTesterStandalone { - libressl = { version="3.1.3"; hash="sha256-x2sDFqz2Euy2L1ywFKINlypmO9nkCr+VKobzuZi2n6A="; }; - }; + libressl = { + version = "3.1.3"; + hash = "sha256-x2sDFqz2Euy2L1ywFKINlypmO9nkCr+VKobzuZi2n6A="; + }; + }; v314 = buildECTesterStandalone { - libressl = { version="3.1.4"; hash="sha256-QUwUnJljmD+AWggdtb067BRrX4LVKbtjh1rJQbJdy7Y="; }; - }; + libressl = { + version = "3.1.4"; + hash = "sha256-QUwUnJljmD+AWggdtb067BRrX4LVKbtjh1rJQbJdy7Y="; + }; + }; v315 = buildECTesterStandalone { - libressl = { version="3.1.5"; hash="sha256-LBPdzsUIHA57p/k9g3CpGREXMJDxkiAH4dkN4nRQBJQ="; }; - }; + libressl = { + version = "3.1.5"; + hash = "sha256-LBPdzsUIHA57p/k9g3CpGREXMJDxkiAH4dkN4nRQBJQ="; + }; + }; v320 = buildECTesterStandalone { - libressl = { version="3.2.0"; hash="sha256-R70utLRQPkfALvp+Z9L82Vx+rGvJ0Gs0OhtHBXk+0dU="; }; - }; + libressl = { + version = "3.2.0"; + hash = "sha256-R70utLRQPkfALvp+Z9L82Vx+rGvJ0Gs0OhtHBXk+0dU="; + }; + }; v321 = buildECTesterStandalone { - libressl = { version="3.2.1"; hash="sha256-0o2yJM+20YAJsqfoyyE81clDu+yHVQBi/vajhHklAxU="; }; - }; + libressl = { + version = "3.2.1"; + hash = "sha256-0o2yJM+20YAJsqfoyyE81clDu+yHVQBi/vajhHklAxU="; + }; + }; v322 = buildECTesterStandalone { - libressl = { version="3.2.2"; hash="sha256-qdHh0DC4vMZ79kKLjA//FKVgLiI2JXuePXesrxLip6E="; }; - }; + libressl = { + version = "3.2.2"; + hash = "sha256-qdHh0DC4vMZ79kKLjA//FKVgLiI2JXuePXesrxLip6E="; + }; + }; v323 = buildECTesterStandalone { - libressl = { version="3.2.3"; hash="sha256-QS3Cuqc5Iox3eek+sHzWRdXJZNLy2Dep/VbbdJhGPXM="; }; - }; + libressl = { + version = "3.2.3"; + hash = "sha256-QS3Cuqc5Iox3eek+sHzWRdXJZNLy2Dep/VbbdJhGPXM="; + }; + }; v324 = buildECTesterStandalone { - libressl = { version="3.2.4"; hash="sha256-rB27ngWmSRCFZZmxrGERj97Bs9DHAOQkRNgcDV9Qelo="; }; - }; + libressl = { + version = "3.2.4"; + hash = "sha256-rB27ngWmSRCFZZmxrGERj97Bs9DHAOQkRNgcDV9Qelo="; + }; + }; v325 = buildECTesterStandalone { - libressl = { version="3.2.5"; hash="sha256-eYpl/WHTheCdVZgQzfpGUS+N71kZJkz+8kGnsIbOfP4="; }; - }; + libressl = { + version = "3.2.5"; + hash = "sha256-eYpl/WHTheCdVZgQzfpGUS+N71kZJkz+8kGnsIbOfP4="; + }; + }; v326 = buildECTesterStandalone { - libressl = { version="3.2.6"; hash="sha256-sENkBSDS7sVr0WrmOc5TAX7srMPYY4i1T4OKVI3jMls="; }; - }; + libressl = { + version = "3.2.6"; + hash = "sha256-sENkBSDS7sVr0WrmOc5TAX7srMPYY4i1T4OKVI3jMls="; + }; + }; v327 = buildECTesterStandalone { - libressl = { version="3.2.7"; hash="sha256-fDL/A3WXzkccfP2dy4RxzaOgKYOuujMVBZNizrOTS4Q="; }; - }; + libressl = { + version = "3.2.7"; + hash = "sha256-fDL/A3WXzkccfP2dy4RxzaOgKYOuujMVBZNizrOTS4Q="; + }; + }; v330 = buildECTesterStandalone { - libressl = { version="3.3.0"; hash="sha256-cope3GPMtBjpFmvtEdS0PpYp/xxNQqObZJNHogQW+tY="; }; - }; + libressl = { + version = "3.3.0"; + hash = "sha256-cope3GPMtBjpFmvtEdS0PpYp/xxNQqObZJNHogQW+tY="; + }; + }; v331 = buildECTesterStandalone { - libressl = { version="3.3.1"; hash="sha256-ptMxhl4BZKE6yFoijlJRf3z4+EiPL5XzTnhXMC+Xz9s="; }; - }; + libressl = { + version = "3.3.1"; + hash = "sha256-ptMxhl4BZKE6yFoijlJRf3z4+EiPL5XzTnhXMC+Xz9s="; + }; + }; v332 = buildECTesterStandalone { - libressl = { version="3.3.2"; hash="sha256-hDQKxXDz7o6RBp3DoKzXpvbur8BZTZXzrhA0xdvCFlQ="; }; - }; + libressl = { + version = "3.3.2"; + hash = "sha256-hDQKxXDz7o6RBp3DoKzXpvbur8BZTZXzrhA0xdvCFlQ="; + }; + }; v333 = buildECTesterStandalone { - libressl = { version="3.3.3"; hash="sha256-pHFWWzbM0acNC9fTfG6VxDompigptIfZ0s3r/li+MGY="; }; - }; + libressl = { + version = "3.3.3"; + hash = "sha256-pHFWWzbM0acNC9fTfG6VxDompigptIfZ0s3r/li+MGY="; + }; + }; v334 = buildECTesterStandalone { - libressl = { version="3.3.4"; hash="sha256-vM52ej/tJSv9EhD4p+NQWitU0wCPZuQ9m5Xj8wwHKTE="; }; - }; + libressl = { + version = "3.3.4"; + hash = "sha256-vM52ej/tJSv9EhD4p+NQWitU0wCPZuQ9m5Xj8wwHKTE="; + }; + }; v335 = buildECTesterStandalone { - libressl = { version="3.3.5"; hash="sha256-ClE5Pw3xzyfgcAVKJ4ik0HMznzY9ec1ZQHahtMSL6aU="; }; - }; + libressl = { + version = "3.3.5"; + hash = "sha256-ClE5Pw3xzyfgcAVKJ4ik0HMznzY9ec1ZQHahtMSL6aU="; + }; + }; v336 = buildECTesterStandalone { - libressl = { version="3.3.6"; hash="sha256-PyiEk2XhGQ2yuvkBT/loYBLCWxym34s6CF94niT+S5o="; }; - }; + libressl = { + version = "3.3.6"; + hash = "sha256-PyiEk2XhGQ2yuvkBT/loYBLCWxym34s6CF94niT+S5o="; + }; + }; v340 = buildECTesterStandalone { - libressl = { version="3.4.0"; hash="sha256-5S6udY1AIGpx12OhqHtxA3IjvxmGrCOaa+Gm0qw5FtI="; }; - }; + libressl = { + version = "3.4.0"; + hash = "sha256-5S6udY1AIGpx12OhqHtxA3IjvxmGrCOaa+Gm0qw5FtI="; + }; + }; v341 = buildECTesterStandalone { - libressl = { version="3.4.1"; hash="sha256-EHzq5sqADoHLVjWEwWr6NtbHE4+t6UorPp2mVFb3xhw="; }; - }; + libressl = { + version = "3.4.1"; + hash = "sha256-EHzq5sqADoHLVjWEwWr6NtbHE4+t6UorPp2mVFb3xhw="; + }; + }; v342 = buildECTesterStandalone { - libressl = { version="3.4.2"; hash="sha256-y4LKfVRzNpFzUvvSPbL8SDxsRNNRV7MngCFOx0GXs84="; }; - }; + libressl = { + version = "3.4.2"; + hash = "sha256-y4LKfVRzNpFzUvvSPbL8SDxsRNNRV7MngCFOx0GXs84="; + }; + }; v343 = buildECTesterStandalone { - libressl = { version="3.4.3"; hash="sha256-/4i//jVIGLPM9UXjyv5FTFAxx6dyFwdPUzJx1jw38I0="; }; - }; + libressl = { + version = "3.4.3"; + hash = "sha256-/4i//jVIGLPM9UXjyv5FTFAxx6dyFwdPUzJx1jw38I0="; + }; + }; v350 = buildECTesterStandalone { - libressl = { version="3.5.0"; hash="sha256-8B1PdhkVWBWKBq+9wkBf79WwJUChl6slRshA4GpcD7c="; }; - }; + libressl = { + version = "3.5.0"; + hash = "sha256-8B1PdhkVWBWKBq+9wkBf79WwJUChl6slRshA4GpcD7c="; + }; + }; v351 = buildECTesterStandalone { - libressl = { version="3.5.1"; hash="sha256-p9ACb2diInXsj4I53tQiplPVzMhN9V3qKs1AYBcYVgg="; }; - }; + libressl = { + version = "3.5.1"; + hash = "sha256-p9ACb2diInXsj4I53tQiplPVzMhN9V3qKs1AYBcYVgg="; + }; + }; v352 = buildECTesterStandalone { - libressl = { version="3.5.2"; hash="sha256-Vv6rjiHD+mVJ+LfXURZYuOmFGBYoOKeVMUcyZUrfPl8="; }; - }; + libressl = { + version = "3.5.2"; + hash = "sha256-Vv6rjiHD+mVJ+LfXURZYuOmFGBYoOKeVMUcyZUrfPl8="; + }; + }; v353 = buildECTesterStandalone { - libressl = { version="3.5.3"; hash="sha256-OrXl6u9pziDGsXDuZNeFtCI19I8uYrCV/KXXtmcriyg="; }; - }; + libressl = { + version = "3.5.3"; + hash = "sha256-OrXl6u9pziDGsXDuZNeFtCI19I8uYrCV/KXXtmcriyg="; + }; + }; v354 = buildECTesterStandalone { - libressl = { version="3.5.4"; hash="sha256-A3naE0Si9xrUpOO+MO+dgu7N3Of43CrmZjGh3+FDQ6w="; }; - }; + libressl = { + version = "3.5.4"; + hash = "sha256-A3naE0Si9xrUpOO+MO+dgu7N3Of43CrmZjGh3+FDQ6w="; + }; + }; v360 = buildECTesterStandalone { - libressl = { version="3.6.0"; hash="sha256-GxLe/Lvb2+2oaSnkIQAK8PQjM63UgX/SbA2aGuxHhAQ="; }; - }; + libressl = { + version = "3.6.0"; + hash = "sha256-GxLe/Lvb2+2oaSnkIQAK8PQjM63UgX/SbA2aGuxHhAQ="; + }; + }; v361 = buildECTesterStandalone { - libressl = { version="3.6.1"; hash="sha256-rPrGExbpO5GcKNYtUwN8pzTehcRrTXA/Gf2Dlc8AZ3Q="; }; - }; + libressl = { + version = "3.6.1"; + hash = "sha256-rPrGExbpO5GcKNYtUwN8pzTehcRrTXA/Gf2Dlc8AZ3Q="; + }; + }; v362 = buildECTesterStandalone { - libressl = { version="3.6.2"; hash="sha256-S+gP/wc3Rs9QtKjlur4nlayumMaxMqngJRm0Rd+/0DM="; }; - }; + libressl = { + version = "3.6.2"; + hash = "sha256-S+gP/wc3Rs9QtKjlur4nlayumMaxMqngJRm0Rd+/0DM="; + }; + }; v363 = buildECTesterStandalone { - libressl = { version="3.6.3"; hash="sha256-h7G7426e7I0K5fBMg9NrLFsOWBeEx+sIFwJe0p6t6jc="; }; - }; + libressl = { + version = "3.6.3"; + hash = "sha256-h7G7426e7I0K5fBMg9NrLFsOWBeEx+sIFwJe0p6t6jc="; + }; + }; v370 = buildECTesterStandalone { - libressl = { version="3.7.0"; hash="sha256-P8EpD0AH7HX26azsuyVRJjDRuauMU7p5hE45WGjD4AY="; }; - }; + libressl = { + version = "3.7.0"; + hash = "sha256-P8EpD0AH7HX26azsuyVRJjDRuauMU7p5hE45WGjD4AY="; + }; + }; v371 = buildECTesterStandalone { - libressl = { version="3.7.1"; hash="sha256-mAhpYaK4tlftD+owVvstsUKUtr+hk8FaUjago1yEPe0="; }; - }; + libressl = { + version = "3.7.1"; + hash = "sha256-mAhpYaK4tlftD+owVvstsUKUtr+hk8FaUjago1yEPe0="; + }; + }; v372 = buildECTesterStandalone { - libressl = { version="3.7.2"; hash="sha256-sGqlOP78nGszxNtJMaCaX1LZ0jVyGa/L/32T/hLr9vc="; }; - }; + libressl = { + version = "3.7.2"; + hash = "sha256-sGqlOP78nGszxNtJMaCaX1LZ0jVyGa/L/32T/hLr9vc="; + }; + }; v373 = buildECTesterStandalone { - libressl = { version="3.7.3"; hash="sha256-eUjIVqkMglvXJotvhWdKjc0lS65C4iF4GyTj+NwzXbM="; }; - }; + libressl = { + version = "3.7.3"; + hash = "sha256-eUjIVqkMglvXJotvhWdKjc0lS65C4iF4GyTj+NwzXbM="; + }; + }; v380 = buildECTesterStandalone { - libressl = { version="3.8.0"; hash="sha256-ElMcHsgIxcar6zEYmWZLDP7QTUZI9FbclZu5PF8hrKw="; }; - }; + libressl = { + version = "3.8.0"; + hash = "sha256-ElMcHsgIxcar6zEYmWZLDP7QTUZI9FbclZu5PF8hrKw="; + }; + }; v381 = buildECTesterStandalone { - libressl = { version="3.8.1"; hash="sha256-wpvW2VInRnc8ueQSbVqaLDXqVQX2/Um2eRc/K0blc3I="; }; - }; + libressl = { + version = "3.8.1"; + hash = "sha256-wpvW2VInRnc8ueQSbVqaLDXqVQX2/Um2eRc/K0blc3I="; + }; + }; v382 = buildECTesterStandalone { - libressl = { version="3.8.2"; hash="sha256-bUuNW7slofgzZjnlbsUIgFLUOpUlZpeoXEzpEyPCWVQ="; }; - }; + libressl = { + version = "3.8.2"; + hash = "sha256-bUuNW7slofgzZjnlbsUIgFLUOpUlZpeoXEzpEyPCWVQ="; + }; + }; v383 = buildECTesterStandalone { - libressl = { version="3.8.3"; hash="sha256-pl9A4+9uPJRRyDGObyxFTDZ+Z/CcDN4YSXMaTW7McnI="; }; - }; + libressl = { + version = "3.8.3"; + hash = "sha256-pl9A4+9uPJRRyDGObyxFTDZ+Z/CcDN4YSXMaTW7McnI="; + }; + }; v384 = buildECTesterStandalone { - libressl = { version="3.8.4"; hash="sha256-wM75z+F0rDZs5IL1Qv3bB3Ief6DK+s40tJqHIPo3/n0="; }; - }; + libressl = { + version = "3.8.4"; + hash = "sha256-wM75z+F0rDZs5IL1Qv3bB3Ief6DK+s40tJqHIPo3/n0="; + }; + }; v390 = buildECTesterStandalone { - libressl = { version="3.9.0"; hash="sha256-HMIyQYSY3jBebVy4DJShZBXAHcs82Y8ujDoiAgkaNCA="; }; - }; + libressl = { + version = "3.9.0"; + hash = "sha256-HMIyQYSY3jBebVy4DJShZBXAHcs82Y8ujDoiAgkaNCA="; + }; + }; v391 = buildECTesterStandalone { - libressl = { version="3.9.1"; hash="sha256-baC5VGlffuYrA/ZCAKik8Cr5Nxe2DM4Eq2yN8mLAelE="; }; - }; + libressl = { + version = "3.9.1"; + hash = "sha256-baC5VGlffuYrA/ZCAKik8Cr5Nxe2DM4Eq2yN8mLAelE="; + }; + }; v392 = buildECTesterStandalone { - libressl = { version="3.9.2"; hash="sha256-ewMdrGSlnrbuMwT3/7ddrTOrjJ0nnIR/ksifuEYGj5c="; }; - }; + libressl = { + version = "3.9.2"; + hash = "sha256-ewMdrGSlnrbuMwT3/7ddrTOrjJ0nnIR/ksifuEYGj5c="; + }; + }; } diff --git a/nix/libresslshim.nix b/nix/libresslshim.nix index 97bc3d9..9d23f4b 100644 --- a/nix/libresslshim.nix +++ b/nix/libresslshim.nix @@ -1,8 +1,6 @@ -{ - pkgs - , libressl -}: -with pkgs; stdenv.mkDerivation rec { +{ pkgs, libressl }: +with pkgs; +stdenv.mkDerivation rec { name = "LibreSSLShim"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; diff --git a/nix/mbedtls_pkg_versions.nix b/nix/mbedtls_pkg_versions.nix index e429a4a..6877800 100644 --- a/nix/mbedtls_pkg_versions.nix +++ b/nix/mbedtls_pkg_versions.nix @@ -1,95 +1,183 @@ -{ - buildECTesterStandalone -}: +{ buildECTesterStandalone }: { v360 = buildECTesterStandalone { - mbedtls = { version="v3.6.0"; hash="sha256-yzGBkrqh+T/5GS66xL5zJstCmvcfG09TfxqA3F8UPJg="; }; + mbedtls = { + version = "v3.6.0"; + hash = "sha256-yzGBkrqh+T/5GS66xL5zJstCmvcfG09TfxqA3F8UPJg="; + }; }; v2288 = buildECTesterStandalone { - mbedtls = { version="v2.28.8"; hash="sha256-A1DYZrvJ8SRujroVwqPfcTOSgLnT5xRat/RVdq2fL/o="; }; + mbedtls = { + version = "v2.28.8"; + hash = "sha256-A1DYZrvJ8SRujroVwqPfcTOSgLnT5xRat/RVdq2fL/o="; + }; }; v352 = buildECTesterStandalone { - mbedtls = { version="v3.5.2"; hash="sha256-lVGmnSYccNmRS6vfF/fDiny5cYRPc/wJBpgciFLPUvM="; }; + mbedtls = { + version = "v3.5.2"; + hash = "sha256-lVGmnSYccNmRS6vfF/fDiny5cYRPc/wJBpgciFLPUvM="; + }; }; v2287 = buildECTesterStandalone { - mbedtls = { version="v2.28.7"; hash="sha256-JI0Frbz4HkPqrLQNrSIj1ikN8201h4kd1wTwyPotERw="; }; + mbedtls = { + version = "v2.28.7"; + hash = "sha256-JI0Frbz4HkPqrLQNrSIj1ikN8201h4kd1wTwyPotERw="; + }; }; v351 = buildECTesterStandalone { - mbedtls = { version="v3.5.1"; hash="sha256-HxsHcGbSExp1aG5yMR/J3kPL4zqnmNoN5T5wfV3APaw="; }; + mbedtls = { + version = "v3.5.1"; + hash = "sha256-HxsHcGbSExp1aG5yMR/J3kPL4zqnmNoN5T5wfV3APaw="; + }; }; v2286 = buildECTesterStandalone { - mbedtls = { version="v2.28.6"; hash="sha256-1YyA3O0/u7Tcf8rhNmrMGF64/tnitQH65THpXa7N7P8="; }; + mbedtls = { + version = "v2.28.6"; + hash = "sha256-1YyA3O0/u7Tcf8rhNmrMGF64/tnitQH65THpXa7N7P8="; + }; }; mbedtls-350 = buildECTesterStandalone { - mbedtls = { version="mbedtls-3.5.0"; hash="sha256-uHHQmaAmFS8Vd7PrAfRpK+aNi3pJ76XBC7rFWcd16NU="; }; + mbedtls = { + version = "mbedtls-3.5.0"; + hash = "sha256-uHHQmaAmFS8Vd7PrAfRpK+aNi3pJ76XBC7rFWcd16NU="; + }; }; mbedtls-2285 = buildECTesterStandalone { - mbedtls = { version="mbedtls-2.28.5"; hash="sha256-Gl4UQMSvAwYbOi2b/AUMz+zgkOl1o0UA2VveF/3ek8o="; }; + mbedtls = { + version = "mbedtls-2.28.5"; + hash = "sha256-Gl4UQMSvAwYbOi2b/AUMz+zgkOl1o0UA2VveF/3ek8o="; + }; }; v341 = buildECTesterStandalone { - mbedtls = { version="v3.4.1"; hash="sha256-NIjyRcVbg6lT6+RlTz5Jt6V9T85mvta5grOSLIAK9Ts="; }; + mbedtls = { + version = "v3.4.1"; + hash = "sha256-NIjyRcVbg6lT6+RlTz5Jt6V9T85mvta5grOSLIAK9Ts="; + }; }; v2284 = buildECTesterStandalone { - mbedtls = { version="v2.28.4"; hash="sha256-88Lnj9NgS5PWg2hydvb9cwi6s6BG3UMvkUH2Ny1jmtE="; }; + mbedtls = { + version = "v2.28.4"; + hash = "sha256-88Lnj9NgS5PWg2hydvb9cwi6s6BG3UMvkUH2Ny1jmtE="; + }; }; v340 = buildECTesterStandalone { - mbedtls = { version="v3.4.0"; hash="sha256-1YA4hp/VEjph5k0qJqhhH4nBbTP3Qu2pl7WpuvPkVfg="; }; + mbedtls = { + version = "v3.4.0"; + hash = "sha256-1YA4hp/VEjph5k0qJqhhH4nBbTP3Qu2pl7WpuvPkVfg="; + }; }; v2283 = buildECTesterStandalone { - mbedtls = { version="v2.28.3"; hash="sha256-w5bJErCNRZLE8rHcuZlK3bOqel97gPPMKH2cPGUR6Zw="; }; + mbedtls = { + version = "v2.28.3"; + hash = "sha256-w5bJErCNRZLE8rHcuZlK3bOqel97gPPMKH2cPGUR6Zw="; + }; }; v330 = buildECTesterStandalone { - mbedtls = { version="v3.3.0"; hash="sha256-yb5migP5Tcw99XHFzJkCct4f5R6ztxPR43VQcfTGRtE="; }; + mbedtls = { + version = "v3.3.0"; + hash = "sha256-yb5migP5Tcw99XHFzJkCct4f5R6ztxPR43VQcfTGRtE="; + }; }; v2282 = buildECTesterStandalone { - mbedtls = { version="v2.28.2"; hash="sha256-rbWvPrFoY31QyW/TbMndPXTzAJS6qT/bo6J0IL6jRvQ="; }; + mbedtls = { + version = "v2.28.2"; + hash = "sha256-rbWvPrFoY31QyW/TbMndPXTzAJS6qT/bo6J0IL6jRvQ="; + }; }; v321 = buildECTesterStandalone { - mbedtls = { version="v3.2.1"; hash="sha256-+M36NvFe4gw2PRbld/2JV3yBGrqK6soWcmrSEkUNcrc="; }; + mbedtls = { + version = "v3.2.1"; + hash = "sha256-+M36NvFe4gw2PRbld/2JV3yBGrqK6soWcmrSEkUNcrc="; + }; }; v320 = buildECTesterStandalone { - mbedtls = { version="v3.2.0"; hash="sha256-b0c8E3eFwHw2bbvAOQY55RRkXVcx9hUCmkZA9QlRodQ="; }; + mbedtls = { + version = "v3.2.0"; + hash = "sha256-b0c8E3eFwHw2bbvAOQY55RRkXVcx9hUCmkZA9QlRodQ="; + }; }; v2281 = buildECTesterStandalone { - mbedtls = { version="v2.28.1"; hash="sha256-brbZB3fINDeVWXf50ct4bxYkoBVyD6bBBijZyFQSnyw="; }; + mbedtls = { + version = "v2.28.1"; + hash = "sha256-brbZB3fINDeVWXf50ct4bxYkoBVyD6bBBijZyFQSnyw="; + }; }; v310 = buildECTesterStandalone { - mbedtls = { version="v3.1.0"; hash="sha256-esQe1qnM1yBzNPpd+qog3/8guttt6CKUiyzIQ1nMfJs="; }; + mbedtls = { + version = "v3.1.0"; + hash = "sha256-esQe1qnM1yBzNPpd+qog3/8guttt6CKUiyzIQ1nMfJs="; + }; }; v2280 = buildECTesterStandalone { - mbedtls = { version="v2.28.0"; hash="sha256-VDoIUBaK2e0E5nkwU1u3Wvxc+s6OzBSdIeHsJKJuZ2g="; }; + mbedtls = { + version = "v2.28.0"; + hash = "sha256-VDoIUBaK2e0E5nkwU1u3Wvxc+s6OzBSdIeHsJKJuZ2g="; + }; }; v21612 = buildECTesterStandalone { - mbedtls = { version="v2.16.12"; hash="sha256-EjIbPWiqq0Xif1sXV59mM0qfDjsHuOomDlRWrFKlt6Q="; }; + mbedtls = { + version = "v2.16.12"; + hash = "sha256-EjIbPWiqq0Xif1sXV59mM0qfDjsHuOomDlRWrFKlt6Q="; + }; }; v300 = buildECTesterStandalone { - mbedtls = { version="v3.0.0"; hash="sha256-M4PQwsa856Hy3QXKwnNRp4alk5oVJBGkDEjZWf6vT4s="; }; + mbedtls = { + version = "v3.0.0"; + hash = "sha256-M4PQwsa856Hy3QXKwnNRp4alk5oVJBGkDEjZWf6vT4s="; + }; }; v2270 = buildECTesterStandalone { - mbedtls = { version="v2.27.0"; hash="sha256-vlZZnN/XAlmoDhRJTZUcrToeCiGaQrKe6k2t3G1My0M="; }; + mbedtls = { + version = "v2.27.0"; + hash = "sha256-vlZZnN/XAlmoDhRJTZUcrToeCiGaQrKe6k2t3G1My0M="; + }; }; v21611 = buildECTesterStandalone { - mbedtls = { version="v2.16.11"; hash="sha256-sas6xdOUM8cTomXEBpvi6eCOLcCO9vvRmvUIu4kEdRg="; }; + mbedtls = { + version = "v2.16.11"; + hash = "sha256-sas6xdOUM8cTomXEBpvi6eCOLcCO9vvRmvUIu4kEdRg="; + }; }; v2260 = buildECTesterStandalone { - mbedtls = { version="v2.26.0"; hash="sha256-VbgYI7I6BxcuW9EvRr0CXVPsRBNlsIl3Pti8/XK9nGk="; }; + mbedtls = { + version = "v2.26.0"; + hash = "sha256-VbgYI7I6BxcuW9EvRr0CXVPsRBNlsIl3Pti8/XK9nGk="; + }; }; v21610 = buildECTesterStandalone { - mbedtls = { version="v2.16.10"; hash="sha256-ar1JVepzNjD6jgp9V0G/YNajO7s0sxYe3t0v8O0sVs4="; }; + mbedtls = { + version = "v2.16.10"; + hash = "sha256-ar1JVepzNjD6jgp9V0G/YNajO7s0sxYe3t0v8O0sVs4="; + }; }; v2719 = buildECTesterStandalone { - mbedtls = { version="v2.7.19"; hash="sha256-0GAoJMq6O0j8WwwhknD486XcaCALZ3TW5mxKcliISmY="; }; + mbedtls = { + version = "v2.7.19"; + hash = "sha256-0GAoJMq6O0j8WwwhknD486XcaCALZ3TW5mxKcliISmY="; + }; }; v2250 = buildECTesterStandalone { - mbedtls = { version="v2.25.0"; hash="sha256-UQ0z374ptC1m7Ezomj7BuMG2+yYg+ByOGYI9zKzlceQ="; }; + mbedtls = { + version = "v2.25.0"; + hash = "sha256-UQ0z374ptC1m7Ezomj7BuMG2+yYg+ByOGYI9zKzlceQ="; + }; }; v2169 = buildECTesterStandalone { - mbedtls = { version="v2.16.9"; hash="sha256-jhWJh4gKU0JOERANiYSI3me0oMDTRJ7ZQaKhNc6w51c="; }; + mbedtls = { + version = "v2.16.9"; + hash = "sha256-jhWJh4gKU0JOERANiYSI3me0oMDTRJ7ZQaKhNc6w51c="; + }; }; v2718 = buildECTesterStandalone { - mbedtls = { version="v2.7.18"; hash="sha256-SkAK9lTqdc3VbJyu8VNHR1PPUlt/+swIJl/R5l7zhUg="; }; + mbedtls = { + version = "v2.7.18"; + hash = "sha256-SkAK9lTqdc3VbJyu8VNHR1PPUlt/+swIJl/R5l7zhUg="; + }; }; v2240 = buildECTesterStandalone { - mbedtls = { version="v2.24.0"; hash="sha256-zO65lsM/nw0NfqvRGT+n8sRT2hpdvMzcJR4nve7F0SM="; }; + mbedtls = { + version = "v2.24.0"; + hash = "sha256-zO65lsM/nw0NfqvRGT+n8sRT2hpdvMzcJR4nve7F0SM="; + }; }; } diff --git a/nix/mbedtlsshim.nix b/nix/mbedtlsshim.nix index cbb850c..d1f5434 100644 --- a/nix/mbedtlsshim.nix +++ b/nix/mbedtlsshim.nix @@ -1,8 +1,6 @@ -{ - pkgs - , mbedtls -}: -with pkgs; stdenv.mkDerivation rec { +{ pkgs, mbedtls }: +with pkgs; +stdenv.mkDerivation rec { name = "MbedTLSShim"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; diff --git a/nix/nettle_pkg_versions.nix b/nix/nettle_pkg_versions.nix index c5d7270..8350f88 100644 --- a/nix/nettle_pkg_versions.nix +++ b/nix/nettle_pkg_versions.nix @@ -1,59 +1,129 @@ +{ buildECTesterStandalone }: { - buildECTesterStandalone -}: -{ v3_8_1 = buildECTesterStandalone { - nettle = { version="3.8.1"; tag="nettle_3.8.1_release_20220727"; hash="sha256-Nk8+K3fNfc3oP9fEUhnINOVLDHXkKLb4lKI9Et1By/4="; }; - }; + nettle = { + version = "3.8.1"; + tag = "nettle_3.8.1_release_20220727"; + hash = "sha256-Nk8+K3fNfc3oP9fEUhnINOVLDHXkKLb4lKI9Et1By/4="; + }; + }; v3_8 = buildECTesterStandalone { - nettle = { version="3.8"; tag="nettle_3.8_release_20220602"; hash="sha256-dXbGhIHBmPZEsIwWDRpIULqUSeMIBpRVtSEzGfI06OY="; }; - }; + nettle = { + version = "3.8"; + tag = "nettle_3.8_release_20220602"; + hash = "sha256-dXbGhIHBmPZEsIwWDRpIULqUSeMIBpRVtSEzGfI06OY="; + }; + }; v3_7_3 = buildECTesterStandalone { - nettle = { version="3.7.3"; tag="nettle_3.7.3_release_20210606"; hash="sha256-Zh9esD8EijuSTDqK0lFdQGjkD2fndOiiaCdlgAfjvPA="; }; - }; + nettle = { + version = "3.7.3"; + tag = "nettle_3.7.3_release_20210606"; + hash = "sha256-Zh9esD8EijuSTDqK0lFdQGjkD2fndOiiaCdlgAfjvPA="; + }; + }; v3_7_2 = buildECTesterStandalone { - nettle = { version="3.7.2"; tag="nettle_3.7.2_release_20210321"; hash="sha256-jSpgTvHN5M1ft35CJTHqJa0GRnn/Ct+VbnizNS4O8WI="; }; - }; + nettle = { + version = "3.7.2"; + tag = "nettle_3.7.2_release_20210321"; + hash = "sha256-jSpgTvHN5M1ft35CJTHqJa0GRnn/Ct+VbnizNS4O8WI="; + }; + }; v3_7_1 = buildECTesterStandalone { - nettle = { version="3.7.1"; tag="nettle_3.7.1_release_20210217"; hash="sha256-FWYhQnx7AKdf+bNLdwuV00+A73pVw0B96UsWy/Q2xC4="; }; - }; + nettle = { + version = "3.7.1"; + tag = "nettle_3.7.1_release_20210217"; + hash = "sha256-FWYhQnx7AKdf+bNLdwuV00+A73pVw0B96UsWy/Q2xC4="; + }; + }; v3_7 = buildECTesterStandalone { - nettle = { version="3.7"; tag="nettle_3.7_release_20210104"; hash="sha256-8AH2TrREvxPdkbzsy8IKy8YMQxHW4rIIeEUuuanOx1o="; }; - }; + nettle = { + version = "3.7"; + tag = "nettle_3.7_release_20210104"; + hash = "sha256-8AH2TrREvxPdkbzsy8IKy8YMQxHW4rIIeEUuuanOx1o="; + }; + }; v3_6 = buildECTesterStandalone { - nettle = { version="3.6"; tag="nettle_3.6_release_20200429"; hash="sha256-0kwNDyq/+8j0803PEUsPEx7Dd0iV81VZIv4vQPPV4/E="; }; - }; + nettle = { + version = "3.6"; + tag = "nettle_3.6_release_20200429"; + hash = "sha256-0kwNDyq/+8j0803PEUsPEx7Dd0iV81VZIv4vQPPV4/E="; + }; + }; v3_5_1 = buildECTesterStandalone { - nettle = { version="3.5.1"; tag="nettle_3.5.1_release_20190627"; hash="sha256-dcyhmYdhsC4W8ttW2lKZKu9iK/VaO0XsU4vC7trclBk="; }; - }; + nettle = { + version = "3.5.1"; + tag = "nettle_3.5.1_release_20190627"; + hash = "sha256-dcyhmYdhsC4W8ttW2lKZKu9iK/VaO0XsU4vC7trclBk="; + }; + }; v3_5 = buildECTesterStandalone { - nettle = { version="3.5"; tag="nettle_3.5_release_20190626"; hash="sha256-Qy2Y3NNBy9BjqWMCVSQSI2jB8u6cchu2jXcdXjRnS08="; }; - }; + nettle = { + version = "3.5"; + tag = "nettle_3.5_release_20190626"; + hash = "sha256-Qy2Y3NNBy9BjqWMCVSQSI2jB8u6cchu2jXcdXjRnS08="; + }; + }; v3_4_1 = buildECTesterStandalone { - nettle = { version="3.4.1"; tag="nettle_3.4.1_release_20181204"; hash="sha256-+UHPFTXNXRgZvlzK5bq+8B9tthH5tad3uunHYEuKkq0="; }; - }; + nettle = { + version = "3.4.1"; + tag = "nettle_3.4.1_release_20181204"; + hash = "sha256-+UHPFTXNXRgZvlzK5bq+8B9tthH5tad3uunHYEuKkq0="; + }; + }; v3_4 = buildECTesterStandalone { - nettle = { version="3.4"; tag="nettle_3.4_release_20171119"; hash="sha256-rnpC3wJlULhdrKg4m2pgumMTsFZ/N0OS5UkYWIpBHpQ="; }; - }; + nettle = { + version = "3.4"; + tag = "nettle_3.4_release_20171119"; + hash = "sha256-rnpC3wJlULhdrKg4m2pgumMTsFZ/N0OS5UkYWIpBHpQ="; + }; + }; v3_3 = buildECTesterStandalone { - nettle = { version="3.3"; tag="nettle_3.3_release_20161001"; hash="sha256-RpQmJ9XQyhFyD+wY2B/Dj374N+pBl8H2MOcc4NRwsR4="; }; - }; + nettle = { + version = "3.3"; + tag = "nettle_3.3_release_20161001"; + hash = "sha256-RpQmJ9XQyhFyD+wY2B/Dj374N+pBl8H2MOcc4NRwsR4="; + }; + }; v3_2 = buildECTesterStandalone { - nettle = { version="3.2"; tag="nettle_3.2_release_20160128"; hash="sha256-6kKD3vI2QT7ataTPnPMq31QMjfG5tnZBz8IwL8qEnZc="; }; - }; + nettle = { + version = "3.2"; + tag = "nettle_3.2_release_20160128"; + hash = "sha256-6kKD3vI2QT7ataTPnPMq31QMjfG5tnZBz8IwL8qEnZc="; + }; + }; v3_1_1 = buildECTesterStandalone { - nettle = { version="3.1.1"; tag="nettle_3.1.1_release_20150424"; hash="sha256-X9TSXWTY3cuF0NiXVyr3OwW00WPGzElDilv7uP8pPUw="; }; - }; + nettle = { + version = "3.1.1"; + tag = "nettle_3.1.1_release_20150424"; + hash = "sha256-X9TSXWTY3cuF0NiXVyr3OwW00WPGzElDilv7uP8pPUw="; + }; + }; v3_1 = buildECTesterStandalone { - nettle = { version="3.1"; tag="nettle_3.1_release_20150407"; hash="sha256-9oWdTsiOcIBVkK+YYrS4xDotH8eZHfCnpxGx58qfydM="; }; - }; + nettle = { + version = "3.1"; + tag = "nettle_3.1_release_20150407"; + hash = "sha256-9oWdTsiOcIBVkK+YYrS4xDotH8eZHfCnpxGx58qfydM="; + }; + }; v3_0 = buildECTesterStandalone { - nettle = { version="3.0"; tag="nettle_3.0_release_20140607"; hash="sha256-llHAvSMm63N9DtnrQDREcSQHwBolsP6BNDLvMb682RM="; }; - }; + nettle = { + version = "3.0"; + tag = "nettle_3.0_release_20140607"; + hash = "sha256-llHAvSMm63N9DtnrQDREcSQHwBolsP6BNDLvMb682RM="; + }; + }; v2_7_1 = buildECTesterStandalone { - nettle = { version="2.7.1"; tag="nettle_2.7.1_release_20130528"; hash="sha256-vHHr1DQ1U312d5nkFPzojlIbcnjUjIYGUSFuH8ZVW0A="; }; - }; + nettle = { + version = "2.7.1"; + tag = "nettle_2.7.1_release_20130528"; + hash = "sha256-vHHr1DQ1U312d5nkFPzojlIbcnjUjIYGUSFuH8ZVW0A="; + }; + }; v2_7 = buildECTesterStandalone { - nettle = { version="2.7"; tag="nettle_2.7_release_20130424"; hash="sha256-wpTqEzwFOCzC7/sXNNSfSr6xrYUVVDozPeSaEUIs1NY="; }; - }; + nettle = { + version = "2.7"; + tag = "nettle_2.7_release_20130424"; + hash = "sha256-wpTqEzwFOCzC7/sXNNSfSr6xrYUVVDozPeSaEUIs1NY="; + }; + }; } diff --git a/nix/nettleshim.nix b/nix/nettleshim.nix index b431a2a..f968357 100644 --- a/nix/nettleshim.nix +++ b/nix/nettleshim.nix @@ -1,9 +1,10 @@ { - pkgs - , nettle - , gmp + pkgs, + nettle, + gmp, }: -with pkgs; stdenv.mkDerivation rec { +with pkgs; +stdenv.mkDerivation rec { name = "NettleShim"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; diff --git a/nix/openssl_pkg_versions.nix b/nix/openssl_pkg_versions.nix index a702e61..61c6306 100644 --- a/nix/openssl_pkg_versions.nix +++ b/nix/openssl_pkg_versions.nix @@ -1,65 +1,123 @@ +{ buildECTesterStandalone }: { - buildECTesterStandalone -}: -{ v331 = buildECTesterStandalone { - openssl = { version="3.3.1"; hash="sha256-Ezvzm40WNayUqEgwQsxEglG3cKDRLHrwwF6old3Zjx0="; }; - }; + openssl = { + version = "3.3.1"; + hash = "sha256-Ezvzm40WNayUqEgwQsxEglG3cKDRLHrwwF6old3Zjx0="; + }; + }; v322 = buildECTesterStandalone { - openssl = { version="3.2.2"; hash="sha256-QYFzZZxh7gSRWwtSaV8JHgF6w+ZjePgTT9b4H+CjB6s="; }; - }; + openssl = { + version = "3.2.2"; + hash = "sha256-QYFzZZxh7gSRWwtSaV8JHgF6w+ZjePgTT9b4H+CjB6s="; + }; + }; v316 = buildECTesterStandalone { - openssl = { version="3.1.6"; hash="sha256-QrArZza3vMRME4/iAy+K4mwtCyErH9mklYkRrZciPrM="; }; - }; + openssl = { + version = "3.1.6"; + hash = "sha256-QrArZza3vMRME4/iAy+K4mwtCyErH9mklYkRrZciPrM="; + }; + }; v3014 = buildECTesterStandalone { - openssl = { version="3.0.14"; hash="sha256-DwwWLusMcv1Zz9t8KsV3pFVtFDvfAJTXCJDSfg6jAh8="; }; - }; + openssl = { + version = "3.0.14"; + hash = "sha256-DwwWLusMcv1Zz9t8KsV3pFVtFDvfAJTXCJDSfg6jAh8="; + }; + }; v330 = buildECTesterStandalone { - openssl = { version="3.3.0"; hash="sha256-Gke9xG+sJWoNyO+2lvf3b6X5YEm6G2D97VR4vTFlxtI="; }; - }; + openssl = { + version = "3.3.0"; + hash = "sha256-Gke9xG+sJWoNyO+2lvf3b6X5YEm6G2D97VR4vTFlxtI="; + }; + }; v321 = buildECTesterStandalone { - openssl = { version="3.2.1"; hash="sha256-dcxoA/+skmJcBuo8Z3+zLvINFaG0HsyN3bxrnWotqEw="; }; - }; + openssl = { + version = "3.2.1"; + hash = "sha256-dcxoA/+skmJcBuo8Z3+zLvINFaG0HsyN3bxrnWotqEw="; + }; + }; v315 = buildECTesterStandalone { - openssl = { version="3.1.5"; hash="sha256-KZ3f0KUGptN95WOG0VzjDTRNkYhN/JirMzC3wAkCmTE="; }; - }; + openssl = { + version = "3.1.5"; + hash = "sha256-KZ3f0KUGptN95WOG0VzjDTRNkYhN/JirMzC3wAkCmTE="; + }; + }; v3013 = buildECTesterStandalone { - openssl = { version="3.0.13"; hash="sha256-50UE7XA1KV7HBisdoWwVtX/yoDzSBkoo2MOUWMrMRfw="; }; - }; + openssl = { + version = "3.0.13"; + hash = "sha256-50UE7XA1KV7HBisdoWwVtX/yoDzSBkoo2MOUWMrMRfw="; + }; + }; v320 = buildECTesterStandalone { - openssl = { version="3.2.0"; hash="sha256-qS9tvKl1ZngOyV4ro9SKqNqgkEiqyDksfHxYzJwDx2I="; }; - }; + openssl = { + version = "3.2.0"; + hash = "sha256-qS9tvKl1ZngOyV4ro9SKqNqgkEiqyDksfHxYzJwDx2I="; + }; + }; v314 = buildECTesterStandalone { - openssl = { version="3.1.4"; hash="sha256-cnwwVD/kCugEwZ5tZbB+PlfWRIJtpUtutOveOsQHfZc="; }; - }; + openssl = { + version = "3.1.4"; + hash = "sha256-cnwwVD/kCugEwZ5tZbB+PlfWRIJtpUtutOveOsQHfZc="; + }; + }; v3012 = buildECTesterStandalone { - openssl = { version="3.0.12"; hash="sha256-mnpzVfPUtz9DtXMM6ANx+dH5eET/yMSwHHI7oGJdaq0="; }; - }; + openssl = { + version = "3.0.12"; + hash = "sha256-mnpzVfPUtz9DtXMM6ANx+dH5eET/yMSwHHI7oGJdaq0="; + }; + }; v313 = buildECTesterStandalone { - openssl = { version="3.1.3"; hash="sha256-+0zy03Hvld8NyiqoXxHgrivbyG95gcv5MM6O/hrKDyg="; }; - }; + openssl = { + version = "3.1.3"; + hash = "sha256-+0zy03Hvld8NyiqoXxHgrivbyG95gcv5MM6O/hrKDyg="; + }; + }; v3011 = buildECTesterStandalone { - openssl = { version="3.0.11"; hash="sha256-n6TUFXzWgxk1pUJ5ZxzCDF5U6VlDOOEJy5h5+giV0Qw="; }; - }; + openssl = { + version = "3.0.11"; + hash = "sha256-n6TUFXzWgxk1pUJ5ZxzCDF5U6VlDOOEJy5h5+giV0Qw="; + }; + }; v312 = buildECTesterStandalone { - openssl = { version="3.1.2"; hash="sha256-jHdpkxVGUtC7OT9QbYULgRUXyL2NJLEAiu9X++VdPzE="; }; - }; + openssl = { + version = "3.1.2"; + hash = "sha256-jHdpkxVGUtC7OT9QbYULgRUXyL2NJLEAiu9X++VdPzE="; + }; + }; v3010 = buildECTesterStandalone { - openssl = { version="3.0.10"; hash="sha256-II8ngfBapaRVxpMOIKXPe5eGoZh7Qlhb4BN/tF4rimQ="; }; - }; + openssl = { + version = "3.0.10"; + hash = "sha256-II8ngfBapaRVxpMOIKXPe5eGoZh7Qlhb4BN/tF4rimQ="; + }; + }; v311 = buildECTesterStandalone { - openssl = { version="3.1.1"; hash="sha256-aLQF6mRSHJhTd3lbW3BdEWwc87+TOE0bvngkf3YBCCI="; }; - }; + openssl = { + version = "3.1.1"; + hash = "sha256-aLQF6mRSHJhTd3lbW3BdEWwc87+TOE0bvngkf3YBCCI="; + }; + }; v309 = buildECTesterStandalone { - openssl = { version="3.0.9"; hash="sha256-Luwx8qwOEm/2jYEHiR71NBWcT8+wlTZdTNTcV9gmFu4="; }; - }; + openssl = { + version = "3.0.9"; + hash = "sha256-Luwx8qwOEm/2jYEHiR71NBWcT8+wlTZdTNTcV9gmFu4="; + }; + }; v310 = buildECTesterStandalone { - openssl = { version="3.1.0"; hash="sha256-qG6tXD4lm/F1FN7LMLKQ4L86Y2aDFobP+6z3UN9EFSc="; }; - }; + openssl = { + version = "3.1.0"; + hash = "sha256-qG6tXD4lm/F1FN7LMLKQ4L86Y2aDFobP+6z3UN9EFSc="; + }; + }; v308 = buildECTesterStandalone { - openssl = { version="3.0.8"; hash="sha256-aTPi8dpvI6UOoibuxukbVD0nfSCYAldjtZMc9qfgmcc="; }; - }; + openssl = { + version = "3.0.8"; + hash = "sha256-aTPi8dpvI6UOoibuxukbVD0nfSCYAldjtZMc9qfgmcc="; + }; + }; v307 = buildECTesterStandalone { - openssl = { version="3.0.7"; hash="sha256-6Pc1kIFYRtsobSFZUP3vm4grtriG1QrLQxwChXgv41s="; }; - }; -} \ No newline at end of file + openssl = { + version = "3.0.7"; + hash = "sha256-6Pc1kIFYRtsobSFZUP3vm4grtriG1QrLQxwChXgv41s="; + }; + }; +} diff --git a/nix/opensslshim.nix b/nix/opensslshim.nix index 6260b71..1c79e94 100644 --- a/nix/opensslshim.nix +++ b/nix/opensslshim.nix @@ -1,8 +1,6 @@ -{ - pkgs - , openssl -}: -with pkgs; stdenv.mkDerivation { +{ pkgs, openssl }: +with pkgs; +stdenv.mkDerivation { name = "OpenSSL Shim"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; diff --git a/nix/tomcrypt_pkg_versions.nix b/nix/tomcrypt_pkg_versions.nix index fcd0883..c3ccc19 100644 --- a/nix/tomcrypt_pkg_versions.nix +++ b/nix/tomcrypt_pkg_versions.nix @@ -1,26 +1,48 @@ +{ buildECTesterStandalone }: { - buildECTesterStandalone -}: -{ v1182 = buildECTesterStandalone { - tomcrypt = { version = "1.18.2"; hash = "sha256-MEU+u54aXKGSAMPYsh+L9axowzIHiew1uWq8wDsEBmw=";}; - tommath = { version = "1.3.0"; hash = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; }; + tomcrypt = { + version = "1.18.2"; + hash = "sha256-MEU+u54aXKGSAMPYsh+L9axowzIHiew1uWq8wDsEBmw="; + }; + tommath = { + version = "1.3.0"; + hash = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; + }; }; v1181 = buildECTesterStandalone { - tomcrypt = { version = "1.18.1"; hash = "sha256-P00koc4+mAHQ/L5iCuPoiOeI/msZscO5KHZrqmbotRo=";}; - tommath = { version = "1.3.0"; hash = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; }; + tomcrypt = { + version = "1.18.1"; + hash = "sha256-P00koc4+mAHQ/L5iCuPoiOeI/msZscO5KHZrqmbotRo="; + }; + tommath = { + version = "1.3.0"; + hash = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; + }; }; v1180 = buildECTesterStandalone { - tomcrypt = { version = "1.18.0"; hash = "sha256-Y7U+updJI/f3zD6k84DTZDQZh6vhfqR0W8HyizlUZcU=";}; - tommath = { version = "1.3.0"; hash = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; }; + tomcrypt = { + version = "1.18.0"; + hash = "sha256-Y7U+updJI/f3zD6k84DTZDQZh6vhfqR0W8HyizlUZcU="; + }; + tommath = { + version = "1.3.0"; + hash = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; + }; }; # v101 = buildECTesterStandalone { # tomcrypt = { version = "1.01"; hash = "sha256-lVAPxgkAcBivzZmWfqu0sEh8yGo7Ji2hIYwx4/g0GzM=";}; # tommath = { version = "1.3.0"; hash = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; }; # }; v117 = buildECTesterStandalone { - tomcrypt = { version = "1.17"; hash = "sha256-NWWAs6p27UC64nDL0MwMvzU5aWNe8LZu7DC06d/8isA=";}; + tomcrypt = { + version = "1.17"; + hash = "sha256-NWWAs6p27UC64nDL0MwMvzU5aWNe8LZu7DC06d/8isA="; + }; # NOTE: which is the correct version of libtommath for a particular version of libtomcryp? - tommath = { version = "1.3.0"; hash = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; }; - }; + tommath = { + version = "1.3.0"; + hash = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; + }; + }; } diff --git a/nix/tomcryptshim.nix b/nix/tomcryptshim.nix index 64e22b4..bcdc984 100644 --- a/nix/tomcryptshim.nix +++ b/nix/tomcryptshim.nix @@ -1,9 +1,10 @@ { - pkgs - , libtomcrypt - , libtommath + pkgs, + libtomcrypt, + libtommath, }: -with pkgs; stdenv.mkDerivation { +with pkgs; +stdenv.mkDerivation { name = "TomCryptShim"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; diff --git a/nix/x b/nix/x new file mode 100644 index 0000000..9d23f4b --- /dev/null +++ b/nix/x @@ -0,0 +1,21 @@ +{ pkgs, libressl }: +with pkgs; +stdenv.mkDerivation rec { + name = "LibreSSLShim"; + src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; + + buildInputs = [ + libressl + pkg-config + jdk11_headless + ]; + + buildPhase = '' + make libressl + ''; + + installPhase = '' + mkdir --parents $out/lib + cp libressl_provider.so $out/lib + ''; +} diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 0ee834c..3ceb718 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -97,10 +97,10 @@ openssl.o: openssl.c boringssl: boringssl_provider.so boringssl_provider.so: boringssl.o c_utils.o | lib_timing.so lib_csignals.so - NIX_CFLAGS_COMPILE= $(CC) $(CFLAGS) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic -l:lib_boringssl.a -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so + $(CC) $(CFLAGS) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic -l:lib_boringssl.a -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so boringssl.o: boringssl.c - NIX_CFLAGS_COMPILE= $(CC) -I$(BORINGSSL_CFLAGS) $(CFLAGS) -c $< + $(CC) -I$(BORINGSSL_CFLAGS) $(CFLAGS) -c $< # libgcrypt shim @@ -183,10 +183,10 @@ nettle.o: nettle.c libressl: libressl_provider.so libressl_provider.so: libressl.o c_utils.o | lib_timing.so lib_csignals.so - NIX_CFLAGS_COMPILE= $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs libresslcrypto) -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs libresslcrypto) -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so libressl.o: libressl.c - NIX_CFLAGS_COMPILE= $(CC) $(shell pkg-config --cflags libresslcrypto) $(CFLAGS) -c $< + $(CC) $(shell pkg-config --cflags libresslcrypto) $(CFLAGS) -c $< help: @echo "# This makefile builds the JNI shims necessary to test native libraries." -- cgit v1.3.1 From bac37f1e676d0f01bcf03679fc58365db5bf2329 Mon Sep 17 00:00:00 2001 From: J08nY Date: Mon, 12 Aug 2024 18:21:02 +0200 Subject: Cleanup passing of CFLAGS and LFLAGS to shims. --- nix/boringsslshim.nix | 2 +- nix/ippcpshim.nix | 4 ++-- .../main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'standalone/src') diff --git a/nix/boringsslshim.nix b/nix/boringsslshim.nix index a5e7fbd..715e721 100644 --- a/nix/boringsslshim.nix +++ b/nix/boringsslshim.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation { make boringssl ''; - BORINGSSL_CFLAGS = "${boringssl.dev.outPath}/include"; + BORINGSSL_CFLAGS = "-I${boringssl.dev.outPath}/include"; installPhase = '' mkdir --parents $out/lib diff --git a/nix/ippcpshim.nix b/nix/ippcpshim.nix index 2b1d676..349817b 100644 --- a/nix/ippcpshim.nix +++ b/nix/ippcpshim.nix @@ -10,8 +10,8 @@ stdenv.mkDerivation rec { jdk11_headless ]; - IPP_CRYPTO_HEADER = "${ipp-crypto.dev}/include"; - IPP_CRYPTO_LIB = "${ipp-crypto}/lib/"; + IPP_CRYPTO_CFLAGS = "-I${ipp-crypto.dev}/include"; + IPP_CRYPTO_LFLAGS = "-L${ipp-crypto}/lib/"; buildPhase = '' make ippcp diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index baa8635..7c02a1f 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -117,7 +117,7 @@ boringssl_provider.so: boringssl.o c_utils.o | clibs $(CC) $(CFLAGS) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic -l:lib_boringssl.a -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so boringssl.o: boringssl.c - $(CC) -I$(BORINGSSL_CFLAGS) $(CFLAGS) -c $< + $(CC) $(BORINGSSL_CFLAGS) $(CFLAGS) -c $< # libgcrypt shim @@ -178,10 +178,10 @@ mbedtls.o: mbedtls.c ippcp: ippcp_provider.so ippcp_provider.so: ippcp.o c_utils.o | clibs - $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L$(IPP_CRYPTO_LIB) -Wl,-Bstatic -l:libippcp.a -L. -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ $(IPP_CRYPTO_LFLAGS) -Wl,-Bstatic -l:libippcp.a -L. -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so ippcp.o: ippcp.c - $(CC) -I$(IPP_CRYPTO_HEADER) $(CFLAGS) -c $< + $(CC) $(IPP_CRYPTO_CFLAGS) $(CFLAGS) -c $< # Nettle shim -- cgit v1.3.1 From 2b8744a7f5259c175e07c8acaf5c7b07cb02d5e1 Mon Sep 17 00:00:00 2001 From: J08nY Date: Mon, 12 Aug 2024 20:17:22 +0200 Subject: Add version define to shim build. --- nix/boringsslshim.nix | 2 +- nix/botanshim.nix | 2 ++ nix/cryptoppshim.nix | 2 ++ nix/gcryptshim.nix | 2 ++ nix/ippcpshim.nix | 2 +- nix/libresslshim.nix | 2 ++ nix/mbedtlsshim.nix | 2 ++ nix/nettleshim.nix | 2 ++ nix/opensslshim.nix | 2 ++ .../cz/crcs/ectester/standalone/libs/jni/Makefile | 14 +++++++------- 10 files changed, 23 insertions(+), 9 deletions(-) (limited to 'standalone/src') diff --git a/nix/boringsslshim.nix b/nix/boringsslshim.nix index 715e721..a32a5bc 100644 --- a/nix/boringsslshim.nix +++ b/nix/boringsslshim.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation { make boringssl ''; - BORINGSSL_CFLAGS = "-I${boringssl.dev.outPath}/include"; + BORINGSSL_CFLAGS = "-I${boringssl.dev.outPath}/include -DECTESTER_BORINGSSL_${boringssl.version}=1"; installPhase = '' mkdir --parents $out/lib diff --git a/nix/botanshim.nix b/nix/botanshim.nix index 8688b20..ce16b1b 100644 --- a/nix/botanshim.nix +++ b/nix/botanshim.nix @@ -19,6 +19,8 @@ stdenv.mkDerivation { make botan ''; + BOTAN_CXXFLAGS = "-DECTESTER_BOTAN_${builtins.replaceStrings ["."] ["_"] botan2.version}=1"; + installPhase = '' mkdir --parents $out/lib cp botan_provider.so $out/lib/ diff --git a/nix/cryptoppshim.nix b/nix/cryptoppshim.nix index 8c735d7..f526275 100644 --- a/nix/cryptoppshim.nix +++ b/nix/cryptoppshim.nix @@ -14,6 +14,8 @@ stdenv.mkDerivation { make cryptopp ''; + CRYPTOPP_CXXFLAGS = "-DECTESTER_CRYPTOPP_${cryptopp.version}=1"; + installPhase = '' mkdir --parents $out/lib cp cryptopp_provider.so $out/lib/ diff --git a/nix/gcryptshim.nix b/nix/gcryptshim.nix index 764b03c..869bcd9 100644 --- a/nix/gcryptshim.nix +++ b/nix/gcryptshim.nix @@ -19,6 +19,8 @@ stdenv.mkDerivation { make gcrypt ''; + LIBGCRYPT_CFLAGS = "-DECTESTER_LIBGCRYPT_${builtins.replaceStrings ["."] ["_"] libgcrypt.version}=1"; + installPhase = '' mkdir --parents $out/lib cp gcrypt_provider.so $out/lib/ diff --git a/nix/ippcpshim.nix b/nix/ippcpshim.nix index 349817b..a059d5b 100644 --- a/nix/ippcpshim.nix +++ b/nix/ippcpshim.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { jdk11_headless ]; - IPP_CRYPTO_CFLAGS = "-I${ipp-crypto.dev}/include"; + IPP_CRYPTO_CFLAGS = "-I${ipp-crypto.dev}/include -DECTESTER_IPPCP_VERSION=${ipp-crypto.version}"; IPP_CRYPTO_LFLAGS = "-L${ipp-crypto}/lib/"; buildPhase = '' diff --git a/nix/libresslshim.nix b/nix/libresslshim.nix index 9d23f4b..862701f 100644 --- a/nix/libresslshim.nix +++ b/nix/libresslshim.nix @@ -14,6 +14,8 @@ stdenv.mkDerivation rec { make libressl ''; + LIBRESSL_CFLAGS = "-DECTESTER_LIBRESSL_${builtins.replaceStrings ["."] ["_"] libressl.version}=1"; + installPhase = '' mkdir --parents $out/lib cp libressl_provider.so $out/lib diff --git a/nix/mbedtlsshim.nix b/nix/mbedtlsshim.nix index d1f5434..06abb0b 100644 --- a/nix/mbedtlsshim.nix +++ b/nix/mbedtlsshim.nix @@ -14,6 +14,8 @@ stdenv.mkDerivation rec { make mbedtls ''; + MBEDTLS_CFLAGS = "-DECTESTER_MBEDTLS_${builtins.replaceStrings ["."] ["_"] mbedtls.version}=1"; + installPhase = '' mkdir --parents $out/lib cp mbedtls_provider.so $out/lib diff --git a/nix/nettleshim.nix b/nix/nettleshim.nix index f968357..7488398 100644 --- a/nix/nettleshim.nix +++ b/nix/nettleshim.nix @@ -19,6 +19,8 @@ stdenv.mkDerivation rec { make nettle ''; + NETTLE_CFLAGS = "-DECTESTER_NETTLE_${builtins.replaceStrings ["."] ["_"] nettle.version}=1"; + installPhase = '' mkdir --parents $out/lib cp nettle_provider.so $out/lib diff --git a/nix/opensslshim.nix b/nix/opensslshim.nix index 1c79e94..be0263b 100644 --- a/nix/opensslshim.nix +++ b/nix/opensslshim.nix @@ -14,6 +14,8 @@ stdenv.mkDerivation { make openssl ''; + OPENSSL_CFLAGS = "-DECTESTER_OPENSSL_${builtins.replaceStrings ["."] ["_"] openssl.version}=1"; + installPhase = '' mkdir --parents $out/lib cp openssl_provider.so $out/lib/ diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 7c02a1f..74d1a93 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -107,7 +107,7 @@ openssl_provider.so: openssl.o c_utils.o | clibs $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -Wl,-Bstatic $(shell pkg-config --libs libcrypto) -lcrypto -L. -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so openssl.o: openssl.c - $(CC) $(shell pkg-config --cflags openssl) $(CFLAGS) -c $< + $(CC) $(shell pkg-config --cflags openssl) $(OPENSSL_CFLAGS) $(CFLAGS) -c $< # BoringSSL shim @@ -127,7 +127,7 @@ gcrypt_provider.so: gcrypt.o c_utils.o | clibs $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -pthread -lpthread -Wl,-Bstatic $(shell libgcrypt-config --libs) -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so gcrypt.o: gcrypt.c - $(CC) $(shell libgcrypt-config --cflags) $(CFLAGS) -c $< + $(CC) $(shell libgcrypt-config --cflags) $(LIBGCRYPT_CFLAGS) $(CFLAGS) -c $< # Libtomcrypt shim @@ -147,7 +147,7 @@ botan_provider.so: botan.o cpp_utils.o | cpplibs $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs botan-2) -Wl,-Bdynamic -l:lib_timing.so -l:lib_cppsignals.so botan.o: botan.cpp - $(CXX) $(shell pkg-config --cflags botan-2) $(CXXFLAGS) -c $< + $(CXX) $(shell pkg-config --cflags botan-2) $(BOTAN_CXXFLAGS) $(CXXFLAGS) -c $< # Crypto++ shim @@ -161,7 +161,7 @@ cryptopp_provider.so: cryptopp.o cpp_utils.o | cpplibs $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs $(CRYPTOPP_NAME)) -Wl,-Bdynamic -l:lib_timing.so -l:lib_cppsignals.so cryptopp.o: cryptopp.cpp - $(CXX) $(shell pkg-config --cflags $(CRYPTOPP_NAME)) $(CXXFLAGS) -c $< + $(CXX) $(shell pkg-config --cflags $(CRYPTOPP_NAME)) $(CRYPTOPP_CXXFLAGS) $(CXXFLAGS) -c $< # mbedTLS shim @@ -171,7 +171,7 @@ mbedtls_provider.so: mbedtls.o c_utils.o | clibs $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic -lmbedcrypto -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so mbedtls.o: mbedtls.c - $(CC) $(CFLAGS) -c $< + $(CC) $(MBEDTLS_CFLAGS) $(CFLAGS) -c $< # Intel Performance Primitives crypto shim @@ -192,7 +192,7 @@ nettle_provider.so: nettle.o c_utils.o | clibs -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so nettle.o: nettle.c - $(CC) -Wl,-static $(shell pkg-config --cflags nettle hogweed gmp) $(CFLAGS) -c $< + $(CC) -Wl,-static $(shell pkg-config --cflags nettle hogweed gmp) $(NETTLE_CFLAGS) $(CFLAGS) -c $< # LibreSSL shim @@ -202,7 +202,7 @@ libressl_provider.so: libressl.o c_utils.o | clibs $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs libresslcrypto) -Wl,-Bdynamic -l:lib_timing.so -l:lib_csignals.so libressl.o: libressl.c - $(CC) $(shell pkg-config --cflags libresslcrypto) $(CFLAGS) -c $< + $(CC) $(shell pkg-config --cflags libresslcrypto) $(LIBRESSL_CFLAGS) $(CFLAGS) -c $< help: @echo "# This makefile builds the JNI shims necessary to test native libraries." -- cgit v1.3.1 From e0bc60f3257039e9cfcbaa9312c6e40664989646 Mon Sep 17 00:00:00 2001 From: J08nY Date: Mon, 12 Aug 2024 22:41:22 +0200 Subject: Fix mbedTLS and Botan default builds. --- fetchReleases.py | 19 +++-- flake.nix | 11 ++- nix/botan_pkg_versions.json | 35 -------- nix/mbedtls_pkg_versions.json | 98 ++++++++++++++-------- .../cz/crcs/ectester/standalone/libs/jni/Makefile | 8 +- 5 files changed, 91 insertions(+), 80 deletions(-) (limited to 'standalone/src') diff --git a/fetchReleases.py b/fetchReleases.py index 5ced814..2de5437 100644 --- a/fetchReleases.py +++ b/fetchReleases.py @@ -66,6 +66,9 @@ def fetch_botan(): download_link = download_url.format(version=link['href']) match = re.match(r"Botan-(?P\d+)\.(?P\d+)\.(?P\d+)\.(?P.*)", link.text) + if match['major'] == "3": + # TODO: Handle Botan-3 + continue version = f"{match['major']}.{match['minor']}.{match['patch']}" ext = f"{match['ext']}" @@ -235,11 +238,16 @@ def fetch_mbedtls(): versions = {} for release in resp.json(): if not release['draft'] and not release['prerelease']: - version = release['tag_name'] - sort_version = version.replace("mbedtls-", "v") + tag = release["tag_name"] + version = tag.replace("mbedtls-", "v") flat_version = version.replace('.', '') - download_url = f"https://github.com/{owner}/{repo}/archive/{version}.tar.gz" - digest = get_source_hash(download_url, unpack=True) + download_url = f"https://github.com/{owner}/{repo}/archive/{tag}.tar.gz" + if version == "v3.6.0": + # TODO: Special case for the time being + digest = "sha256-tCwAKoTvY8VCjcTPNwS3DeitflhpKHLr6ygHZDbR6wQ=" + else: + digest = get_source_hash(download_url, unpack=True) + print(f"{version}:{digest}") rendered = single_version_template.render(pkg=pkg, digest=digest, flat_version=flat_version, version=version).strip() @@ -247,7 +255,8 @@ def fetch_mbedtls(): versions[flat_version] = { "version": version, "hash": digest, - "sort": parse_version(sort_version) + "tag": tag, + "sort": parse_version(version) } serialize_versions(pkg, renders, versions) diff --git a/flake.nix b/flake.nix index 52aa90c..333df95 100644 --- a/flake.nix +++ b/flake.nix @@ -156,6 +156,7 @@ { version ? null, hash ? null, + tag ? null, }: if version == null then pkgs.mbedtls @@ -163,10 +164,11 @@ pkgs.mbedtls.overrideAttrs ( final: prev: { inherit version; + inherit tag; src = pkgs.fetchFromGitHub { owner = "Mbed-TLS"; repo = "mbedtls"; - rev = "mbedtls-${version}"; + rev = tag; inherit hash; # mbedtls >= 3.6.0 uses git submodules fetchSubmodules = true; @@ -465,10 +467,10 @@ libgcrypt = libgcryptBuilder { inherit version hash; }; }; mbedtlsShimBuilder = - { version, hash }: + { version, hash, tag }: import ./nix/mbedtlsshim.nix { inherit pkgs; - mbedtls = (mbedtlsBuilder { inherit version hash; }); + mbedtls = (mbedtlsBuilder { inherit version hash tag; }); }; ippcpShimBuilder = { version, hash }: @@ -529,6 +531,7 @@ mbedtls ? { version = null; hash = null; + tag = null; }, ippcp ? { version = null; @@ -557,7 +560,7 @@ cryptoppShim = cryptoppShimBuilder { inherit (cryptopp) version hash; }; boringsslShim = boringsslShimBuilder { inherit (boringssl) rev hash; }; gcryptShim = gcryptShimBuilder { inherit (gcrypt) version hash; }; - mbedtlsShim = mbedtlsShimBuilder { inherit (mbedtls) version hash; }; + mbedtlsShim = mbedtlsShimBuilder { inherit (mbedtls) version hash tag; }; ippcpShim = ippcpShimBuilder { inherit (ippcp) version hash; }; nettleShim = nettleShimBuilder { inherit (nettle) version tag hash; }; libresslShim = libresslShimBuilder { inherit (libressl) version hash; }; diff --git a/nix/botan_pkg_versions.json b/nix/botan_pkg_versions.json index cd09209..7d283bf 100644 --- a/nix/botan_pkg_versions.json +++ b/nix/botan_pkg_versions.json @@ -1,39 +1,4 @@ { - "v350": { - "version": "3.5.0", - "source_extension": "tar.xz", - "hash": "sha256-Z+ja4cokaNkN5OYByH1fMf9JKzjoq4vL0C3fcQTtip8=" - }, - "v340": { - "version": "3.4.0", - "source_extension": "tar.xz", - "hash": "sha256-cYQ6/MCixYX48z+jBPC1iuS5xdgwb4lGZ7N0YEQndVc=" - }, - "v330": { - "version": "3.3.0", - "source_extension": "tar.xz", - "hash": "sha256-No8R9CbxIFrtuenjI2ihZTXcEb1gNRBm5vZmTsNrhbk=" - }, - "v320": { - "version": "3.2.0", - "source_extension": "tar.xz", - "hash": "sha256-BJyEeDX89u86niBrM94F3TiZnDJeJHSCdypVmNnl7OM=" - }, - "v311": { - "version": "3.1.1", - "source_extension": "tar.xz", - "hash": "sha256-MMhP6RmTapj+9TMfJGxiqiwOTSCFstRREgf2ogr6Oms=" - }, - "v310": { - "version": "3.1.0", - "source_extension": "tar.xz", - "hash": "sha256-ThjnVai7xr+W+skW+/By7NBnQMcqcgF8JxYuTAtHJf4=" - }, - "v300": { - "version": "3.0.0", - "source_extension": "tar.xz", - "hash": "sha256-XaVS4A+hwEepDCLrXwJH7CfnQytot44Qp84JVSacytc=" - }, "v2195": { "version": "2.19.5", "source_extension": "tar.xz", diff --git a/nix/mbedtls_pkg_versions.json b/nix/mbedtls_pkg_versions.json index c0e7b49..000efd5 100644 --- a/nix/mbedtls_pkg_versions.json +++ b/nix/mbedtls_pkg_versions.json @@ -1,122 +1,152 @@ { "v360": { "version": "v3.6.0", - "hash": "sha256-yzGBkrqh+T/5GS66xL5zJstCmvcfG09TfxqA3F8UPJg=" + "hash": "sha256-tCwAKoTvY8VCjcTPNwS3DeitflhpKHLr6ygHZDbR6wQ=", + "tag": "v3.6.0" }, "v352": { "version": "v3.5.2", - "hash": "sha256-lVGmnSYccNmRS6vfF/fDiny5cYRPc/wJBpgciFLPUvM=" + "hash": "sha256-lVGmnSYccNmRS6vfF/fDiny5cYRPc/wJBpgciFLPUvM=", + "tag": "v3.5.2" }, "v351": { "version": "v3.5.1", - "hash": "sha256-HxsHcGbSExp1aG5yMR/J3kPL4zqnmNoN5T5wfV3APaw=" + "hash": "sha256-HxsHcGbSExp1aG5yMR/J3kPL4zqnmNoN5T5wfV3APaw=", + "tag": "v3.5.1" }, - "mbedtls-350": { - "version": "mbedtls-3.5.0", - "hash": "sha256-uHHQmaAmFS8Vd7PrAfRpK+aNi3pJ76XBC7rFWcd16NU=" + "v350": { + "version": "v3.5.0", + "hash": "sha256-uHHQmaAmFS8Vd7PrAfRpK+aNi3pJ76XBC7rFWcd16NU=", + "tag": "mbedtls-3.5.0" }, "v341": { "version": "v3.4.1", - "hash": "sha256-NIjyRcVbg6lT6+RlTz5Jt6V9T85mvta5grOSLIAK9Ts=" + "hash": "sha256-NIjyRcVbg6lT6+RlTz5Jt6V9T85mvta5grOSLIAK9Ts=", + "tag": "v3.4.1" }, "v340": { "version": "v3.4.0", - "hash": "sha256-1YA4hp/VEjph5k0qJqhhH4nBbTP3Qu2pl7WpuvPkVfg=" + "hash": "sha256-1YA4hp/VEjph5k0qJqhhH4nBbTP3Qu2pl7WpuvPkVfg=", + "tag": "v3.4.0" }, "v330": { "version": "v3.3.0", - "hash": "sha256-yb5migP5Tcw99XHFzJkCct4f5R6ztxPR43VQcfTGRtE=" + "hash": "sha256-yb5migP5Tcw99XHFzJkCct4f5R6ztxPR43VQcfTGRtE=", + "tag": "v3.3.0" }, "v321": { "version": "v3.2.1", - "hash": "sha256-+M36NvFe4gw2PRbld/2JV3yBGrqK6soWcmrSEkUNcrc=" + "hash": "sha256-+M36NvFe4gw2PRbld/2JV3yBGrqK6soWcmrSEkUNcrc=", + "tag": "v3.2.1" }, "v320": { "version": "v3.2.0", - "hash": "sha256-b0c8E3eFwHw2bbvAOQY55RRkXVcx9hUCmkZA9QlRodQ=" + "hash": "sha256-b0c8E3eFwHw2bbvAOQY55RRkXVcx9hUCmkZA9QlRodQ=", + "tag": "v3.2.0" }, "v310": { "version": "v3.1.0", - "hash": "sha256-esQe1qnM1yBzNPpd+qog3/8guttt6CKUiyzIQ1nMfJs=" + "hash": "sha256-esQe1qnM1yBzNPpd+qog3/8guttt6CKUiyzIQ1nMfJs=", + "tag": "v3.1.0" }, "v300": { "version": "v3.0.0", - "hash": "sha256-M4PQwsa856Hy3QXKwnNRp4alk5oVJBGkDEjZWf6vT4s=" + "hash": "sha256-M4PQwsa856Hy3QXKwnNRp4alk5oVJBGkDEjZWf6vT4s=", + "tag": "v3.0.0" }, "v2288": { "version": "v2.28.8", - "hash": "sha256-A1DYZrvJ8SRujroVwqPfcTOSgLnT5xRat/RVdq2fL/o=" + "hash": "sha256-A1DYZrvJ8SRujroVwqPfcTOSgLnT5xRat/RVdq2fL/o=", + "tag": "v2.28.8" }, "v2287": { "version": "v2.28.7", - "hash": "sha256-JI0Frbz4HkPqrLQNrSIj1ikN8201h4kd1wTwyPotERw=" + "hash": "sha256-JI0Frbz4HkPqrLQNrSIj1ikN8201h4kd1wTwyPotERw=", + "tag": "v2.28.7" }, "v2286": { "version": "v2.28.6", - "hash": "sha256-1YyA3O0/u7Tcf8rhNmrMGF64/tnitQH65THpXa7N7P8=" + "hash": "sha256-1YyA3O0/u7Tcf8rhNmrMGF64/tnitQH65THpXa7N7P8=", + "tag": "v2.28.6" }, - "mbedtls-2285": { - "version": "mbedtls-2.28.5", - "hash": "sha256-Gl4UQMSvAwYbOi2b/AUMz+zgkOl1o0UA2VveF/3ek8o=" + "v2285": { + "version": "v2.28.5", + "hash": "sha256-Gl4UQMSvAwYbOi2b/AUMz+zgkOl1o0UA2VveF/3ek8o=", + "tag": "mbedtls-2.28.5" }, "v2284": { "version": "v2.28.4", - "hash": "sha256-88Lnj9NgS5PWg2hydvb9cwi6s6BG3UMvkUH2Ny1jmtE=" + "hash": "sha256-88Lnj9NgS5PWg2hydvb9cwi6s6BG3UMvkUH2Ny1jmtE=", + "tag": "v2.28.4" }, "v2283": { "version": "v2.28.3", - "hash": "sha256-w5bJErCNRZLE8rHcuZlK3bOqel97gPPMKH2cPGUR6Zw=" + "hash": "sha256-w5bJErCNRZLE8rHcuZlK3bOqel97gPPMKH2cPGUR6Zw=", + "tag": "v2.28.3" }, "v2282": { "version": "v2.28.2", - "hash": "sha256-rbWvPrFoY31QyW/TbMndPXTzAJS6qT/bo6J0IL6jRvQ=" + "hash": "sha256-rbWvPrFoY31QyW/TbMndPXTzAJS6qT/bo6J0IL6jRvQ=", + "tag": "v2.28.2" }, "v2281": { "version": "v2.28.1", - "hash": "sha256-brbZB3fINDeVWXf50ct4bxYkoBVyD6bBBijZyFQSnyw=" + "hash": "sha256-brbZB3fINDeVWXf50ct4bxYkoBVyD6bBBijZyFQSnyw=", + "tag": "v2.28.1" }, "v2280": { "version": "v2.28.0", - "hash": "sha256-VDoIUBaK2e0E5nkwU1u3Wvxc+s6OzBSdIeHsJKJuZ2g=" + "hash": "sha256-VDoIUBaK2e0E5nkwU1u3Wvxc+s6OzBSdIeHsJKJuZ2g=", + "tag": "v2.28.0" }, "v2270": { "version": "v2.27.0", - "hash": "sha256-vlZZnN/XAlmoDhRJTZUcrToeCiGaQrKe6k2t3G1My0M=" + "hash": "sha256-vlZZnN/XAlmoDhRJTZUcrToeCiGaQrKe6k2t3G1My0M=", + "tag": "v2.27.0" }, "v2260": { "version": "v2.26.0", - "hash": "sha256-VbgYI7I6BxcuW9EvRr0CXVPsRBNlsIl3Pti8/XK9nGk=" + "hash": "sha256-VbgYI7I6BxcuW9EvRr0CXVPsRBNlsIl3Pti8/XK9nGk=", + "tag": "v2.26.0" }, "v2250": { "version": "v2.25.0", - "hash": "sha256-UQ0z374ptC1m7Ezomj7BuMG2+yYg+ByOGYI9zKzlceQ=" + "hash": "sha256-UQ0z374ptC1m7Ezomj7BuMG2+yYg+ByOGYI9zKzlceQ=", + "tag": "v2.25.0" }, "v2240": { "version": "v2.24.0", - "hash": "sha256-zO65lsM/nw0NfqvRGT+n8sRT2hpdvMzcJR4nve7F0SM=" + "hash": "sha256-zO65lsM/nw0NfqvRGT+n8sRT2hpdvMzcJR4nve7F0SM=", + "tag": "v2.24.0" }, "v21612": { "version": "v2.16.12", - "hash": "sha256-EjIbPWiqq0Xif1sXV59mM0qfDjsHuOomDlRWrFKlt6Q=" + "hash": "sha256-EjIbPWiqq0Xif1sXV59mM0qfDjsHuOomDlRWrFKlt6Q=", + "tag": "v2.16.12" }, "v21611": { "version": "v2.16.11", - "hash": "sha256-sas6xdOUM8cTomXEBpvi6eCOLcCO9vvRmvUIu4kEdRg=" + "hash": "sha256-sas6xdOUM8cTomXEBpvi6eCOLcCO9vvRmvUIu4kEdRg=", + "tag": "v2.16.11" }, "v21610": { "version": "v2.16.10", - "hash": "sha256-ar1JVepzNjD6jgp9V0G/YNajO7s0sxYe3t0v8O0sVs4=" + "hash": "sha256-ar1JVepzNjD6jgp9V0G/YNajO7s0sxYe3t0v8O0sVs4=", + "tag": "v2.16.10" }, "v2169": { "version": "v2.16.9", - "hash": "sha256-jhWJh4gKU0JOERANiYSI3me0oMDTRJ7ZQaKhNc6w51c=" + "hash": "sha256-jhWJh4gKU0JOERANiYSI3me0oMDTRJ7ZQaKhNc6w51c=", + "tag": "v2.16.9" }, "v2719": { "version": "v2.7.19", - "hash": "sha256-0GAoJMq6O0j8WwwhknD486XcaCALZ3TW5mxKcliISmY=" + "hash": "sha256-0GAoJMq6O0j8WwwhknD486XcaCALZ3TW5mxKcliISmY=", + "tag": "v2.7.19" }, "v2718": { "version": "v2.7.18", - "hash": "sha256-SkAK9lTqdc3VbJyu8VNHR1PPUlt/+swIJl/R5l7zhUg=" + "hash": "sha256-SkAK9lTqdc3VbJyu8VNHR1PPUlt/+swIJl/R5l7zhUg=", + "tag": "v2.7.18" } } \ No newline at end of file diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile index 74d1a93..1393f82 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile @@ -141,13 +141,17 @@ tomcrypt.o: tomcrypt.c # Botan-2 shim +BOTAN_NAME := "botan-2" +ifeq ($(shell pkg-config --exists $(BOTAN_NAME); echo $$?),1) + BOTAN_NAME := "botan-3" +endif botan: botan_provider.so botan_provider.so: botan.o cpp_utils.o | cpplibs - $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs botan-2) -Wl,-Bdynamic -l:lib_timing.so -l:lib_cppsignals.so + $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs $(BOTAN_NAME)) -Wl,-Bdynamic -l:lib_timing.so -l:lib_cppsignals.so botan.o: botan.cpp - $(CXX) $(shell pkg-config --cflags botan-2) $(BOTAN_CXXFLAGS) $(CXXFLAGS) -c $< + $(CXX) $(shell pkg-config --cflags $(BOTAN_NAME)) $(BOTAN_CXXFLAGS) $(CXXFLAGS) -c $< # Crypto++ shim -- cgit v1.3.1 From eed91ffe37cd7b533b77832570f3249b1012677a Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 15 Aug 2024 15:12:32 +0200 Subject: Fix mbedtls shim build for many versions. --- nix/mbedtlsshim.nix | 8 +++- .../cz/crcs/ectester/standalone/libs/jni/c_utils.h | 12 +++++- .../cz/crcs/ectester/standalone/libs/jni/mbedtls.c | 50 ++++++++++++++++------ 3 files changed, 56 insertions(+), 14 deletions(-) (limited to 'standalone/src') diff --git a/nix/mbedtlsshim.nix b/nix/mbedtlsshim.nix index 06abb0b..05cad9c 100644 --- a/nix/mbedtlsshim.nix +++ b/nix/mbedtlsshim.nix @@ -3,6 +3,7 @@ with pkgs; stdenv.mkDerivation rec { name = "MbedTLSShim"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; + rawVersion = pkgs.lib.strings.removePrefix "v" mbedtls.version; buildInputs = [ mbedtls @@ -14,7 +15,12 @@ stdenv.mkDerivation rec { make mbedtls ''; - MBEDTLS_CFLAGS = "-DECTESTER_MBEDTLS_${builtins.replaceStrings ["."] ["_"] mbedtls.version}=1"; + MBEDTLS_CFLAGS = '' + -DECTESTER_MBEDTLS_${builtins.replaceStrings ["."] ["_"] rawVersion}=1 \ + -DECTESTER_MBEDTLS_MAJOR=${pkgs.lib.versions.major rawVersion} \ + -DECTESTER_MBEDTLS_MINOR=${pkgs.lib.versions.minor rawVersion} \ + -DECTESTER_MBEDTLS_PATCH=${pkgs.lib.versions.patch rawVersion} \ + ''; installPhase = '' mkdir --parents $out/lib diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/c_utils.h b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/c_utils.h index 93a11ed..ec62a40 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/c_utils.h +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/c_utils.h @@ -65,4 +65,14 @@ char *biginteger_to_hex(JNIEnv *env, jobject big, jint bytes); } while (0) #define ADD_KPG(env, self, kpg_name, kpg_class) ADD_PROPERTY(env, self, "KeyPairGenerator.", "cz.crcs.ectester.standalone.libs.jni.NativeKeyPairGeneratorSpi$", kpg_name, kpg_class) #define ADD_KA(env, self, ka_name, ka_class) ADD_PROPERTY(env, self, "KeyAgreement.", "cz.crcs.ectester.standalone.libs.jni.NativeKeyAgreementSpi$", ka_name, ka_class) -#define ADD_SIG(env, self, sig_name, sig_class) ADD_PROPERTY(env, self, "Signature.", "cz.crcs.ectester.standalone.libs.jni.NativeSignatureSpi$", sig_name, sig_class) \ No newline at end of file +#define ADD_SIG(env, self, sig_name, sig_class) ADD_PROPERTY(env, self, "Signature.", "cz.crcs.ectester.standalone.libs.jni.NativeSignatureSpi$", sig_name, sig_class) + + +/** + * Version handling. + */ +#define VERSION_GT(lib,a,b,c) ((ECTESTER_##lib##_MAJOR == a && ECTESTER_##lib##_MINOR == b && ECTESTER_##lib##_PATCH > c) || (ECTESTER_##lib##_MAJOR == a && ECTESTER_##lib##_MINOR > b) || (ECTESTER_##lib##_MAJOR > a)) +#define VERSION_EQ(lib,a,b,c) (ECTESTER_##lib##_MAJOR == a && ECTESTER_##lib##_MINOR == b && ECTESTER_##lib##_PATCH == c) +#define VERSION_GE(lib,a,b,c) (VERSION_GT(lib,a,b,c) || VERSION_EQ(lib,a,b,c)) +#define VERSION_LT(lib,a,b,c) !(VERSION_GE(lib,a,b,c)) +#define VERSION_LE(lib,a,b,c) !(VERSION_GT(lib,a,b,c)) diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c index 8f5e0fb..e017f4d 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c @@ -21,6 +21,24 @@ static mbedtls_entropy_context fixed_entropy; static jclass provider_class; +#if VERSION_LT(MBEDTLS, 3, 0, 0) +#define MBEDTLS_PRIVATE(member) member +#else +#define MBEDTLS_PRIVATE(member) private_##member +#endif + + +#if VERSION_LT(MBEDTLS, 3, 1, 0) +#define CURVE_GRP_ID(curve_info) curve_info->MBEDTLS_PRIVATE(grp_id) +#define CURVE_NAME(curve_info) curve_info->MBEDTLS_PRIVATE(name) +#define CURVE_BIT_SIZE(curve_info) curve_info->MBEDTLS_PRIVATE(bit_size) +#else +#define CURVE_GRP_ID(curve_info) curve_info->grp_id +#define CURVE_NAME(curve_info) curve_info->name +#define CURVE_BIT_SIZE(curve_info) curve_info->bit_size +#endif + + JNIEXPORT jobject JNICALL Java_cz_crcs_ectester_standalone_libs_MbedTLSLib_createProvider(JNIEnv *env, jobject this) { /* Create the custom provider. */ jclass local_provider_class = (*env)->FindClass(env, "cz/crcs/ectester/standalone/libs/jni/NativeProvider$MbedTLS"); @@ -104,10 +122,10 @@ JNIEXPORT jobject JNICALL Java_cz_crcs_ectester_standalone_libs_MbedTLSLib_getCu jobject result = (*env)->NewObject(env, hash_set_class, hash_set_ctr); for (const mbedtls_ecp_curve_info *curve_info = mbedtls_ecp_curve_list(); - curve_info->grp_id != MBEDTLS_ECP_DP_NONE; + CURVE_GRP_ID(curve_info) != MBEDTLS_ECP_DP_NONE; curve_info++) { - jstring curve_name = (*env)->NewStringUTF(env, curve_info->name); + jstring curve_name = (*env)->NewStringUTF(env, CURVE_NAME(curve_info)); (*env)->CallBooleanMethod(env, result, hash_set_add, curve_name); } return result; @@ -132,7 +150,8 @@ JNIEXPORT jboolean JNICALL Java_cz_crcs_ectester_standalone_libs_MbedTLSLib_setu mbedtls_entropy_init(&fixed_entropy); // This is NASTY! We are accessing something the library does not want us to. - fixed_entropy.private_source_count = 0; + + fixed_entropy.MBEDTLS_PRIVATE(source_count) = 0; mbedtls_entropy_add_source(&fixed_entropy, fixed_random, NULL, 32, MBEDTLS_ENTROPY_SOURCE_STRONG); mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &fixed_entropy, NULL, 0); @@ -141,9 +160,9 @@ JNIEXPORT jboolean JNICALL Java_cz_crcs_ectester_standalone_libs_MbedTLSLib_setu JNIEXPORT jboolean JNICALL Java_cz_crcs_ectester_standalone_libs_jni_NativeKeyPairGeneratorSpi_00024MbedTLS_keysizeSupported(JNIEnv *env, jobject this, jint keysize) { for (const mbedtls_ecp_curve_info *curve_info = mbedtls_ecp_curve_list(); - curve_info->grp_id != MBEDTLS_ECP_DP_NONE; + CURVE_GRP_ID(curve_info) != MBEDTLS_ECP_DP_NONE; curve_info++) { - if (keysize == curve_info->bit_size) { + if (keysize == CURVE_BIT_SIZE(curve_info)) { return JNI_TRUE; } } @@ -170,9 +189,9 @@ JNIEXPORT jboolean JNICALL Java_cz_crcs_ectester_standalone_libs_jni_NativeKeyPa jstring name = (*env)->CallObjectMethod(env, params, get_name); const char *utf_name = (*env)->GetStringUTFChars(env, name, NULL); for (const mbedtls_ecp_curve_info *curve_info = mbedtls_ecp_curve_list(); - curve_info->grp_id != MBEDTLS_ECP_DP_NONE; + CURVE_GRP_ID(curve_info) != MBEDTLS_ECP_DP_NONE; curve_info++) { - if (strcasecmp(utf_name, curve_info->name) == 0) { + if (strcasecmp(utf_name, CURVE_NAME(curve_info)) == 0) { (*env)->ReleaseStringUTFChars(env, name, utf_name); return JNI_TRUE; } @@ -244,6 +263,13 @@ static void mpi_from_biginteger(JNIEnv* env, jobject biginteger, mbedtls_mpi *mp (*env)->ReleaseByteArrayElements(env, byte_array, byte_data, JNI_ABORT); } +#if (VERSION_LT(MBEDTLS, 3, 5, 0) && VERSION_GE(MBEDTLS, 3, 0, 0)) || VERSION_LT(MBEDTLS, 2, 28, 5) +static inline int mbedtls_ecp_group_a_is_minus_3(const mbedtls_ecp_group *grp) +{ + return grp->A.MBEDTLS_PRIVATE(p) == NULL; +} +#endif + static jobject create_ec_param_spec(JNIEnv *env, const mbedtls_ecp_group *group) { jobject p = biginteger_from_mpi(env, &group->P); jmethodID fp_field_init = (*env)->GetMethodID(env, fp_field_class, "", "(Ljava/math/BigInteger;)V"); @@ -402,7 +428,7 @@ static jobject generate_from_curve(JNIEnv *env, mbedtls_ecp_group *group) { static jobject generate_from_curve_info(JNIEnv *env, const mbedtls_ecp_curve_info *curve) { mbedtls_ecp_group group; mbedtls_ecp_group_init(&group); - mbedtls_ecp_group_load(&group, curve->grp_id); + mbedtls_ecp_group_load(&group, CURVE_GRP_ID(curve)); jobject result = generate_from_curve(env, &group); mbedtls_ecp_group_free(&group); return result; @@ -411,9 +437,9 @@ static jobject generate_from_curve_info(JNIEnv *env, const mbedtls_ecp_curve_inf JNIEXPORT jobject JNICALL Java_cz_crcs_ectester_standalone_libs_jni_NativeKeyPairGeneratorSpi_00024MbedTLS_generate__ILjava_security_SecureRandom_2(JNIEnv *env, jobject this, jint keysize, jobject random) { const mbedtls_ecp_curve_info *curve = NULL; for (const mbedtls_ecp_curve_info *curve_info = mbedtls_ecp_curve_list(); - curve_info->grp_id != MBEDTLS_ECP_DP_NONE; + CURVE_GRP_ID(curve_info) != MBEDTLS_ECP_DP_NONE; curve_info++) { - if (keysize == curve_info->bit_size) { + if (keysize == CURVE_BIT_SIZE(curve_info)) { curve = curve_info; break; } @@ -443,9 +469,9 @@ JNIEXPORT jobject JNICALL Java_cz_crcs_ectester_standalone_libs_jni_NativeKeyPai const char *utf_name = (*env)->GetStringUTFChars(env, name, NULL); const mbedtls_ecp_curve_info *curve = NULL; for (const mbedtls_ecp_curve_info *curve_info = mbedtls_ecp_curve_list(); - curve_info->grp_id != MBEDTLS_ECP_DP_NONE; + CURVE_GRP_ID(curve_info) != MBEDTLS_ECP_DP_NONE; curve_info++) { - if (strcasecmp(utf_name, curve_info->name) == 0) { + if (strcasecmp(utf_name, CURVE_NAME(curve_info)) == 0) { (*env)->ReleaseStringUTFChars(env, name, utf_name); curve = curve_info; break; -- cgit v1.3.1 From 280630ad39983c5e646938d4711bfb0d277cf3fa Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 15 Aug 2024 22:36:45 +0200 Subject: Crypto++ 6.1.0. --- nix/cryptoppshim.nix | 10 +++++++++- .../cz/crcs/ectester/standalone/libs/jni/cpp_utils.hpp | 11 ++++++++++- .../cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp | 6 +++++- 3 files changed, 24 insertions(+), 3 deletions(-) (limited to 'standalone/src') diff --git a/nix/cryptoppshim.nix b/nix/cryptoppshim.nix index f526275..2989066 100644 --- a/nix/cryptoppshim.nix +++ b/nix/cryptoppshim.nix @@ -1,5 +1,8 @@ { pkgs, cryptopp }: with pkgs; +let + dotVersion = builtins.replaceStrings ["_"] ["."] cryptopp.version; +in stdenv.mkDerivation { name = "Crypto++ Shim"; src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; @@ -14,7 +17,12 @@ stdenv.mkDerivation { make cryptopp ''; - CRYPTOPP_CXXFLAGS = "-DECTESTER_CRYPTOPP_${cryptopp.version}=1"; + CRYPTOPP_CXXFLAGS = '' + -DECTESTER_CRYPTOPP_${cryptopp.version}=1 \ + -DECTESTER_CRYPTOPP_MAJOR=${pkgs.lib.versions.major dotVersion} \ + -DECTESTER_CRYPTOPP_MINOR=${pkgs.lib.versions.minor dotVersion} \ + -DECTESTER_CRYPTOPP_PATCH=${pkgs.lib.versions.patch dotVersion} \ + ''; installPhase = '' mkdir --parents $out/lib diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cpp_utils.hpp b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cpp_utils.hpp index ed26c01..0e74ee0 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cpp_utils.hpp +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cpp_utils.hpp @@ -47,4 +47,13 @@ void add_ka(JNIEnv *env, const std::string &type, const std::string &klass, jobj /** * Add a SignatureSpi class to this provider. */ -void add_sig(JNIEnv *env, const std::string &type, const std::string &klass, jobject provider, jmethodID put_method); \ No newline at end of file +void add_sig(JNIEnv *env, const std::string &type, const std::string &klass, jobject provider, jmethodID put_method); + +/** + * Version handling. + */ +#define VERSION_GT(lib,a,b,c) ((ECTESTER_##lib##_MAJOR == a && ECTESTER_##lib##_MINOR == b && ECTESTER_##lib##_PATCH > c) || (ECTESTER_##lib##_MAJOR == a && ECTESTER_##lib##_MINOR > b) || (ECTESTER_##lib##_MAJOR > a)) +#define VERSION_EQ(lib,a,b,c) (ECTESTER_##lib##_MAJOR == a && ECTESTER_##lib##_MINOR == b && ECTESTER_##lib##_PATCH == c) +#define VERSION_GE(lib,a,b,c) (VERSION_GT(lib,a,b,c) || VERSION_EQ(lib,a,b,c)) +#define VERSION_LT(lib,a,b,c) !(VERSION_GE(lib,a,b,c)) +#define VERSION_LE(lib,a,b,c) !(VERSION_GT(lib,a,b,c)) diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp index 2cff58c..c194bf6 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp @@ -163,7 +163,11 @@ static std::vector get_all_curve_oids() { } static std::string oid_to_str(const OID &oid) { +#if VERSION_LT(CRYPTOPP, 8, 0, 0) + const std::vector& oid_values = oid.m_values; +#else const std::vector& oid_values = oid.GetValues(); +#endif std::stringstream ss; for (size_t i = 0; i < oid_values.size(); ++i) { if(i != 0) @@ -839,4 +843,4 @@ JNIEXPORT jboolean JNICALL Java_cz_crcs_ectester_standalone_libs_jni_NativeSigna } // unreachable return JNI_FALSE; -} \ No newline at end of file +} -- cgit v1.3.1 From e631d3f9ef7cebbea93ed14099d5aab2b3773c10 Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 15 Aug 2024 22:40:57 +0200 Subject: Fix cryptopp 7.0.0. --- .../main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'standalone/src') diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp index c194bf6..a7eb6a6 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp @@ -163,7 +163,7 @@ static std::vector get_all_curve_oids() { } static std::string oid_to_str(const OID &oid) { -#if VERSION_LT(CRYPTOPP, 8, 0, 0) +#if VERSION_LT(CRYPTOPP, 7, 0, 0) const std::vector& oid_values = oid.m_values; #else const std::vector& oid_values = oid.GetValues(); -- cgit v1.3.1 From 209a4f83eb43fa20a0f95f957a824a67d02c0214 Mon Sep 17 00:00:00 2001 From: J08nY Date: Fri, 16 Aug 2024 00:41:04 +0200 Subject: Attempt to fix submodule build. --- standalone/build.gradle.kts | 12 +- .../ectester/standalone/libs/BoringsslLib.java | 2 +- .../cz/crcs/ectester/standalone/libs/IppcpLib.java | 2 +- .../crcs/ectester/standalone/libs/LibresslLib.java | 2 +- .../crcs/ectester/standalone/libs/MbedTLSLib.java | 2 +- .../ectester/standalone/libs/NativeECLibrary.java | 24 +- .../crcs/ectester/standalone/libs/jni/Makefile.ext | 241 +++++++++++++++++++++ 7 files changed, 260 insertions(+), 25 deletions(-) create mode 100644 standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile.ext (limited to 'standalone/src') diff --git a/standalone/build.gradle.kts b/standalone/build.gradle.kts index c58be6a..c8baa36 100644 --- a/standalone/build.gradle.kts +++ b/standalone/build.gradle.kts @@ -11,8 +11,14 @@ repositories { } dependencies { - val wolfcryptLibPath = System.getenv("WOLFCRYPT_LIB_PATH") + "/wolfcrypt-jni.jar"; - implementation(files(wolfcryptLibPath)) + // First see if Nix gave us a path, then try the ext build, then the bundled. + if (System.getenv("WOLFCRYPT_LIB_PATH") != null) { + implementation(files(System.getenv("WOLFCRYPT_LIB_PATH") + "/wolfcrypt-jni.jar")); + } else if (file("$rootDir/ext/wolfcrypt-jni/lib/wolfcrypt-jni.jar").exists()) { + implementation(files("$rootDir/ext/wolfcrypt-jni/lib/wolfcrypt-jni.jar")) + } else { + implementation(files("$rootDir/ext/wolfcrypt-jni.jar")) + } implementation(project(":common")) testImplementation(platform("org.junit:junit-bom:5.10.2")) @@ -102,7 +108,7 @@ tasks.register("libs") { if (osdetector.os == "windows") { commandLine("makefile.bat", "/c", libName) } else if (osdetector.os == "linux") { - commandLine("make", "-k", "-B", libName) + commandLine("make", "-f", "Makefile.ext", "-k", "-B", libName) } } diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BoringsslLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BoringsslLib.java index 5d30d81..06e6b4a 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BoringsslLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/BoringsslLib.java @@ -8,7 +8,7 @@ import java.util.Set; */ public class BoringsslLib extends NativeECLibrary { public BoringsslLib() { - super("BoringSSL", "boringssl_provider"); + super("BoringSSL", "boringssl_provider", "lib_boringssl.so"); } @Override diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/IppcpLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/IppcpLib.java index a1c58ce..fa51585 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/IppcpLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/IppcpLib.java @@ -9,7 +9,7 @@ import java.util.Set; public class IppcpLib extends NativeECLibrary { public IppcpLib() { - super("IPPCP", "ippcp_provider"); + super("IPPCP", "ippcp_provider", "lib_ippcp.so"); } @Override diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/LibresslLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/LibresslLib.java index 0911119..e53399c 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/LibresslLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/LibresslLib.java @@ -8,7 +8,7 @@ import java.util.Set; */ public class LibresslLib extends NativeECLibrary { public LibresslLib() { - super("LibreSSL", "libressl_provider"); + super("LibreSSL", "libressl_provider", "lib_libressl.so"); } @Override diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/MbedTLSLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/MbedTLSLib.java index 038dbe8..efc8cad 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/MbedTLSLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/MbedTLSLib.java @@ -9,7 +9,7 @@ import java.util.Set; public class MbedTLSLib extends NativeECLibrary { public MbedTLSLib() { - super("mbedTLS", "mbedtls_provider"); + super("mbedTLS", "mbedtls_provider", "lib_mbedtls.so"); } @Override diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/NativeECLibrary.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/NativeECLibrary.java index fb4e430..210a6e9 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/NativeECLibrary.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/NativeECLibrary.java @@ -38,25 +38,13 @@ public abstract class NativeECLibrary extends ProviderECLibrary { return false; } - /* Load the requirements, if they are bundled, write them in and load them. */ - try { - for (String requirement : requriements) { - if (requirement.endsWith(suffix)) { - /* The requirement is bundled, write it */ - Path reqPath = libReqDir.resolve(requirement); - found = FileUtil.write(ECTesterStandalone.LIB_RESOURCE_DIR + requirement, reqPath); - if (!found) { - return false; - } - System.load(reqPath.toString()); - } else { - System.loadLibrary(requirement); - } + /* Load the requirements, if they are bundled, write them in. */ + for (String requirement : requriements) { + if (requirement.endsWith(suffix)) { + /* The requirement is bundled, write it */ + Path reqPath = libReqDir.resolve(requirement); + FileUtil.write(ECTesterStandalone.LIB_RESOURCE_DIR + requirement, reqPath); } - } catch (UnsatisfiedLinkError ule) { - System.err.println(resource); - ule.printStackTrace(); - return false; } System.load(libPath.toString()); diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile.ext b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile.ext new file mode 100644 index 0000000..16a93ff --- /dev/null +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile.ext @@ -0,0 +1,241 @@ +############################################################################### +## General CC setup. + +CC?=gcc +CXX?=g++ + +LFLAGS+=-fPIC -shared -L "$(JNI_LIBDIR)" -L "$(JNI_LIBDIR)/server" #-ljsig -ljvm +CFLAGS+=-fPIC -I"$(JNI_INCLUDEDIR)" -I"$(JNI_PLATFORMINCLUDEDIR)" -I. -Wno-deprecated-declarations +CXXFLAGS+=-fPIC -I"$(JNI_INCLUDEDIR)" -I"$(JNI_PLATFORMINCLUDEDIR)" -I. -Wno-deprecated-declarations + +DEBUG ?= 0 +PROJECT_ROOT_PATH ?= ../../../../../../../../../.. + +ifeq ($(DEBUG), 1) + CFLAGS+=-g -O0 -Wall + LFLAGS+=-g + CXXFLAGS+=-g -O0 -Wall +else + CFLAGS+=-O2 + LFLAGS+=-O2 + CXXFLAGS+=-O2 +endif + +############################################################################### +## Java JNI setup. + +ifeq ($(JAVA_HOME),) + ifeq ($(OS),Windows_NT) + which = $(shell where $1) + else + which = $(shell which $1) + endif + JAVAC ?= $(realpath $(call which,javac)) + JAVA_HOME = $(abspath $(dir $(JAVAC))..) +endif + +ifneq ($(JAVA_HOME),) + JNI_INCLUDEDIR ?= $(JAVA_HOME)/include + JNI_LIBDIR ?= $(JAVA_HOME)/lib +endif + +ifeq ($(JNI_INCLUDEDIR),) + $(error "Could not determine JNI include dir. Try specifying either JAVA_HOME or JNI_INCLUDEDIR.") +endif + +ifeq ($(JNI_LIBDIR),) + $(error "Could not determine JNI lib dir. Try specifying either JAVA_HOME or JNI_LIBDIR.") +endif + +TARGETTRIPLET := $(shell $(CC) -dumpmachine) + +ifeq ($(JNI_PLATFORM),) + ifeq ($(findstring mingw,$(TARGETTRIPLET)),mingw) + JNI_PLATFORM:= win32 + else + ifeq ($(findstring linux,$(TARGETTRIPLET)),linux) + JNI_PLATFORM:= linux + endif + endif +endif + +JNI_PLATFORMINCLUDEDIR ?= $(JNI_INCLUDEDIR)/$(JNI_PLATFORM) + +############################################################################### +## Targets. + +all: tomcrypt botan cryptopp openssl boringssl gcrypt mbedtls ippcp nettle libressl + +# Common utils +c_utils.o: c_utils.c + $(CC) $(CFLAGS) -c $< + +lib_timing.so: c_timing.c + $(CC) -o $@ -shared $(CFLAGS) -Wl,-soname,lib_timing.so $< + +prng.o: prng/prng.c + $(CC) $(CFLAGS) -c $< + +lib_prng.so: c_prng.c + $(CC) -o $@ -shared -Wl,-soname,lib_prng.so $(CFLAGS) $< + +c_preload.o: c_preload.c + $(CC) $(CFLAGS) -c $< + +lib_preload.so: c_preload.o prng.o + $(CC) -o $@ -shared $(CFLAGS) -ldl -Wl,-soname,lib_preload.so $^ + +lib_csignals.so: c_signals.c + $(CC) -o $@ -shared $(CFLAGS) -pthread -lpthread -Wl,-soname,lib_csignals.so $< + +lib_cppsignals.so: cpp_signals.cpp + $(CC) -o $@ -shared $(CFLAGS) -pthread -lpthread -Wl,-soname,lib_cppsignals.so $< + +cpp_utils.o: cpp_utils.cpp + $(CXX) $(CXXFLAGS) -c $< + + +clibs: lib_timing.so lib_csignals.so lib_preload.so lib_prng.so + +cpplibs: lib_timing.so lib_cppsignals.so lib_preload.so lib_prng.so + +# OpenSSL shim +openssl: openssl_provider.so + +openssl_provider.so: openssl.o c_utils.o | clibs + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs openssl) -l:lib_timing.so -l:lib_csignals.so + +openssl.o: openssl.c + $(CC) $(shell pkg-config --cflags openssl) $(CFLAGS) -c $< + + +# BoringSSL shim +boringssl: boringssl_provider.so + +lib_boringssl.so: + cp $(PROJECT_ROOT_PATH)/ext/boringssl/build/crypto/libcrypto.so lib_boringssl.so + patchelf --set-soname lib_boringssl.so lib_boringssl.so + +boringssl_provider.so: boringssl.o c_utils.o | clibs lib_boringssl.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. lib_boringssl.so -l:lib_timing.so -l:lib_csignals.so + +boringssl.o: boringssl.c + $(CC) -I$(PROJECT_ROOT_PATH)/ext/boringssl/include/ $(CFLAGS) -c $< + + +# libgcrypt shim +gcrypt: gcrypt_provider.so + +gcrypt_provider.so: gcrypt.o c_utils.o | clibs + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -pthread -lpthread $(shell libgcrypt-config --libs) -l:lib_timing.so -l:lib_csignals.so + +gcrypt.o: gcrypt.c + $(CC) $(shell libgcrypt-config --cflags) $(CFLAGS) -c $< + + +# Libtomcrypt shim +tomcrypt: tomcrypt_provider.so + +tomcrypt_provider.so: tomcrypt.o c_utils.o | clibs + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -ltommath $(shell pkg-config --libs libtomcrypt) -l:lib_timing.so -l:lib_csignals.so + +tomcrypt.o: tomcrypt.c + $(CC) -DLTM_DESC $(shell pkg-config --cflags libtomcrypt) $(CFLAGS) -c $< + + +# Botan-2 shim +botan: botan_provider.so + +botan_provider.so: botan.o cpp_utils.o | cpplibs + $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs botan-2) -l:lib_timing.so -l:lib_cppsignals.so + +botan.o: botan.cpp + $(CXX) $(shell pkg-config --cflags botan-2) $(CXXFLAGS) -c $< + + +# Crypto++ shim +CRYPTOPP_NAME := "libcrypto++" +ifeq ($(shell pkg-config --exists $(CRYPTOPP_NAME); echo $$?),1) + CRYPTOPP_NAME := "libcryptopp" +endif +cryptopp: cryptopp_provider.so + +cryptopp_provider.so: cryptopp.o cpp_utils.o | cpplibs + $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs $(CRYPTOPP_NAME)) -l:lib_timing.so -l:lib_cppsignals.so + +cryptopp.o: cryptopp.cpp + $(CXX) $(shell pkg-config --cflags $(CRYPTOPP_NAME)) $(CXXFLAGS) -c $< + + +# mbedTLS shim +mbedtls: mbedtls_provider.so + +lib_mbedtls.so: + cp $(PROJECT_ROOT_PATH)/ext/mbedtls/build/library/libmbedcrypto.so lib_mbedtls.so + patchelf --set-soname lib_mbedtls.so lib_mbedtls.so + +mbedtls_provider.so: mbedtls.o c_utils.o | clibs lib_mbedtls.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. lib_mbedtls.so -l:lib_timing.so -l:lib_csignals.so + +mbedtls.o: mbedtls.c + $(CC) -I$(PROJECT_ROOT_PATH)/ext/mbedtls/build/include/ $(CFLAGS) -c $< + + +# Intel Performance Primitives crypto shim +ippcp: ippcp_provider.so + +lib_ippcp.so: + cp $(PROJECT_ROOT_PATH)/ext/ipp-crypto/build/.build/RELEASE/lib/libippcp.so lib_ippcp.so + patchelf --set-soname lib_ippcp.so lib_ippcp.so + +ippcp_provider.so: ippcp.o c_utils.o | clibs lib_ippcp.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. lib_ippcp.so -l:lib_timing.so -l:lib_csignals.so + +ippcp.o: ippcp.c + $(CC) -I$(PROJECT_ROOT_PATH)/ext/ipp-crypto/build/.build/RELEASE/include/ $(CFLAGS) -c $< + + +# Nettle shim +nettle: nettle_provider.so + +nettle_provider.so: nettle.o c_utils.o | clibs + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. $(shell pkg-config --libs nettle) -l:lib_timing.so -l:lib_csignals.so $(shell pkg-config --libs hogweed) -lgmp + +nettle.o: nettle.c + $(CC) $(shell pkg-config --cflags nettle) $(shell pkg-config --libs hogweed) -lgmp $(CFLAGS) -c $< + + +# LibreSSL shim +libressl: libressl_provider.so + +lib_libressl.so: + cp $(PROJECT_ROOT_PATH)/ext/libressl/build/crypto/libcrypto.so lib_libressl.so + patchelf --set-soname lib_libressl.co lib_libressl.so + +libressl_provider.so: libressl.o c_utils.o | clibs lib_libressl.so + $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. lib_libressl.so -l:lib_timing.so -l:lib_csignals.so + +libressl.o: libressl.c + $(CC) -I$(PROJECT_ROOT_PATH)/ext/libressl/build/include/ $(CFLAGS) -c $< + + +help: + @echo "# This makefile builds the JNI shims necessary to test native libraries." + @echo "# Targets:" + @echo " - openssl" + @echo " - boringssl" + @echo " - gcrypt" + @echo " - tomcrypt" + @echo " - botan" + @echo " - cryptopp" + @echo " - mbedtls" + @echo " - ippcp" + @echo " - nettle" + @echo " - libressl" + + +clean: + rm -rf *.o + rm -rf *.so + +.PHONY: all help clean openssl boringssl gcrypt tomcrypt botan cryptopp mbedtls ippcp nettle libressl -- cgit v1.3.1 From 87db8e07e9de7e704b4bdbf5e7c63d6142697520 Mon Sep 17 00:00:00 2001 From: J08nY Date: Fri, 16 Aug 2024 01:22:28 +0200 Subject: Fix LibreSSl old build. --- .../main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile.ext | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'standalone/src') diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile.ext b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile.ext index 16a93ff..948988b 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile.ext +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile.ext @@ -210,7 +210,7 @@ libressl: libressl_provider.so lib_libressl.so: cp $(PROJECT_ROOT_PATH)/ext/libressl/build/crypto/libcrypto.so lib_libressl.so - patchelf --set-soname lib_libressl.co lib_libressl.so + patchelf --set-soname lib_libressl.so lib_libressl.so libressl_provider.so: libressl.o c_utils.o | clibs lib_libressl.so $(CC) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. lib_libressl.so -l:lib_timing.so -l:lib_csignals.so -- cgit v1.3.1 From 6e01272878080749c23a7644055456a44b0fd9e4 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sat, 17 Aug 2024 13:04:13 +0200 Subject: Fallback to newest version assumption in shims. --- .../resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp | 7 +++++++ .../main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c | 8 ++++++++ 2 files changed, 15 insertions(+) (limited to 'standalone/src') diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp index a7eb6a6..25e1ba4 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp @@ -95,6 +95,13 @@ using CryptoPP::Integer; static jclass provider_class; static std::unique_ptr rng = std::make_unique(); +// Fallback to newest +#if !(defined(ECTESTER_CRYPTOPP_MAJOR) && defined(ECTESTER_CRYPTOPP_MINOR) && defined(ECTESTER_CRYPTOPP_PATCH)) +#define ECTESTER_CRYPTOPP_MAJOR 99 +#define ECTESTER_CRYPTOPP_MINOR 99 +#define ECTESTER_CRYPTOPP_PATCH 99 +#endif + JNIEXPORT jobject JNICALL Java_cz_crcs_ectester_standalone_libs_CryptoppLib_createProvider(JNIEnv *env, jobject self) { /* Create the custom provider. */ diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c index e017f4d..8b7fbbb 100644 --- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c +++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c @@ -21,6 +21,14 @@ static mbedtls_entropy_context fixed_entropy; static jclass provider_class; +// Fallback to newest +#if !(defined(ECTESTER_MBEDTLS_MAJOR) && defined(ECTESTER_MBEDTLS_MINOR) && defined(ECTESTER_MBEDTLS_PATCH)) +#define ECTESTER_MBEDTLS_MAJOR 99 +#define ECTESTER_MBEDTLS_MINOR 99 +#define ECTESTER_MBEDTLS_PATCH 99 +#endif + + #if VERSION_LT(MBEDTLS, 3, 0, 0) #define MBEDTLS_PRIVATE(member) member #else -- cgit v1.3.1