summaryrefslogtreecommitdiff
path: root/src/add_vhdltbc/encryptdecrypt/crypt_pack.vhd
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-27 16:48:04 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-27 16:48:04 +0100
commit8a86451329865a48eaabbaf18c8165ca5a141ee1 (patch)
treef3589ad94f2ace79e879ef1f92f1f8da8baa9374 /src/add_vhdltbc/encryptdecrypt/crypt_pack.vhd
parent9ab117657e31caea75e11170470efc7a02011e84 (diff)
downloadlilliput-ae-implem-8a86451329865a48eaabbaf18c8165ca5a141ee1.tar.xz
Quelques corrections de dernière minute sur les implems VHDL
Diffstat (limited to 'src/add_vhdltbc/encryptdecrypt/crypt_pack.vhd')
-rw-r--r--src/add_vhdltbc/encryptdecrypt/crypt_pack.vhd5
1 files changed, 3 insertions, 2 deletions
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;