Git Product home page Git Product logo

tls10-cimpg's Introduction

Using CiMPG for existing large proof scores of TLS 1.0

In this repository, you can find:

  • tls.cafe: the specification of the protocol in CafeOBJ
  • proofscores directory: contains the revised proof scores of all invariants
  • cmd-cimpg directory: contains CiMPG commands for all invariants
  • generated-proofscripts directory: contains the generated proof scripts by CiMPG for all invariants

Tools installation

The verification requires CafeInMaude, which can be downloaded from here: https://github.com/ariesco/CafeInMaude. To execute CafeInMaude, we first need to intall Maude, which we can download its version 3.2 from here: http://maude.cs.illinois.edu/w/index.php/Maude_download_and_installation. For Maude, all you need to do is to download the binary file (and perhaps add the tool to the PATH environment variable to execute the tool from everywhere). For CafeInMaude, you need to clone the repo. After that, move to the next step to execute proof scores.

Executing proof scripts

Once installed CafeInMaude, you can try to run the proof scripts with CiMPA, a part of CafeInMaude. For example, to execute the proof script of inv1, we use the following commands:

maude -allow-files path-to-CafeInMaude/src/cafeInMaude.maude
load tls.cafe .
load generated-proofscripts/inv1.cafe .

where the first command starts the CafeInMaude environment (path-to-CafeInMaude is the path of the CafeInMaude folder), the second command loads the specification, and the last command loads the proof scripts. If nothing is wrong, when the execution finishes, you will see PROOF FINISHED!, meaning that inv1 is proved with that proof script. Note that you need to make sure that the paths are correct. You may need to use the absolute paths instead of the relative paths as above.

Generating proof scripts

To re-generate the proof scripts, CiMPG is used with the commands we already provided. For example, to generate the proof script of inv1 again, we use the following commands:

maude -allow-files path-to-CafeInMaude/src/cafeInMaude.maude
load cmd-cimpg/cmd1.cafe .

Again, you need to make sure that the paths are correct, for which you may need to use the absolute paths instead of the relative paths as above. The second command loads all commands written before eof (end-of-file) symbol in the cmd1.cafe file. If some amount of time, CiMPG will generate the proof script of inv1, which is saved to the file located at generated-proofscripts/inv1.cafe.

tls10-cimpg's People

Contributors

duongtd23 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.