GithubHelp home page GithubHelp logo

sllvm's Introduction

Security Enhanced LLVM

This is the main source code repository for Security Enhanced LLVM (SLLVM).

Building from Source

This section documents the current best way to build and install the SLLVM toolchain from source. The GNU make based build system has been developed to work on a fresh Ubuntu 18.04.1 LTS installation, but it should be fairly straightforward to port to other GNU/Linux distributions.

  1. Make sure you have installed the following dependencies.

    • GNU make 3.81 or later
    • git
    sudo apt install make git
  2. Clone the Git repository.

    git clone https://github.com/hanswinderix/sllvm.git
    cd sllvm
  3. Install the following additional dependencies.

    • curl
    • cmake 3.4.3 or later
    • g++ 4.7 or later
    • texinfo
    • Python 3
    • pip3 (for Python 3+)
    • pyelftools (Python 3+)
    • msp430-gcc 4.6 or later
    • expect
    • tcl
    • iverilog
    • clang-sancus
    sudo -H make install-deps

    Note: The msp430-gcc and clang-sancus dependencies are only required to build the legacy sancus compiler. These dependencies will disappear in the future.

  4. (Optional) Create and edit Makefile.local for local build configuration.

    The following GNU make variables can be set.

    Variable name Purpose
    JOBS Specifies the number of jobs to run simultaneously
    BUILD_TYPE Debug or Release build
    SANCUS_KEY Sancus master key in hexadecimal notation
  5. Fetch other repositories and configure the build.

    $ make fetch
    $ make configure
  6. Build and install.

    $ make install

Running the Sancus examples

$ make test-sancus

Sancus Protected Modules in C

See Sancus Examples for examples on how to develop Sancus protected modules with the SLLVM-based toolchain.

Intel SGX enclaves in C

See the Security Enhanced LLVM master's thesis for more information on how to develop Intel SGX enclaves in C with the SLLVM-based toolchain.

Sancus Protected modules in Rust

See the Security Enhanced LLVM master's thesis for more information on how to develop Sancus protected modules in Rust with the SLLVM-based toolchain.

Intel SGX enclaves in Rust

See the Security Enhanced LLVM master's thesis for more information on how to develop Intel SGX enclaves in Rust with the SLLVM-based toolchain.

License

See LICENSE for details.

sllvm's People

Contributors

hanswinderix avatar martonbognar avatar

Stargazers

 avatar  avatar  avatar Jevin Sweval avatar K avatar  avatar Jo Van Bulck avatar

Watchers

Jevin Sweval avatar James Cloos avatar  avatar gmh 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.