Giter Site home page Giter Site logo

verify-ldp's Introduction

verify-ldp

This repository is based on this brilliant remote attestation sample code https://github.com/svartkanin/linux-sgx-remoteattestation. So, you should check some dependencies, and the repository maybe does not support SDK and API of latest version.

description

Overview, Client(Service Provider or ISV) sends their private data to Server(Service Provider or ISV) on TLS session.

Client verify Server's runtime and program integirity using remote attestation.

branch: master and server-is-sp is mode where Client is ISV with TEE and Server is SP without TEE.

Client send encrypted private data in SGX to Server, data is perturbed with Randomized Response in TEE at client side.

And branch: client-is-sp is mode where Server is ISV with TEE and Client is SP without TEE.

Client send private data to Server through secure channel with SGX at server side, data is perturbed with Randomized Response in SGX at server side.

execution

Supporting IAS v3 API and v2.8 sgxsdk I use my fork sdk https://github.com/FumiyukiKato/linux-sgx

You have to set up your processor with Intel SGX and sgxsdk and register Intel Attestation Service and get nesessary information to commuticate with IAS.

Set following env variables.

static string server_crt    = std::getenv("SERVER_CRT"); // certificate for the HTTPS connection between the SP and the App
static string server_key    = std::getenv("SERVER_KEY"); // private key for the HTTPS connection
static string spid          = std::getenv("RA_SPID"); // SPID provided by Intel after registration for the IAS service
static const char *ias_crt  = std::getenv("CA"); // location of a trusted Attestation Report Signing CA Certificate
static string primary_key   = std::getenv("AS_PRIMARY_KEY"); // IAS api key
static string secondary_key = std::getenv("AS_SECONDARY_KEY");

You have to set mrenclave value of sgx_report_t and mrsigner value because they should be verified.

But I dont know how to get them without executing actually at once.

static string encalve_measurement_path = "/home/fumiyuki/workspace/verify-ldp/mrenclave.dat";
static string signer_measurement_path = "/home/fumiyuki/workspace/verify-ldp/mrsigner.dat";

bulid

./make

server

./run-server

client

./run-client

verify-ldp's People

Contributors

fumiyukikato avatar

Stargazers

Tomoya Suzuki (oshibori) avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

fengjixuchui

verify-ldp's Issues

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.