[Cryptech-Commits] [core/cipher/aes] branch master updated: Added the regs missing in reset also in the old aes core.
git at cryptech.is
git at cryptech.is
Tue Oct 16 07:56:02 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.
The following commit(s) were added to refs/heads/master by this push:
new 277c73b Added the regs missing in reset also in the old aes core.
277c73b is described below
commit 277c73b0b7d8cb4af191a35979fb3164ee9808f9
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Tue Oct 16 09:55:04 2018 +0200
Added the regs missing in reset also in the old aes core.
---
src/rtl/aes_key_mem.v | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/rtl/aes_key_mem.v b/src/rtl/aes_key_mem.v
index 496fc08..b26b870 100644
--- a/src/rtl/aes_key_mem.v
+++ b/src/rtl/aes_key_mem.v
@@ -138,9 +138,11 @@ module aes_key_mem(
if (!reset_n)
begin
- for (i = 0 ; i < 4 ; i = i + 1)
+ for (i = 0 ; i < 14 ; i = i + 1)
key_mem [i] <= 128'h0;
+ prev_key0_reg <= 128'h0;
+ prev_key1_reg <= 128'h0;
rcon_reg <= 8'h0;
ready_reg <= 1'b0;
round_ctr_reg <= 4'h0;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list