Giter Site home page Giter Site logo

yucao42 / aes_gcm Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 2.0 2.12 MB

Try to implement GCM-AES encryption algorithm on FPGA hardware and test it by software.

SystemVerilog 50.74% Tcl 1.57% Jupyter Notebook 4.29% Python 35.16% Shell 0.08% Verilog 5.70% C 1.58% Vim Script 0.88%

aes_gcm's Introduction

Galois Counter Mode AES Encryption in Verilog and Software Test Tool

GCM-AES implementation in Verilog

This is a "pipelined" version of hardware implementaion in system-verilog. Here I pipeline the key expansion process into 15 steps to address the SLACK problem. This implements encryption in 110MHz. Throughput is 2 * 128bits * 200M = 51.2 Gbps. Worst SLACK is 0.04 ns. Reference AES.

Usage

Requirement:

  1. Vivado 16.4 or higher.

  2. Implementaion is on a SUME FPGA board.

Simulation:

  1. Modify the simulation file test128.sv.

  2. In the directory run:

bash shell/sim.bash

Implementation

  1. Run:
bash shell/make.bash
  1. Download the bitstream file to hardware.

  2. ATTENTION It is a real-time running version of 128 bit encryption which only supports 128-bit-multiple input by now.

Software validation is in the pyaes repository

Usage

  1. Run:
cd pyaes
ipython3 notebook
  1. Modify and run the pyaes\test.py to get the right encryption result for 128-bit-mulitple input. Or you can migrate to ipython notebook to debug it. And modify the input in test128.sv to check if the SW/HW results coincide.

TODO:

  1. (Now 15 clks) Further parallelize the data links.
  2. (Done encryption part) Double the data rate by using data on falling and rising edge.

aes_gcm's People

Contributors

yucao42 avatar

Stargazers

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