Git Product home page Git Product logo

kuznyechik-2's Introduction

Kuznyechik - Russian 128-bit Block Cipher
=========================================

There are many implementations of Kuznyechik cipher on the Internet.
We have tested most of these and compared their performance as well
as some other important attributes (SIMD optimization, readability,
etc.). With this knowledge having gained, we decided to implement
a new implementation combining two major attributes: maximal speed
and good readability.

This version is mostly based on Dr. Markku-Juhani O. Saarinen's code
that is available at:

    https://github.com/mjosaarinen/kuznechik

However, his implementation did not contain an optimized native 64-bit
version without SIMD optimizations. Since we wanted to have a portable
implementation that could be run even on CPUs without SSE instructions,
we needed to add it.

The native 64-bit version has been inspired by code used in VeraCrypt,
and originally written by "kerukuro":

    https://github.com/veracrypt/veracrypt


Optimization
------------
This code contains two distinct implementations at once. You can
determine what version will be used by defining `HAVE_SSE2` macro.
Both versions, however, are optimized by using large precomputed
lookup tables.

  - If the macro is not defined, a portable version working with 64-bit
    integers will be used.

  - In the case that your CPU supports SSE2 instructions, you can enable
    SSE2 optimization by defining the `HAVE_SSE2` macro. It increases
    performance dramatically.


Notes
-----
2018-11-15 - tested on virtual big-endian machine (powerpc in qemu).

kuznyechik-2's People

Contributors

vlastavesely avatar

Watchers

 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.