Skip to content

Commit

Permalink
Merge branch 'dev' into dev-constant-time
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikbhargavan authored Sep 9, 2024
2 parents b01cd8c + 7dc12e9 commit a259ee4
Show file tree
Hide file tree
Showing 28 changed files with 1,674 additions and 2,193 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion fstar-helpers/Makefile.base
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Base Makefile for F* in libcrux.
# This inherits from Makefile.generic, and adds the `specs` folder from HACL and the `libcrux-ml-kem/proofs/fstar/spec` folder.

FSTAR_INCLUDE_DIRS_EXTRA = $(HACL_HOME)/specs $(shell git rev-parse --show-toplevel)/libcrux-ml-kem/proofs/fstar/spec $(shell git rev-parse --show-toplevel)/fstar-helpers/fstar-bitvec
VERIFY_SLOW_MODULES ?= no
ifeq (${VERIFY_SLOW_MODULES},no)
ADMIT_MODULES += ${SLOW_MODULES}
endif

EXTRA_HELPMESSAGE += printf "Libcrux specifics:\n";
EXTRA_HELPMESSAGE += target SLOW_MODULES 'a list of modules to verify fully only when `VERIFY_SLOW_MODULES` is set to `yes`. When `VERIFY_SLOW_MODULES`, those modules are admitted.';
EXTRA_HELPMESSAGE += target VERIFY_SLOW_MODULES '`yes` or `no`, defaults to `no`';

FSTAR_INCLUDE_DIRS_EXTRA += $(HACL_HOME)/specs $(shell git rev-parse --show-toplevel)/libcrux-ml-kem/proofs/fstar/spec $(shell git rev-parse --show-toplevel)/fstar-helpers/fstar-bitvec
include $(shell git rev-parse --show-toplevel)/fstar-helpers/Makefile.generic
2 changes: 1 addition & 1 deletion fstar-helpers/Makefile.generic
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ echo "Variables:"
target "NO_COLOR" "Set to anything to disable colors"
target "ADMIT_MODULES" "List of modules where F* will assume every SMT query"
target "FSTAR_INCLUDE_DIRS_EXTRA" "List of extra include F* dirs"
${EXTRA_HELPMESSAGE}
endef
export HELPMESSAGE

Expand All @@ -215,7 +216,6 @@ describe:
@printf ' - ${ANSI_COLOR_BLUE}HINT_DIR${ANSI_COLOR_RESET} = %s\n' '${HINT_DIR}'
@printf ' - ${ANSI_COLOR_BLUE}ADMIT_MODULE_FLAGS${ANSI_COLOR_RESET} = %s\n' '${ADMIT_MODULE_FLAGS}'
@printf ' - ${ANSI_COLOR_BLUE}FSTAR_INCLUDE_DIRS_EXTRA${ANSI_COLOR_RESET} = %s\n' '${FSTAR_INCLUDE_DIRS_EXTRA}'
@printf ' - ${ANSI_COLOR_BLUE}OTHERFLAGS${ANSI_COLOR_RESET} = %s\n' '${OTHERFLAGS}'

help: ;@bash -c "$$HELPMESSAGE"
h: ;@bash -c "$$HELPMESSAGE"
Expand Down
255 changes: 0 additions & 255 deletions fstar-helpers/Makefile.template

This file was deleted.

32 changes: 0 additions & 32 deletions fstar-helpers/fstar-bitvec/Makefile
Original file line number Diff line number Diff line change
@@ -1,33 +1 @@
ADMIT_MODULES = Libcrux_ml_kem.Ind_cca.Unpacked.fst \
Libcrux_ml_kem.Ind_cca.fst \
Libcrux_ml_kem.Ind_cpa.fst \
Libcrux_ml_kem.Ind_cpa.fsti \
Libcrux_ml_kem.Invert_ntt.fst \
Libcrux_ml_kem.Matrix.fst \
Libcrux_ml_kem.Ntt.fst \
Libcrux_ml_kem.Polynomial.fst \
Libcrux_ml_kem.Sampling.fst \
Libcrux_ml_kem.Serialize.fst \
Libcrux_ml_kem.Vector.Rej_sample_table.fsti \
Libcrux_ml_kem.Vector.Avx2.Arithmetic.fst \
Libcrux_ml_kem.Vector.Avx2.Compress.fst \
Libcrux_ml_kem.Vector.Avx2.fst \
Libcrux_ml_kem.Vector.Avx2.Ntt.fst \
Libcrux_ml_kem.Vector.Avx2.Portable.fst \
Libcrux_ml_kem.Vector.Avx2.Sampling.fst \
Libcrux_ml_kem.Vector.Avx2.Serialize.fst \
Libcrux_ml_kem.Vector.Neon.Arithmetic.fst \
Libcrux_ml_kem.Vector.Neon.Compress.fst \
Libcrux_ml_kem.Vector.Neon.fst \
Libcrux_ml_kem.Vector.Neon.Ntt.fst \
Libcrux_ml_kem.Vector.Neon.Serialize.fst \
Libcrux_ml_kem.Vector.Neon.Vector_type.fst \
Libcrux_ml_kem.Vector.Portable.Arithmetic.fst \
Libcrux_ml_kem.Vector.Portable.Compress.fst \
Libcrux_ml_kem.Vector.Portable.Ntt.fst \
Libcrux_ml_kem.Vector.Portable.Sampling.fst \
Libcrux_ml_kem.Vector.Portable.Vector_type.fst \
Libcrux_ml_kem.Vector.Traits.fst

OTHERFLAGS += --unsafe_tactic_exec
include $(shell git rev-parse --show-toplevel)/fstar-helpers/Makefile.base
Loading

0 comments on commit a259ee4

Please sign in to comment.