-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closer to being able to be re-enabled. Cryptol type checking failures on MD5 remain.
- Loading branch information
Aaron Tomb
committed
Oct 21, 2015
1 parent
d7a1c80
commit ae78026
Showing
4 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
JavaMD5.class: JavaMD5.java | ||
javac -cp ../../deps/jvm-verifier/jars/bcprov-jdk16-145.jar:../../deps/jvm-verifier/jars/galois.jar JavaMD5.java | ||
javac -g -cp ../../deps/jvm-verifier/jars/bcprov-jdk16-145.jar:../../deps/jvm-verifier/jars/galois.jar JavaMD5.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import "../support/MD5.cry"; | ||
|
||
let main = do { | ||
c <- java_load_class "JavaMD5"; | ||
java_md5 <- java_extract c "computeMD5" java_pure; | ||
let md5_spec = do { | ||
msg <- java_var "msg" (java_array 16 java_byte); | ||
java_var "out" (java_array 16 java_byte); | ||
java_ensure_eq "out" {{ md5_ref msg }}; | ||
}; | ||
|
||
let thm1 = {{ \x -> md5_ref x == java_md5 x }}; | ||
prove_print abc thm1; | ||
}; | ||
c <- java_load_class "JavaMD5"; | ||
java_verify c "computeMD5" [] md5_spec; |