[Cryptech-Commits] [user/js/keywrap] branch auto_zeroise updated: valid should not be set from reset. There is no valid data.

git at cryptech.is git at cryptech.is
Thu Dec 20 14:45:27 UTC 2018


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

joachim at secworks.se pushed a commit to branch auto_zeroise
in repository user/js/keywrap.

The following commit(s) were added to refs/heads/auto_zeroise by this push:
     new b03f8a2  valid should not be set from reset. There is no valid data.
b03f8a2 is described below

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
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list