Skip to content

Library of hardware accelerators for popular cryptographic hash functions in SystemVerilog

License

Notifications You must be signed in to change notification settings

teobiton/cryptopen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptopen 🔐

Welcome to Cryptopen, a library of hardware implementations of cryptographic algorithms. All implementations are made using SystemVerilog, and focus is on the most widely used algorithms where hardware accelerators shine.

🚧 Work in Progress: The open source IP library is a work in progress and current focus is on FPGA development flow, synthesis flow, security features, SHA-3, whirlpool implementations. Feel free to join in!

🚀 The ultimate goal is to deliver functional open-source implementations ready for integration into System on Chips. To achieve this, we're investing in comprehensive testbenches and a seamless flow with synthesis tools. All of this using other cool open source projects. Also, the main idea behind this project is to learn as much as possible on ASIC/FPGA projects.

Cryptopen is organized as follows:

  • hw - RTL source files (SystemVerilog)
  • tb - Testbenches for the RTL files using Cocotb
  • fpga - FPGA makefile flow based on Vivado
  • doc - Documentation with high-level specifications and technical documents

In the hw folder, you'll find the top-level implementations as well as supported bus interfaces.

IPs status

Below is a status summary for each IP, regarding design and design verification status for both the algorithm core and its top-level (core + register interface). The FPGA status indicates if the IP was tested on a FPGA target. The "estimations" badge means synthesis and implementation results are available but the IP was not validated on target.

DV status

  • Static Badge
  • Static Badge
  • Static Badge
  • Static Badge

FPGA implementation results

  • Static Badge
  • Static Badge
  • Static Badge
IP Core DV Status Top-level DV Status FPGA Implementation Results
SHA-1 Static Badge Static Badge Static Badge
SHA-224 Static Badge Static Badge Static Badge
SHA-256 Static Badge Static Badge Static Badge
SHA-384 Static Badge Static Badge Static Badge
SHA-512 Static Badge Static Badge Static Badge
SHA-512/224 Static Badge Static Badge Static Badge
SHA-512/256 Static Badge Static Badge Static Badge

Available FPGA results are shown in the table below. Synthesis and implementation done with Spartan-7, Artix-7 and Genesys-2 boards, but not validated on target for now.

  • Spartan-7
IP LUTs FF Frequency estimation
SHA-1 1440 1501 149 MHz
SHA-224 1945 1897 142 MHz
SHA-256 1945 1896 142 MHz
SHA-384 3971 3586 125 MHz
SHA-512 4132 3572 125 MHz
SHA-512/224 3868 3579 127 MHz
SHA-512/256 3906 3573 125 MHz
  • Artix-7
IP LUTs FF Frequency estimation
SHA-1 1440 1501 149 MHz
SHA-224 1946 1896 142 MHz
SHA-256 1945 1896 142 MHz
SHA-384 3972 3718 125 MHz
SHA-512 4132 3572 125 MHz
SHA-512/224 3868 3579 127 MHz
SHA-512/256 3906 3573 125 MHz
  • Genesys-2
IP LUTs FF Frequency estimation
SHA-1 1440 1501 211 MHz
SHA-224 1946 1896 208 MHz
SHA-256 1946 1895 206 MHz
SHA-384 3926 3568 186 MHz
SHA-512 4070 3557 186 MHz
SHA-512/224 3823 3560 188 MHz
SHA-512/256 3861 3554 186 MHz

Tools

Several tools for hardware development are used for various part of the project.

Cocotb is a powerful Python framework for hardware verification, seamlessly integrating with SystemVerilog testbenches to streamline the testing process and ensure robust functionality in hardware implementations. Cryptopen fully relies on cocotb to test the IPs and uses version 1.8.0. Runners using pytest and makefile flows are supported for all IPs.

Verilator is a fast and open-source simulator that translates synthesizable Verilog code to efficient C++ or SystemC models, offering rapid simulation for hardware design verification. It is the simulator paired with cocotb in Cryptopen testbenches. The version required is v5.006 or later.

Vivado is an (not open source but) advanced FPGA design and implementation tool. The FPGA flow relies on Vivado 2020.1.

About

Library of hardware accelerators for popular cryptographic hash functions in SystemVerilog

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published