From e92ed9ea54b48cbf729c01b99b86edfeae37612b Mon Sep 17 00:00:00 2001 From: Joris van Rantwijk Date: Tue, 29 Nov 2016 09:23:25 +0100 Subject: [PATCH] Minor textual changes. --- README.txt | 4 ++-- sim/tb_trivium.vhdl | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.txt b/README.txt index 5fd9e59..87a0497 100644 --- a/README.txt +++ b/README.txt @@ -16,7 +16,7 @@ These PRNGs are a good alternative to linear feedback shift registers (LFSR). Although LFSRs are commonly used, their output exhibits strong correlations. Furthermore, correctly generating multi-bit random words with LFSRs is tricky. -NOTE: This library is not suitable for cryptographic applications +NOTE: This library is not designed for cryptographic applications (such as generating passwords, encryption keys). Most of the RNGs in this library are cryptographically weak. @@ -105,7 +105,7 @@ This RNG passes all known statistical tests. However, little is known about its period. The period depends on the seed value, and is believed to be long (at least 2**80) for the vast majority of seed choices. -After reset and after each reseeding, the RNG needs to process 1152 bits +After reset and after each reseeding, the RNG must process 1152 bits to initialize its state. This takes up to 1152 clock cycles, depending on the configured number of bits per cycle. The RNG can not provide random data during this time. diff --git a/sim/tb_trivium.vhdl b/sim/tb_trivium.vhdl index df9e76f..86df5e8 100644 --- a/sim/tb_trivium.vhdl +++ b/sim/tb_trivium.vhdl @@ -28,6 +28,8 @@ architecture arch of tb_trivium is type test_vectors is array (natural range <>) of test_vector; + -- This is a small subset of the test vectors from + -- the ECRYPT stream cipher project. constant testvec: test_vectors(0 to 4) := ( 0 => ( key => x"0053A6F94C9FF24598EB", iv => x"0D74DB42A91077DE45AC",