From 6a3f24bcbd5f93bac8ee231085f1d37000d927d0 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 27 Mar 2019 16:48:04 +0100 Subject: Quelques corrections de dernière minute sur les implems VHDL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/add_vhdltbc/encryptdecrypt/crypt_pack.vhd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/add_vhdltbc/encryptdecrypt/crypt_pack.vhd') diff --git a/src/add_vhdltbc/encryptdecrypt/crypt_pack.vhd b/src/add_vhdltbc/encryptdecrypt/crypt_pack.vhd index 2ffc3c8..222fe7f 100644 --- a/src/add_vhdltbc/encryptdecrypt/crypt_pack.vhd +++ b/src/add_vhdltbc/encryptdecrypt/crypt_pack.vhd @@ -27,7 +27,8 @@ package crypt_pack is subtype bit80 is std_logic_vector(79 downto 0); subtype bit_tweak is std_logic_vector(TWEAK_LEN-1 downto 0); subtype bit_key is std_logic_vector(KEY_LEN-1 downto 0); - subtype bit_tweak_key is std_logic_vector((TWEAK_LEN+KEY_LEN)-1 downto 0); + subtype bit_tweak_key is std_logic_vector((TWEAK_LEN+KEY_LEN)-1 downto 0); + subtype bit_data is std_logic_vector (127 downto 0); type row_state is array(0 to 3) of bit8; @@ -51,7 +52,7 @@ package crypt_pack is end crypt_pack; package body crypt_pack is - constant ROUND : integer := ROUND_NB-2; + constant ROUND : integer := ROUND_NB-1; constant TWEAK_KEY_LEN : integer := TWEAK_LEN+KEY_LEN-1; constant LANE_NB : integer := ((TWEAK_LEN+KEY_LEN)/64); end crypt_pack; -- cgit v1.2.3