Giter VIP home page Giter VIP logo

post-quantum-cryptographic-implementation's Introduction

post-quantum-cryptographic-implementation

Latis based post quantum cryptographic algorithm implementation

prerequisite

  1. libsodium Library

    • installation:
      • on Ubuntu: sudo apt-get install -y libsodium-dev

      • on Mac: brew install libsodium

  2. boost

    • installation:
      • on Ubuntu : sudo apt-get install libboost-all-dev

      • on Mac: brew install boost

  3. crypto++

    • installation:
      • on ubuntu : sudo apt-get install libcrypto++-dev libcrypto++-doc libcrypto++-utils

compilation

g++ input.cpp -o output -lsodium -DEIGEN_STACK_ALLOCATION_LIMIT=0

for mac

g++ RegevsCryptoSystemWithAES.cpp -pthread -lsodium -std=c++14 ../../RandomOracle/randomNumberGeneration.cpp ../../Matrix/Matrix.cpp ../../cryptopp/libcryptopp.a ../../AESHelper/AESHelper.cpp ../../FileHelper/FileHelper.cpp

g++ DualCryptoSystemWithAES.cpp -pthread -lsodium -std=c++14 ../../RandomOracle/randomNumberGeneration.cpp ../../Matrix/Matrix.cpp ../../cryptopp/libcryptopp.a ../../AESHelper/AESHelper.cpp ../../FileHelper/FileHelper.cpp

for Ubuntu

g++ RegevsCryptoSystemWithAES.cpp -pthread -lsodium -lcryptopp -std=c++14 ../../RandomOracle/randomNumberGeneration.cpp ../../Matrix/Matrix.cpp ../../AESHelper/AESHelper.cpp ../../FileHelper/FileHelper.cpp

g++ DualCryptoSystemWithAES.cpp -pthread -lsodium -lcryptopp -std=c++14 ../../RandomOracle/randomNumberGeneration.cpp ../../Matrix/Matrix.cpp ../../AESHelper/AESHelper.cpp ../../FileHelper/FileHelper.cpp

if including helper functions

g++ input.cpp -o output ../Helper/Helper.cpp

For Regev Hybrid Crypto system compilation

g++ -DNDEBUG=1 -g3 -O2 -Wextra AESRegevsCryptoSystemMultibits.cpp -o hybrid -lcryptopp -lsodium -DEIGEN_STACK_ALLOCATION_LIMIT=0

-DEIGEN_STACK_ALLOCATION_LIMIT=0 flag required to set EIGEN_STACK_ALLOCATION_LIMIT for Eigen matrixes

##For openssl implementation

g++ -O2 ssl.cpp -lm -o output -lcrypto -lsodium -DEIGEN_STACK_ALLOCATION_LIMIT=0

execution

./output

post-quantum-cryptographic-implementation's People

Contributors

dininduwm avatar harshanabandara avatar thusharaweerasundara avatar

Watchers

 avatar

Forkers

harshanabandara

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.