[Cryptech-Commits] [core/hash/sha512] branch clock_speed updated: Correcting name for t1 and t2 update vectors. Cleaned up constants.

git at cryptech.is git at cryptech.is
Mon Apr 23 17:01:20 UTC 2018


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

joachim at secworks.se pushed a commit to branch clock_speed
in repository core/hash/sha512.

The following commit(s) were added to refs/heads/clock_speed by this push:
     new 667ef1d  Correcting name for t1 and t2 update vectors. Cleaned up constants.
667ef1d is described below

commit 667ef1d1a76df3fec86906df1c9b6e5fab8c80a9
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Mon Apr 23 19:01:02 2018 +0200

    Correcting name for t1 and t2 update vectors. Cleaned up constants.
---
 src/tb/tb_sha512_core.v | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/tb/tb_sha512_core.v b/src/tb/tb_sha512_core.v
index 2fa665a..4e75048 100644
--- a/src/tb/tb_sha512_core.v
+++ b/src/tb/tb_sha512_core.v
@@ -192,7 +192,7 @@ module tb_sha512_core();
 
       $display("State update values:");
       $display("w      = 0x%08x, k      = 0x%08x", dut.w_data, dut.k_data);
-      $display("t1     = 0x%08x, t2     = 0x%08x", dut.t1_new, dut.t2_new);
+      $display("t1_new = 0x%08x, t2_new = 0x%08x", dut.t1_new, dut.t2_new);
       $display("t1_reg = 0x%08x, t2_reg = 0x%08x", dut.t1_reg, dut.t2_reg);
       $display("a_new  = 0x%08x, b_new  = 0x%08x, c_new = 0x%08x, d_new = 0x%08x",
                dut.a_new, dut.b_new, dut.c_new, dut.d_new);
@@ -332,17 +332,17 @@ module tb_sha512_core();
      case (mode)
        MODE_SHA_512_224:
          begin
-           mask = {{7{32'hffffffff}}, {9{32'h00000000}}};
+           mask = {{7{32'hffffffff}}, 288'h0};
          end
 
        MODE_SHA_512_256:
          begin
-           mask = {{8{32'hffffffff}}, {8{32'h00000000}}};
+           mask = {{8{32'hffffffff}}, 256'h0};
          end
 
        MODE_SHA_384:
          begin
-           mask = {{12{32'hffffffff}}, {4{32'h00000000}}};
+           mask = {{12{32'hffffffff}}, 128'h0};
          end
 
        MODE_SHA_512:

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


More information about the Commits mailing list