OpenCores

Project maintainers

Details

Name: salsa20
Created: Jul 19, 2012
Updated: Nov 13, 2012
SVN Updated: Aug 1, 2012
SVN: Browse
Latest version: download (might take a bit to start...)
Statistics: View
Bugs: 0 reported / 0 solved
Star1you like it: star it!

Other project properties

Category:Crypto core
Language:VHDL
Development status:Mature
Additional info:
WishBone compliant: No
WishBone version: n/a
License: LGPL

Description

Salsa20 stream cipher is built on a pseudorandom function based on 32-bit addition, bitwise addition (XOR) and rotation operations, which maps a 256-bit key, a 64-bit nonce (number used once), and a 64-bit stream position to a 512-bit output. It has advantage that the user can efficiently seek to any position in the output stream.

Implementation

The target device for implementation was Cyclone 3 from Altera (EP3C120). The motivation for these was to have nonce-based PRSequence generator - proof of concept. It was intended to be used with 120MHz clock. It finally can run up to more than 150MHz, according to TimeQuest reports. It has not been tested in FPGA. Our application did not require performance, so it is not optimized for this purpose. It will give you estimately a bit more than 5 bits of PRS per cycle, in chunks of 512 bits every 86 cycles. It uses about 3% of logic elements and nothing more.