Skip to content

Commit 79260d4

Browse files
committed
Use SHA-256 for program hash in witnesses
SHA-256 is required by witness specification. It is now checked by the witness linter in SV-COMP.
1 parent 486eda9 commit 79260d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool-wrapper.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ process_graphml()
100100
<data key=\"producer\">$(echo $TOOL_NAME)<\/data>
101101
<data key=\"specification\">$(<$PROP_FILE)<\/data>
102102
<data key=\"programfile\">$(echo ${BM[0]} | sed 's8/8\\/8g')<\/data>
103-
<data key=\"programhash\">$(sha1sum ${BM[0]} | awk '{print $1}')<\/data>
103+
<data key=\"programhash\">$(sha256sum ${BM[0]} | awk '{print $1}')<\/data>
104104
<data key=\"architecture\">${BIT_WIDTH}bit<\/data>
105105
<data key=\"creationtime\">$(date -Iseconds)<\/data>\\Q/"
106106
fi

0 commit comments

Comments
 (0)