Skip to content

Commit 3a8918d

Browse files
rod-chapmanmkannwischer
authored andcommitted
Correct proof Makefiles and harnesses for dir structure and name-spaceing.
Signed-off-by: Rod Chapman <[email protected]>
1 parent 8993411 commit 3a8918d

File tree

9 files changed

+12
-10
lines changed

9 files changed

+12
-10
lines changed

proofs/cbmc/pointwise_sum_of_products/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ REMOVE_FUNCTION_BODY +=
1717
UNWINDSET +=
1818

1919
PROOF_SOURCES += $(PROOFDIR)/$(HARNESS_FILE).c
20-
PROJECT_SOURCES += $(SRCDIR)/mldsa/polyvec.c
20+
PROJECT_SOURCES += $(SRCDIR)/mldsa/src/polyvec.c
2121

22-
CHECK_FUNCTION_CONTRACTS=mld_pointwise_sum_of_products
22+
CHECK_FUNCTION_CONTRACTS=$(MLD_NAMESPACE)mld_pointwise_sum_of_products
2323
USE_FUNCTION_CONTRACTS=
2424
APPLY_LOOP_CONTRACTS=on
2525
USE_DYNAMIC_FRAMES=1

proofs/cbmc/pointwise_sum_of_products/pointwise_sum_of_products_harness.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#include "polyvec.h"
55

6+
#define mld_pointwise_sum_of_products \
7+
MLD_NAMESPACE_KL(mld_pointwise_sum_of_products)
68
int64_t mld_pointwise_sum_of_products(const mld_polyvecl *u,
79
const mld_polyvecl *v, unsigned int i);
810

proofs/cbmc/poly_uniform_eta/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ REMOVE_FUNCTION_BODY +=
1717
UNWINDSET +=
1818

1919
PROOF_SOURCES += $(PROOFDIR)/$(HARNESS_FILE).c
20-
PROJECT_SOURCES += $(SRCDIR)/mldsa/poly_kl.c
20+
PROJECT_SOURCES += $(SRCDIR)/mldsa/src/poly_kl.c
2121

2222
CHECK_FUNCTION_CONTRACTS=$(MLD_NAMESPACE)poly_uniform_eta
2323
USE_FUNCTION_CONTRACTS=$(FIPS202_NAMESPACE)shake256_init
2424
USE_FUNCTION_CONTRACTS+=$(FIPS202_NAMESPACE)shake256_absorb
2525
USE_FUNCTION_CONTRACTS+=$(FIPS202_NAMESPACE)shake256_finalize
2626
USE_FUNCTION_CONTRACTS+=$(FIPS202_NAMESPACE)shake256_squeeze
2727
USE_FUNCTION_CONTRACTS+=mld_rej_eta
28-
USE_FUNCTION_CONTRACTS+=$(FIPS202_NAMESPACE)shake256_release
28+
USE_FUNCTION_CONTRACTS+=$(FIPS202_NAMESPACE)shake256_release
2929
USE_FUNCTION_CONTRACTS+=mld_zeroize
3030
APPLY_LOOP_CONTRACTS=on
3131
USE_DYNAMIC_FRAMES=1

proofs/cbmc/poly_uniform_eta/poly_uniform_eta_harness.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) The mldsa-native project authors
22
// SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
33

4-
#include "poly.h"
4+
#include "poly_kl.h"
55

66
void harness(void)
77
{

proofs/cbmc/polyvec_matrix_expand_serial/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ REMOVE_FUNCTION_BODY +=
1717
UNWINDSET +=
1818

1919
PROOF_SOURCES += $(PROOFDIR)/$(HARNESS_FILE).c
20-
PROJECT_SOURCES += $(SRCDIR)/mldsa/polyvec.c
20+
PROJECT_SOURCES += $(SRCDIR)/mldsa/src/polyvec.c
2121

2222
CHECK_FUNCTION_CONTRACTS=$(MLD_NAMESPACE)polyvec_matrix_expand
2323
USE_FUNCTION_CONTRACTS=$(MLD_NAMESPACE)poly_uniform

proofs/cbmc/polyveck_add_error/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ REMOVE_FUNCTION_BODY +=
1717
UNWINDSET +=
1818

1919
PROOF_SOURCES += $(PROOFDIR)/$(HARNESS_FILE).c
20-
PROJECT_SOURCES += $(SRCDIR)/mldsa/polyvec.c
20+
PROJECT_SOURCES += $(SRCDIR)/mldsa/src/polyvec.c
2121

2222
CHECK_FUNCTION_CONTRACTS=$(MLD_NAMESPACE)polyveck_add_error
2323
USE_FUNCTION_CONTRACTS=$(MLD_NAMESPACE)poly_add

proofs/cbmc/polyvecl_pointwise_acc_montgomery/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ PROOF_SOURCES += $(PROOFDIR)/$(HARNESS_FILE).c
2020
PROJECT_SOURCES += $(SRCDIR)/mldsa/src/polyvec.c
2121

2222
CHECK_FUNCTION_CONTRACTS=$(MLD_NAMESPACE)polyvecl_pointwise_acc_montgomery
23-
USE_FUNCTION_CONTRACTS=mld_montgomery_reduce mld_pointwise_sum_of_products
23+
USE_FUNCTION_CONTRACTS=mld_montgomery_reduce $(MLD_NAMESPACE)mld_pointwise_sum_of_products
2424
APPLY_LOOP_CONTRACTS=on
2525
USE_DYNAMIC_FRAMES=1
2626

proofs/cbmc/polyvecl_uniform_gamma1_serial/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ REMOVE_FUNCTION_BODY +=
1818
UNWINDSET += $(MLD_NAMESPACE)polyvecl_uniform_gamma1.0:7 # Largest value of MLDSA_L
1919

2020
PROOF_SOURCES += $(PROOFDIR)/$(HARNESS_FILE).c
21-
PROJECT_SOURCES += $(SRCDIR)/mldsa/polyvec.c
21+
PROJECT_SOURCES += $(SRCDIR)/mldsa/src/polyvec.c
2222

2323
CHECK_FUNCTION_CONTRACTS=$(MLD_NAMESPACE)polyvecl_uniform_gamma1
2424
USE_FUNCTION_CONTRACTS=$(MLD_NAMESPACE)poly_uniform_gamma1

proofs/cbmc/sample_s1_s2_serial/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ UNWINDSET += mld_sample_s1_s2.0:7 # Largest value of MLDSA_L
1818
UNWINDSET += mld_sample_s1_s2.1:8 # Largest value of MLDSA_K
1919

2020
PROOF_SOURCES += $(PROOFDIR)/$(HARNESS_FILE).c
21-
PROJECT_SOURCES += $(SRCDIR)/mldsa/sign.c
21+
PROJECT_SOURCES += $(SRCDIR)/mldsa/src/sign.c
2222

2323
CHECK_FUNCTION_CONTRACTS=mld_sample_s1_s2
2424
USE_FUNCTION_CONTRACTS=$(MLD_NAMESPACE)poly_uniform_eta

0 commit comments

Comments
 (0)