aboutsummaryrefslogtreecommitdiff
path: root/build.json
diff options
context:
space:
mode:
authorBob Beck <bbe@google.com>2024-03-12 20:16:18 +0000
committerBoringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-05-08 22:04:25 +0000
commit7c44f450547cc777229462c2ac864a9326c0106c (patch)
treef4e95658b7aa0f6b9ae923883ba3c86658961a4a /build.json
parent6ab7c1482bf4cdc91c87bc512aaf68ffb18975ec (diff)
downloadboringssl-7c44f450547cc777229462c2ac864a9326c0106c.zip
boringssl-7c44f450547cc777229462c2ac864a9326c0106c.tar.gz
boringssl-7c44f450547cc777229462c2ac864a9326c0106c.tar.bz2
Re-apply dilithium and make it work with a limited stack
This reverts commit a56407d27da6ebf63ae9817dc19587a0ae98ef4a. On top of this it then makes changes to make dilithium work without consuming excessive stack space.. This makes DILITHIUM_sign and DILITHIUM_generate_key and friends fallible for malloc failures. It removes the abort() calls that were previously present if CBB allocations did not work and rolls them into the malloc failure case. Change-Id: Ibcd70a98bb500c76df8885c0a7d06f8e9f5b18c3 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/67027 Commit-Queue: Bob Beck <bbe@google.com> Reviewed-by: Adam Langley <agl@google.com> Reviewed-by: Guillaume Endignoux <guillaumee@google.com> Reviewed-by: Sophie Schmieg <sschmieg@google.com>
Diffstat (limited to 'build.json')
-rw-r--r--build.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.json b/build.json
index 1169344..efd7d77 100644
--- a/build.json
+++ b/build.json
@@ -229,6 +229,7 @@
"crypto/dh_extra/params.c",
"crypto/dh_extra/dh_asn1.c",
"crypto/digest_extra/digest_extra.c",
+ "crypto/dilithium/dilithium.c",
"crypto/dsa/dsa.c",
"crypto/dsa/dsa_asn1.c",
"crypto/ecdh_extra/ecdh_extra.c",
@@ -424,6 +425,7 @@
"include/openssl/evp.h",
"include/openssl/evp_errors.h",
"include/openssl/ex_data.h",
+ "include/openssl/experimental/dilithium.h",
"include/openssl/experimental/kyber.h",
"include/openssl/experimental/spx.h",
"include/openssl/hkdf.h",
@@ -482,6 +484,7 @@
"crypto/curve25519/curve25519_tables.h",
"crypto/curve25519/internal.h",
"crypto/des/internal.h",
+ "crypto/dilithium/internal.h",
"crypto/dsa/internal.h",
"crypto/ec_extra/internal.h",
"crypto/err/internal.h",
@@ -799,6 +802,7 @@
"crypto/ecdh_extra/ecdh_test.cc",
"crypto/dh_extra/dh_test.cc",
"crypto/digest_extra/digest_test.cc",
+ "crypto/dilithium/dilithium_test.cc",
"crypto/dsa/dsa_test.cc",
"crypto/err/err_test.cc",
"crypto/evp/evp_extra_test.cc",
@@ -853,6 +857,7 @@
"crypto/cipher_extra/test/*.txt",
"crypto/cipher_extra/test/nist_cavp/*.txt",
"crypto/curve25519/ed25519_tests.txt",
+ "crypto/dilithium/dilithium_tests.txt",
"crypto/ecdh_extra/ecdh_tests.txt",
"crypto/evp/evp_tests.txt",
"crypto/evp/scrypt_tests.txt",