Skip to content

Commit a5f8c48

Browse files
committed
Add --fancy-and-powerful-but-exponentially-slow-bounds-analysis test
1 parent 75ed1a1 commit a5f8c48

File tree

12 files changed

+17
-13
lines changed

12 files changed

+17
-13
lines changed

Makefile.examples

+6-2
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,13 @@ INVALID_GO_BASE_FILES := $(BASE_FILES_NEEDING_INT128)
108108
GO_EXTRA_UNSATURATED_SOLINAS_FUNCTIONS := carry_add carry_sub carry_opp
109109
GO_EXTRA_WORD_BY_WORD_MONTGOMERY_FUNCTIONS :=
110110

111+
# We add a test for --fancy-and-powerful-but-exponentially-slow-bounds-analysis so that it's not dead code.
112+
# It doesn't really matter which curve we add this flag to, as long as it's fast.
113+
FANCY_BOUNDS_ANALYSIS_FLAG := --fancy-and-powerful-but-exponentially-slow-bounds-analysis
114+
111115
$(foreach bw,64 32,$(eval $(call add_curve_keys,curve25519_$(bw),UNSATURATED_SOLINAS,'25519',$(bw),'(auto)' '2^255 - 19',$(FUNCTIONS_FOR_25519),UNSATURATED_SOLINAS)))
112-
$(eval $(call add_curve_keys,poly1305_64,UNSATURATED_SOLINAS,'poly1305',64,'3' '2^130 - 5',$(UNSATURATED_SOLINAS_FUNCTIONS),UNSATURATED_SOLINAS))
113-
$(eval $(call add_curve_keys,poly1305_32,UNSATURATED_SOLINAS,'poly1305',32,'(auto)' '2^130 - 5',$(UNSATURATED_SOLINAS_FUNCTIONS),UNSATURATED_SOLINAS))
116+
$(eval $(call add_curve_keys,poly1305_64,UNSATURATED_SOLINAS,'poly1305',64,'3' '2^130 - 5' $(FANCY_BOUNDS_ANALYSIS_FLAG),$(UNSATURATED_SOLINAS_FUNCTIONS),UNSATURATED_SOLINAS))
117+
$(eval $(call add_curve_keys,poly1305_32,UNSATURATED_SOLINAS,'poly1305',32,'(auto)' '2^130 - 5' $(FANCY_BOUNDS_ANALYSIS_FLAG),$(UNSATURATED_SOLINAS_FUNCTIONS),UNSATURATED_SOLINAS))
114118
$(foreach bw,64 32,$(eval $(call add_curve_keys,p521_$(bw),UNSATURATED_SOLINAS,'p521',$(bw),'(auto)' '2^521 - 1',$(UNSATURATED_SOLINAS_FUNCTIONS),UNSATURATED_SOLINAS)))
115119
## 2^224 - 2^96 + 1 ## does not bounds check
116120
#$(eval $(call add_curve_keys,p224_solinas_64,UNSATURATED_SOLINAS,'p224',64,'4' '2^224 - 2^96 + 1',$(UNSATURATED_SOLINAS_FUNCTIONS),UNSATURATED_SOLINAS))

fiat-bedrock2/src/poly1305_32.c

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fiat-bedrock2/src/poly1305_64.c

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fiat-c/src/poly1305_32.c

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fiat-c/src/poly1305_64.c

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fiat-go/32/poly1305/poly1305.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fiat-go/64/poly1305/poly1305.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fiat-java/src/FiatPoly1305.java

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fiat-rust/src/poly1305_32.rs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fiat-rust/src/poly1305_64.rs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fiat-zig/src/poly1305_32.zig

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fiat-zig/src/poly1305_64.zig

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)