Skip to content

Commit

Permalink
multirepo: formosa-25519: add preprocessed .jazz files from formosa-2…
Browse files Browse the repository at this point in the history
…5519; adjust xwing; update src/Makefile.common to slice by the expected exported function (when compiling xwing; x25519 code is not exported by default)
  • Loading branch information
tfaoliveira-sb committed Aug 5, 2024
1 parent 0b26c91 commit afbf4be
Show file tree
Hide file tree
Showing 5 changed files with 4,085 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ JINCLUDE = -I Jade:$(SRC)

JASMIN ?= jasminc
JASMINC := $(JASMIN) $(JFLAGS) $(JINCLUDE)
COMPILE = ($(JASMINC) -o $@ $<) $(CIT)
COMPILE = ($(JASMINC) $(addprefix -slice ,$(FUNCTIONS)) -o $@ $<) $(CIT)

# --------------------------------------------------------------------
include $(SRC)/$(OPERATION)/EcFlags.mk
Expand Down
2 changes: 1 addition & 1 deletion src/crypto_kem/xwing/amd64/ref/scalarmult.jinc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Jade require "crypto_scalarmult/curve25519/amd64/ref4/curve25519.jinc"
from Jade require "crypto_scalarmult/curve25519/amd64/ref4/scalarmult.jazz"

fn xwing_x25519_base_p_rp(#spill_to_mmx reg u64 qp, reg ptr u8[32] _n)
{
Expand Down
Loading

0 comments on commit afbf4be

Please sign in to comment.