diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2015-09-02 14:27:05 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2015-09-02 14:27:05 +0200 |
commit | 7167afd469c16d15e9a89db4aa767ff10ea060a5 (patch) | |
tree | 2d481f5c7c11bf0739f23ca35909a1038791e8c0 | |
parent | 1342e5ffec4e2f79437674fafaddcf7f52a4e5c1 (diff) |
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.
-rw-r--r-- | src/rtl/trng_csprng.v | 3 |
1 files changed, 2 insertions, 1 deletions
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 " |