-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/ add sct rule to Makefiles (imported from branch merge main with …
…sslh)
- Loading branch information
1 parent
77a35c6
commit 39ebe2e
Showing
4 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 1,8 @@ | ||
*.s | ||
*.safety | ||
*.safety_* | ||
*.sct | ||
*.sct_* | ||
*.o | ||
*.a | ||
_build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,32 @@ | ||
# Notes: | ||
# - this file defines fine-grained targets that allow checking the speculative constant-time of individual exported | ||
# functions | ||
# - it is meant to be included by Makefile.common | ||
|
||
ifneq ($(OP),) | ||
|
||
SCT_FLAGS ?= | ||
|
||
CHECK_SCT_S = ($(JASMINC) -slice $* -checkSCT $(SCT_FLAGS) $< > $@ 2>&1) $(CIT) | ||
CHECK_SCT = ($(JASMINC) -checkSCT $(SCT_FLAGS) $< > $@ 2>&1) $(CIT) | ||
|
||
SCT_TARGETS = $(addsuffix .sct, $(FUNCTIONS)) | ||
|
||
sct: $(SCT_TARGETS) | ||
|
||
$(OP).sct : $(OP).jazz $(DEPS_DIR)/$(OP).sct.d | $(DEPS_DIR) $(CI_DIR) | ||
$(DEPS) | ||
$(CHECK_SCT) | ||
|
||
$(SCT_TARGETS): | ||
%.sct : $(OP).jazz $(DEPS_DIR)/%.sct.d | $(DEPS_DIR) $(CI_DIR) | ||
$(DEPS) | ||
$(CHECK_SCT_S) | ||
|
||
DEPFILES := \ | ||
$(DEPFILES) \ | ||
$(addprefix $(DEPS_DIR)/, $(addsuffix .sct.d, $(FUNCTIONS) $(OP))) | ||
|
||
$(SCT_DIR): ; @mkdir -p $@ | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters