[Cryptech-Commits] [core/cipher/aes_speed] branch master updated: Reading AES result will be zero when ready is not set.

git at cryptech.is git at cryptech.is
Tue Oct 2 13:11:23 UTC 2018


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/cipher/aes_speed.

The following commit(s) were added to refs/heads/master by this push:
     new 190bdf4  Reading AES result will be zero when ready is not set.
190bdf4 is described below

commit 190bdf4f5e7a2bda7bbbe9703a1b08eb8905f1ab
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Tue Oct 2 15:10:16 2018 +0200

    Reading AES result will be zero when ready is not set.
---
 src/rtl/aes.v | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/rtl/aes.v b/src/rtl/aes.v
index ddee8f0..48a7735 100644
--- a/src/rtl/aes.v
+++ b/src/rtl/aes.v
@@ -256,7 +256,8 @@ module aes(
               endcase // case (address)
 
               if ((address >= ADDR_RESULT0) && (address <= ADDR_RESULT3))
-                tmp_read_data = core_result[(3 - (address - ADDR_RESULT0)) * 32 +: 32];
+                if (core_ready)
+                  tmp_read_data = core_result[(3 - (address - ADDR_RESULT0)) * 32 +: 32];
             end
         end
     end // addr_decoder

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


More information about the Commits mailing list