diff options
author | Bob Beck <bbe@google.com> | 2024-03-12 20:16:18 +0000 |
---|---|---|
committer | Boringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-05-08 22:04:25 +0000 |
commit | 7c44f450547cc777229462c2ac864a9326c0106c (patch) | |
tree | f4e95658b7aa0f6b9ae923883ba3c86658961a4a /build.json | |
parent | 6ab7c1482bf4cdc91c87bc512aaf68ffb18975ec (diff) | |
download | boringssl-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.json | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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", |