[Cryptech-Commits] [core/util/keywrap] 86/95: valid should not be set from reset. There is no valid data.

git at cryptech.is git at cryptech.is
Wed Mar 25 17:19:25 UTC 2020


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

paul at psgd.org pushed a commit to branch master
in repository core/util/keywrap.

commit b03f8a27dec3035008128035986e7659649019a5
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Thu Dec 20 15:45:01 2018 +0100

    valid should not be set from reset. There is no valid data.
---
 src/rtl/keywrap_core.v | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rtl/keywrap_core.v b/src/rtl/keywrap_core.v
index 866e132..3da4a19 100644
--- a/src/rtl/keywrap_core.v
+++ b/src/rtl/keywrap_core.v
@@ -216,11 +216,11 @@ module keywrap_core #(parameter MEM_BITS = 11)
         begin
           a_reg                 <= 64'h0;
           ready_reg             <= 1'h1;
-          valid_reg             <= 1'h1;
+          valid_reg             <= 1'h0;
+          key_loaded_reg        <= 1'h0;
           block_ctr_reg         <= {(MEM_BITS - 1){1'h0}};
           iteration_ctr_reg     <= 3'h0;
           key_timeout_ctr_reg   <= 32'h0;
-          key_loaded_reg        <= 1'h0;
           keywrap_core_ctrl_reg <= CTRL_IDLE;
        end
 



More information about the Commits mailing list