Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemas committed Jan 9, 2025
1 parent 7a9cb06 commit 2bf5dfa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
11 changes: 2 additions & 9 deletions crypto/fipsmodule/bcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
#include "ec/p256.c"
#include "ec/p256-nistz.c"
#include "ec/p384.c"
#include "ec/p521.c"
#include "ec/scalar.c"
#include "ec/simple.c"
#include "ec/simple_mul.c"
Expand All @@ -128,14 +129,6 @@
#include "md4/md4.c"
#include "md5/md5.c"
#include "ml_dsa/ml_dsa.c"
#include "ml_dsa/ml_dsa_ref/ntt.c"
#include "ml_dsa/ml_dsa_ref/packing.c"
#include "ml_dsa/ml_dsa_ref/params.c"
#include "ml_dsa/ml_dsa_ref/poly.c"
#include "ml_dsa/ml_dsa_ref/polyvec.c"
#include "ml_dsa/ml_dsa_ref/reduce.c"
#include "ml_dsa/ml_dsa_ref/rounding.c"
#include "ml_dsa/ml_dsa_ref/sign.c"
#include "ml_kem/ml_kem.c"
#include "modes/cbc.c"
#include "modes/cfb.c"
Expand Down Expand Up @@ -167,7 +160,7 @@
#include "sha/sha512.c"
#include "sshkdf/sshkdf.c"
#include "tls/kdf.c"
#include "ec/p521.c"


#if defined(BORINGSSL_FIPS)

Expand Down
11 changes: 11 additions & 0 deletions crypto/fipsmodule/ml_dsa/ml_dsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
#include "ml_dsa_ref/params.h"
#include "ml_dsa_ref/sign.h"

// These includes are required to compile ML-DSA. These can be moved to bcm.c
// when ML-DSA is added to the fipsmodule directory.
#include "./ml_dsa_ref/ntt.c"
#include "./ml_dsa_ref/packing.c"
#include "./ml_dsa_ref/params.c"
#include "./ml_dsa_ref/poly.c"
#include "./ml_dsa_ref/polyvec.c"
#include "./ml_dsa_ref/reduce.c"
#include "./ml_dsa_ref/rounding.c"
#include "./ml_dsa_ref/sign.c"

// Note: These methods currently default to using the reference code for
// ML-DSA. In a future where AWS-LC has optimized options available,
// those can be conditionally (or based on compile-time flags) called here,
Expand Down

0 comments on commit 2bf5dfa

Please sign in to comment.