Skip to content

Commit

Permalink
basic lifting for pol1305
Browse files Browse the repository at this point in the history
  • Loading branch information
palmskog committed Sep 16, 2024
1 parent b4ed68c commit a56ad4b
Show file tree
Hide file tree
Showing 4 changed files with 620 additions and 0 deletions.
30 changes: 30 additions & 0 deletions examples/riscv/poly1305/Holmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
INCLUDES = $(HOLDIR)/examples/l3-machine-code/common \
$(HOLDIR)/examples/l3-machine-code/arm8/model \
$(HOLDIR)/examples/l3-machine-code/arm8/step \
$(HOLDIR)/examples/l3-machine-code/m0/model \
$(HOLDIR)/examples/l3-machine-code/m0/step \
$(HOLDIR)/examples/l3-machine-code/riscv/model \
$(HOLDIR)/examples/l3-machine-code/riscv/step \
$(HOLBADIR)/src/theory/bir \
$(HOLBADIR)/src/theory/bir-support \
$(HOLBADIR)/src/theory/program_logic \
$(HOLBADIR)/src/theory/tools/lifter \
$(HOLBADIR)/src/theory/tools/backlifter \
$(HOLBADIR)/src/tools/lifter \
$(HOLBADIR)/src/tools/backlifter \
$(HOLBADIR)/src/tools/exec \
$(HOLBADIR)/src/tools/comp \
$(HOLBADIR)/src/tools/wp \
$(HOLBADIR)/src/tools/backlifter \
$(HOLBADIR)/src/tools/symbexec \
$(HOLBADIR)/src/tools/symbexec/examples/common \
$(HOLBADIR)/src

all: $(DEFAULT_TARGETS)
.PHONY: all

ifdef POLY
ifndef HOLBA_POLYML_HEAPLESS
HOLHEAP = $(HOLBADIR)/src/holba-heap
endif
endif
4 changes: 4 additions & 0 deletions examples/riscv/poly1305/poly1305.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,3 +261,7 @@ poly1305_auth(unsigned char mac[16], const unsigned char *m, size_t bytes, const
poly1305_update(&ctx, m, bytes);
poly1305_finish(&ctx, mac);
}

int main(void) {
return 0;
}
Loading

0 comments on commit a56ad4b

Please sign in to comment.