[Cryptech-Commits] [core/cipher/aes_speed] branch master updated: Adding 16 S-boxes to the encipher datapath.

git at cryptech.is git at cryptech.is
Mon May 21 13:55:13 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 c713208  Adding 16 S-boxes to the encipher datapath.
c713208 is described below

commit c7132088ea73421677c915552a10eec204784d00
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Mon May 21 15:55:04 2018 +0200

    Adding 16 S-boxes to the encipher datapath.
---
 src/rtl/aes_encipher_block.v | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/rtl/aes_encipher_block.v b/src/rtl/aes_encipher_block.v
index 094653a..29a555e 100644
--- a/src/rtl/aes_encipher_block.v
+++ b/src/rtl/aes_encipher_block.v
@@ -196,6 +196,15 @@ module aes_encipher_block(
   reg [2 : 0]  update_type;
   reg [31 : 0] muxed_sboxw;
 
+  reg [31 : 0] sboxw0;
+  reg [31 : 0] sboxw1;
+  reg [31 : 0] sboxw2;
+  reg [31 : 0] sboxw3;
+  wire [31 : 0] new_sboxw0;
+  wire [31 : 0] new_sboxw1;
+  wire [31 : 0] new_sboxw2;
+  wire [31 : 0] new_sboxw3;
+
 
   //----------------------------------------------------------------
   // Concurrent connectivity for ports etc.
@@ -206,6 +215,15 @@ module aes_encipher_block(
   assign ready     = ready_reg;
 
 
+  //----------------------------------------------------------------
+  // Sboxes
+  //----------------------------------------------------------------
+  aes_sbox sbox_inst0(.sboxw(sboxw0), .new_sboxw(new_sboxw0));
+  aes_sbox sbox_inst1(.sboxw(sboxw1), .new_sboxw(new_sboxw1));
+  aes_sbox sbox_inst2(.sboxw(sboxw2), .new_sboxw(new_sboxw2));
+  aes_sbox sbox_inst3(.sboxw(sboxw3), .new_sboxw(new_sboxw3));
+
+
   //----------------------------------------------------------------
   // reg_update
   //

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


More information about the Commits mailing list