Skip to content

Commit

Permalink
piv: move chuid functions out, add basic cbmc model
Browse files Browse the repository at this point in the history
  • Loading branch information
arekinath committed Mar 19, 2024
1 parent 9e5b8b5 commit 6e5120d
Show file tree
Hide file tree
Showing 3 changed files with 694 additions and 542 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ PIV_COMMON_SOURCES= \
piv.c \
piv-fascn.c \
piv-cardcap.c \
piv-chuid.c \
tlv.c \
debug.c \
bunyan.c \
Expand Down Expand Up @@ -942,6 +943,7 @@ _CBMC_TARGETS= tlv.c \
utils.c \
piv-fascn.c \
piv-cardcap.c \
piv-chuid.c \
strbuf.c
CBMC_TARGETS=$(_CBMC_TARGETS:%=.%.cbmc)

Expand Down Expand Up @@ -969,6 +971,14 @@ CBMC_AUX= cbmc-aux.c
.piv-cardcap.c.cbmc: CBMC_OPTS+= --unwindset tlv_abort.0:3
.piv-cardcap.c.cbmc: CBMC_OPTS+= --unwindset piv_cardcap_decode.0:14

.piv-chuid.c.cbmc: CBMC_AUX+=
.piv-chuid.c.cbmc: CBMC_OPTS+= --unwinding-assertions
.piv-chuid.c.cbmc: CBMC_OPTS+= --unwind 30
.piv-chuid.c.cbmc: CBMC_OPTS+= --object-bits 12
.piv-chuid.c.cbmc: CBMC_OPTS+= --unwindset tlv_read_upto.0:25
.piv-chuid.c.cbmc: CBMC_OPTS+= --unwindset tlv_abort.0:3
.piv-chuid.c.cbmc: CBMC_OPTS+= --unwindset piv_chuid_decode.1:14

.tlv.c.cbmc: CBMC_AUX+=
.tlv.c.cbmc: CBMC_OPTS+= --unwind 10
.tlv.c.cbmc: CBMC_OPTS+= --unwinding-assertions
Expand Down
Loading

0 comments on commit 6e5120d

Please sign in to comment.