aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 1f04420dd04998274479c8f6dc76c4e455a93bc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

   

sha1

Introduction

Verilog implementation of the SHA-1 cryptgraphic hash function. The functionality follows the specification in NIST FIPS 180-4.

This core is based on the project at: https://github.com/secworks/sha1

The implementation is iterative with one cycle/round. The initialization takses one cycle. The W memory is based around a sliding window of 16 32-bit registers that are updated in sync with the round processing. The total latency/message block is 82 cycles.

There is a top level wrapper that provides a 32-bit memory like interface for easy integration into a System on Chip (SoC). This interface contains mesage block and digest registers to allow a host to load the next block while the current block is being processed.

The implementation also includes a functional model written in Python.

Implementation details

Altera Cyclone FPGAs

Implementation results using Altera Quartus-II 13.1.

Altera Cyclone IV E - EP4CE6F17C6 - 2913 LEs - 1527 regs - 107 MHz

Altera Cyclone IV GX - EP4CGX22CF19C6 - 2814 LEs - 1527 regs - 105 MHz

Altera Cyclone V - 5CGXFC7C7F23C8 - 1124 ALMs - 1527 regs - 104 MHz

TODO

  • Extensive functional verification in real HW.
  • Add Wishbone interface.
  • Add results for Xilinx and possibly some other FPGA device.
  • Documentation

Status

(2014-02-23):

New version of the W memory module that quite drastically improves resource utilization. And a bit better performance too. Also added some new results for other Altera devices.

(2014-02-21):

Moved the core to Cryptech.