Coder Social home page Coder Social logo

coalesce's Introduction

pyCertCoalesce

Super Simplified Design with RBAC (Role-Based Access Control)

  • Preparation
    • Let N and G be the elliptic curve arguments.
    • Let key expansion function f(role,i) = HKDF(seed, sha256(role)^i).
    • A trust schema that decides the roles/scopes binding to each device.
  • Bootstrapping
    • DEVICE generates a master ECC key (a,A).
    • DEVICE proves its identity to CA and sends A to CA.
    • CA generates an 128-bit AES key seed.
    • CA encrypts seed with A and sends back to DEVICE.
    • DEVICE decrypts seed with a.
    • DEVICE only needs to store seed and a in its storage.
  • Private Key Derivation
    • DEVICE infers the roles/scopes it has access to and the i set from the trust schema.
    • For each role/scope name role and time-related number i (<=128-bit), DEVICE computes f(role,i).
    • The corresponding private key is b_{role,i} = (a+f(role,i))%N.
  • Public Key Derivation
    • CA infers the roles/scopes DEVICE has access to and the i set from the trust schema.
    • For each role/scope name role and time-related number i (<=128-bit), CA computes f(role,i).
    • The corresponding public key is B_{role,i} = A+f(role,i)*G.

Hackathon Demo

High level description of CertCoalesce.

To install the package

python3 setup.py install

Running the demo

Run demo.py:

python3 examples/demo.py

coalesce's People

Contributors

zjkmxy avatar cawka avatar proyashpodder avatar sanjeevr93 avatar

Watchers

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