Skip to content

Commit

Permalink
Merge pull request #137 from aqjune-aws/p256-opt
Browse files Browse the repository at this point in the history
Add hybrid `p256_montjadd` and `p256_montjdouble` for Arm, slow multipliers
  • Loading branch information
aqjune-aws authored Aug 15, 2024
2 parents 3eb104f + 3d4b79e commit 7ff619c
Show file tree
Hide file tree
Showing 28 changed files with 19,886 additions and 16,010 deletions.
7 changes: 6 additions & 1 deletion arm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ BIGNUM_OBJ = curve25519/bignum_add_p25519.o \
sm2/bignum_tomont_sm2.o \
sm2/bignum_triple_sm2.o

UNOPT_OBJ = p256/unopt/p256_montjadd.o \
p256/unopt/p256_montjdouble.o


OBJ = $(POINT_OBJ) $(BIGNUM_OBJ)

%.o : %.S ; cat $< | $(PREPROCESS) | $(SPLIT) | $(ASSEMBLE) -o $@ -
Expand Down Expand Up @@ -428,7 +432,8 @@ p521/%.correct: proofs/%.ml p521/%.o ; ../tools/run-proof.sh arm "$*" "$(HOLLIGH
secp256k1/%.correct: proofs/%.ml secp256k1/%.o ; ../tools/run-proof.sh arm "$*" "$(HOLLIGHT)" $@
sm2/%.correct: proofs/%.ml sm2/%.o ; ../tools/run-proof.sh arm "$*" "$(HOLLIGHT)" $@

run_proofs: $(PROOFS);
unopt: $(UNOPT_OBJ)
run_proofs: $(UNOPT_OBJ) $(PROOFS);

proofs: run_proofs ; ../tools/count-proofs.sh .

Expand Down
3,627 changes: 3,121 additions & 506 deletions arm/p256/p256_montjadd.S

Large diffs are not rendered by default.

2,157 changes: 1,514 additions & 643 deletions arm/p256/p256_montjdouble.S

Large diffs are not rendered by default.

Loading

0 comments on commit 7ff619c

Please sign in to comment.