Closed gengarrrr closed 3 days ago
To @mn200: The student project has finished. I suggest we just merging the present work as is (please squash all commits to one), and I will handle the remaining work, including code cleanup.
To @mn200: The student project has finished. I suggest we just merging the present work as is (please squash all commits to one), and I will handle the remaining work, including code cleanup.
Thanks a lot for the guidance and support
I added some Differential Cryptanalysis related properties and part of RC5 definitions.
They help define the probability space in HOL4, create partly the probability definition "X may cause Y with probability p by the F function " . Prove the lemma "In DES if X -> Y with probability p by the F function, then every fixed input pair Z, Z with Z' = Z -> Z = X causes the F function output XOR to be Y by the same fraction p of the possible subkey values." and "The probability p of X -> Y by the F function is the product of Pi in which Xi -> Yi by the S boxes Si (i ~ {1 ..... 8})"
Then I define the RC5 partly in HOL4
The " ' " version simplify the encrypt and decrypt process and show the correctness by encrypting and decrypting that return the originial message.