Silence clang-tidy warnings in ML-KEM Change-Id: I9407b2d4e754ef6cf8abf1631fe904ac7cd7cbc7 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/70410 Auto-Submit: Bob Beck <bbe@google.com> Commit-Queue: Adam Langley <agl@google.com> Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/mlkem/internal.h b/crypto/mlkem/internal.h index 9a262c3..a8d44c3 100644 --- a/crypto/mlkem/internal.h +++ b/crypto/mlkem/internal.h
@@ -46,7 +46,7 @@ uint8_t out_ciphertext[MLKEM768_CIPHERTEXT_BYTES], uint8_t out_shared_secret[MLKEM_SHARED_SECRET_BYTES], const struct MLKEM768_public_key *public_key, - const uint8_t seed[MLKEM_ENCAP_ENTROPY]); + const uint8_t entropy[MLKEM_ENCAP_ENTROPY]); // MLKEM768_marshal_private_key serializes |private_key| to |out| in the // NIST format for ML-KEM-768 private keys. It returns one on success or
diff --git a/crypto/mlkem/mlkem.cc b/crypto/mlkem/mlkem.cc index eca8134..a79ccf7 100644 --- a/crypto/mlkem/mlkem.cc +++ b/crypto/mlkem/mlkem.cc
@@ -17,8 +17,11 @@ #include <assert.h> #include <stdint.h> #include <stdlib.h> +#include <string.h> +#include <openssl/base.h> #include <openssl/bytestring.h> +#include <openssl/mem.h> #include <openssl/rand.h> #include "../internal.h"
diff --git a/crypto/mlkem/mlkem_test.cc b/crypto/mlkem/mlkem_test.cc index 581eea5..bf99695 100644 --- a/crypto/mlkem/mlkem_test.cc +++ b/crypto/mlkem/mlkem_test.cc
@@ -12,13 +12,16 @@ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include <cstdint> #include <vector> #include <string.h> #include <gtest/gtest.h> +#include <openssl/base.h> #include <openssl/bytestring.h> +#include <openssl/mem.h> #include <openssl/mlkem.h> #include "../keccak/internal.h"