Giter VIP home page Giter VIP logo

prince-vhdl's Introduction

PRINCE block cipher - VHDL implementation

This is an implementation of the PRINCE lightweight block cipher as described in this paper. It encrypts individual blocks of 64 bit length with a 128 bit key.

PRINCE was specifically designed to achieve minimum latency while still providing good security. In addition, the area requirement of a hardware implementation should be small enough to allow the cipher to be used in very constrained environments.

Design

The authors of PRINCE encourage using a fully-unrolled design, i.e. having separate components for every round of the cipher, which are chained together. This ensures minimum latency with acceptable area overhead; one plaintext block is encrypted in a single clock cycle.

Implementation

prince_top is the top-level module. It performs key whitening at the start and end of the algorithm. In between, the actual encryption is performed by calling prince_core.

prince_core is the actual cipher implementation. It generates all the components for the 12 rounds of the cipher.

S-Boxes (non-linear layer) and permutation (linear layer) reside in separate files (sbox, linear_m etc.).

Xilinx Vivado project file

The Vivado project file (*.xpr) is configured to use the Digilent Zybo FPGA board for synthesis. This board is not available by default in Vivado (at least not if you are using the WebPACK edition). To obtain the required board files for the Zybo (and other boards by Digilent), refer to this wiki entry.

License

The code is licensed under the terms of the MIT license. For more information, please see the LICENSE.md file.

prince-vhdl's People

Contributors

huljar avatar amnesia13 avatar

Stargazers

Yubo Zhang avatar  avatar Timothy avatar Hosein Hadipour avatar

Watchers

 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.