Giter VIP home page Giter VIP logo

bikeforpqm4's Introduction

BIKE KEM implenetations on Arm Cortex-M4

There are 4 implementatins in 4 directories:

  • bikel1portable : BIKE level 1, implementation from BIKE team, adapted from supercop-20200906/crypto_kem/bikel1/portable/ .

  • bikel3portable : BIKE level 3, implementation from BIKE team, adapted from supercop-20200906/crypto_kem/bikel3/portable/ .

  • bikel1m4 : BIKE level 1, this work, modified from BIKE team's portable version.

  • bikel3m4 : BIKE level 3, this work, modified from BIKE team's portable version.

    portablel1 and portablel3 were adapted from the BIKE team's portable implementation in SUPERCOP. Specifically, we changed line 29 and 30 in sampling_portable.c to

< uint32_t pos_qw[MAX_WLIST_SIZE];
< uint64_t pos_bit[MAX_WLIST_SIZE];
from

size_t pos_qw[MAX_WLIST_SIZE];
size_t pos_bit[MAX_WLIST_SIZE];

The original implementation presumed size_t a 64-bit data type, which is not true in 32-bit machines.

Instructions for benchmarking on PQM4

  1. Download and Setup benchmarking environment for PQM4 from https://github.com/mupq/pqm4 .
  2. Copy the imple/ directory to pqm4/crypto_kem/your_desired_name/ . For example,
    'cp -r crypto_kem/bikel1m4 pqm4/crypto_kem/bikel1m4'
    assuming the PQM4 is installed in the pqm4 directory.
  3. Use standard tester on PQM4 for the implementation you copied. For example, in the pqm4 directory, execute
    'python3 test.py'
    or
    'make IMPLEMENTATION_PATH=crypto_kem/bikel1m4 bin/crypto_kem_bikel1m4_speed.bin; st-flash write bin/crypto_kem_bikel1m4_speed.bin 0x8000000' .
    Then collect benchmark results from the UART port of your M4 board with tools from PQM4 .

bikeforpqm4's People

Contributors

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