summaryrefslogtreecommitdiff
path: root/src/add_vhdltbc/encrypt/crypt_pack.vhd
diff options
context:
space:
mode:
authorGaetan Leplus <gaetan.leplus@airbus.com>2019-07-04 14:01:34 +0200
committerGaetan Leplus <gaetan.leplus@airbus.com>2019-07-04 14:09:13 +0200
commit7b4050583d09e3d0ecfd7e7c51b9c77792d4b098 (patch)
tree91417728bad80e945029cd946949bd745af19e77 /src/add_vhdltbc/encrypt/crypt_pack.vhd
parent6589f3ef20f8f93168be49135764764cd0c02a23 (diff)
downloadlilliput-ae-implem-7b4050583d09e3d0ecfd7e7c51b9c77792d4b098.tar.xz
Remplacement de la version vhdltbc par la version optimisée et corrigée
Diffstat (limited to 'src/add_vhdltbc/encrypt/crypt_pack.vhd')
-rw-r--r--src/add_vhdltbc/encrypt/crypt_pack.vhd57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/add_vhdltbc/encrypt/crypt_pack.vhd b/src/add_vhdltbc/encrypt/crypt_pack.vhd
deleted file mode 100644
index f2140e3..0000000
--- a/src/add_vhdltbc/encrypt/crypt_pack.vhd
+++ /dev/null
@@ -1,57 +0,0 @@
--- Implementation of the Lilliput-TBC tweakable block cipher by the
--- Lilliput-AE team, hereby denoted as "the implementer".
---
--- For more information, feedback or questions, refer to our website:
--- https://paclido.fr/lilliput-ae
---
--- To the extent possible under law, the implementer has waived all copyright
--- and related or neighboring rights to the source code in this file.
--- http://creativecommons.org/publicdomain/zero/1.0/
-
-library IEEE;
-library work;
-use IEEE.STD_LOGIC_1164.ALL;
-use work.const_pack.ALL;
-
-package crypt_pack is
-
- subtype bit2 is std_logic_vector(1 downto 0);
- subtype bit4 is std_logic_vector(3 downto 0);
- subtype bit8 is std_logic_vector(7 downto 0);
- subtype bit16 is std_logic_vector(15 downto 0);
- subtype bit32 is std_logic_vector(31 downto 0);
- subtype bit64 is std_logic_vector(63 downto 0);
- subtype bit128 is std_logic_vector(127 downto 0);
- subtype bit256 is std_logic_vector(255 downto 0);
- subtype bit192 is std_logic_vector(191 downto 0);
- 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_data is std_logic_vector((TWEAK_LEN+KEY_LEN)-1 downto 0);
-
- type row_state is array(0 to 3) of bit8;
- type type_state is array(0 to 3) of row_state;
-
- type key_row_state is array(0 to 3) of bit8; --nombre d'element par ligne
- type type_key is array(0 to 1) of key_row_state; --nombre de ligne
-
- type type_tweak_key_row is array(0 to 7) of bit8;
- type type_tweak_key_array is array(0 to ((TWEAK_LEN+KEY_LEN)/64)-1) of type_tweak_key_row;
-
- type keyschedule_row_state is array(0 to 3) of bit8; -- to 4 pour une matrice bit4
- type type_keyschedule is array(0 to 3) of keyschedule_row_state;
-
- constant ROUND : integer;
- constant TWEAK_KEY_LEN : integer;
- constant LANE_NB : integer;
-
-
-end crypt_pack;
-
-package body crypt_pack is
- constant ROUND : integer := ROUND_NB-2;
- constant TWEAK_KEY_LEN : integer := TWEAK_LEN+KEY_LEN-1;
- constant LANE_NB : integer := ((TWEAK_LEN+KEY_LEN)/64);
-end crypt_pack;
- \ No newline at end of file