Git Product home page Git Product logo

e2ee_protocol's Introduction

Post-Quantum End-to-End Encryption Protocol

Benchmarks

Using CRYSTALS KYBER and AES-256 GCM.

Client Server
1. Encapsulate session key
c >
2. Decapsulate session key
3. Encrypt master key with session key
(send encrypted master key with encrypted email data)
< enc_mk, enc_data
4. Decrypt master key with session key
5. Decrypt email data with master key

Forward secrecy can't be achieved unless the master key is changed regularly and data is re-encrypted.

Step 1 Step 2 Step 3 Step 4 Step 5
KYBER-512 211 121 4 9 195
KYBER-768 301 169 4 9 195
KYBER-1024 378 241 4 9 195
PRE-QUANTUM 44 2883 4 9 195

(values in microseconds)

New pre-quantum benchmarks show an outlier of RSA decryption taking comparatively longer than previous benchmarks. The Go standard library was used. Significant overhead comes from the DecryptOAEP function within RSA.decrypt(): (DecodeKey: 9, ParsePKCS1PrivateKey: 65, DecryptOAEP: 2809).

Because of this, the post-quantum scheme actually out-performs the pre-quantum scheme. The implementation reflects actual code programmers use in the real-world. Seeing these values gives insight into real performance time of implemented end-to-end schemes. Further research to be done in Go standard library's DecryptOAEP function.

Benchmark Stages

I. Key Establishment (32 bytes)

1. Encapsulate session key

2. Decapsulate session key

3. Encrypt master key with session key

4. Decrypt master key with session key

II. Decrypting Data (150,000 bytes)

5. Decrypt email data with master key

e2ee_protocol's People

Contributors

antontutoveanu avatar

Stargazers

Mahmoud Rusty Abdelkader 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.