Giter Site home page Giter Site logo

boumlykmohamed / the-mceliece-cryptosystem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from varad0612/the-mceliece-cryptosystem

0.0 0.0 0.0 15 KB

This is the C implementation of the McEliece Cryptosystem based on QC-MDPC codes.

Makefile 5.86% C 89.19% C++ 4.94%

the-mceliece-cryptosystem's Introduction

The-McEliece-Crytosystem

This is the C implementation of the McEliece Crytosystem based on QC-MDPC codes. To compile and run the program:

  1. Go to the directory containing the files
  2. Type the following commands in the command prompt:

$ make
$./run

When prompted for seed, enter a large number (>10^9) or enter -1 for a random seed value.

For the input parameters n0 = 2, p = 4800, t = 84, w = 90, the program takes about 15 mins to run the encryption and decryption algorithms.

matrix_mult() and matrix_inverse() methods in the matrix.c files are the most time consuming steps.

You can also try running the program on smaller input parameters for observation and debugging purposes. (n0 = 2, p = 500, t = 10, w = 30)

To modify the input, edit the test.c file.

The message here is a random vector of length 'k'.

The following targets are provided: keygen, encrypt, decrypt

To initialize the system:
$ make init
$./init
$Enter the parameters

Enter 0, 1, 2 or 3 depending on the action.

To genrate keys:
$ make keygen
$./keygen

The public and the private keys will be stored in the files Public_Key.txt and Private_Key.txt respectively.

To encrypt:
$ make encrypt
$./encrypt

Result stored in Encryption.txt.

To decrypt:
$ make decrypt
$./decrypt

Result stored in Decryption.txt.

the-mceliece-cryptosystem's People

Contributors

varad0612 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.