[Cryptech-Commits] [core/rng/trng] 01/04: Changed the max number of blocks to force reseed once every 256 TByte. Changed default number of blocks to do reseed once every 16 GByte.

git at cryptech.is git at cryptech.is
Mon Sep 7 10:31:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

joachim at secworks.se pushed a commit to branch master
in repository core/rng/trng.

commit 7167afd469c16d15e9a89db4aa767ff10ea060a5
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Wed Sep 2 14:27:05 2015 +0200

    Changed the max number of blocks to force reseed once every 256 TByte. Changed default number of blocks to do reseed once every 16 GByte.
---
 src/rtl/trng_csprng.v | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/rtl/trng_csprng.v b/src/rtl/trng_csprng.v
index 208feb1..ce5b50f 100644
--- a/src/rtl/trng_csprng.v
+++ b/src/rtl/trng_csprng.v
@@ -104,7 +104,7 @@ module trng_csprng(
   localparam ADDR_TEST_SEED_W15    = 8'h8f;
 
   localparam CIPHER_KEYLEN256  = 1'b1; // 256 bit key.
-  localparam CIPHER_MAX_BLOCKS = 64'h1000000000000000;
+  localparam CIPHER_MAX_BLOCKS = 64'h0000000100000000;
 
   localparam CTRL_IDLE   = 4'h0;
   localparam CTRL_SEED0  = 4'h1;
@@ -119,6 +119,7 @@ module trng_csprng(
 
   localparam DEFAULT_NUM_ROUNDS = 5'h18;
   localparam DEFAULT_NUM_BLOCKS = 64'h1000000000000000;
+  localparam DEFAULT_NUM_BLOCKS = 64'h0000000001000000;
 
   parameter CORE_NAME0     = 32'h63737072; // "cspr"
   parameter CORE_NAME1     = 32'h6e672020; // "ng  "



More information about the Commits mailing list