@@ -6,9 +6,7 @@ EC_FLAGS ?= -timeout 20 ${ECADDFLAGS}
66
77JASMIN2EC ?= jasmin2ec
88JASMIN2EC_FLAGS ?= --array-model=old
9-
10- JPP := ../submodules/jasmin-preprocessor/jpp
11- PREPROCESSOR := ../submodules/jasmin-preprocessor/preprocessor
9+ JPATH := JASMINPATH="XMSS=../ref-jasmin:Stdlib=../ref-jasmin/stdlib"
1210
1311# --------------------------------------------------------------------------------------------------
1412
@@ -26,8 +24,11 @@ extract: extraction/XMSS_IMPL.ec
2624common/Array8.ec : | common/
2725 printf " from Jasmin require import JArray.\n\nclone export PolyArray as Array8 with op size <- 8.\n" > $@
2826
29- extraction/XMSS_IMPL.ec : extraction/XMSS_IMPL.jazz | common/
30- $(JASMIN2EC ) $(JASMIN2EC_FLAGS ) $< -o $@
27+ extraction/XMSS_IMPL.ec : ../ref-jasmin/xmss/xmss.jinc | common/
28+ printf " from XMSS require \" params/params-xmssmt-sha2_20_2_256.jinc\" " > tmp
29+ cat $< >> tmp
30+ $(JPATH ) $(JASMIN2EC ) $(JASMIN2EC_FLAGS ) tmp -o $@
31+ -$(RM ) tmp
3132 mv extraction/WArray* common/
3233 mv extraction/Array* common/
3334
@@ -53,17 +54,8 @@ check_extraction: extraction/XMSS_IMPL.ec
5354
5455# ################################## correctness proof ##############################################
5556
56- # The targets check_c_* are used to check the correctness proof files
57- # FIXME: Why are these individual jobs rather than a single runtest scenario?
58- # TODO: After checking for Chesterton's fence, replace this entire section with
59- # check_correctness_proof: extraction/XMSS_IMPL.ec
60- # $(ECRUNTEST) config/tests.config correctness
61- check_c_% : extraction/XMSS_IMPL.ec
62- $(EASYCRYPT ) $(EC_FLAGS ) correctness/$* .ec
63-
64- CORRECTNESS_PROOF_FILES := $(addprefix check_c_, $(notdir $(basename $(wildcard correctness/* .ec) ) ) )
65-
66- check_correctness_proof : extraction/XMSS_IMPL.ec $(CORRECTNESS_PROOF_FILES )
57+ check_correctness_proof : extraction/XMSS_IMPL.ec
58+ $(ECRUNTEST ) config/tests.config correctness
6759
6860# ###################################################################################################
6961
0 commit comments