summaryrefslogtreecommitdiff
path: root/implementations/vhdl/add_vhdltbc/encryptdecrypt/ii-256/const_pack.vhd
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-26 15:04:31 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-26 15:44:53 +0100
commitec7e5a5fca16bc8e16ca6ba4734f4ba1f1612cff (patch)
tree7a7485852756a76085c54bb7d863d5c726a480c9 /implementations/vhdl/add_vhdltbc/encryptdecrypt/ii-256/const_pack.vhd
parent13fd77798b2b4a564335bf35198c037983749480 (diff)
downloadlilliput-ae-implem-ec7e5a5fca16bc8e16ca6ba4734f4ba1f1612cff.tar.xz
[implem-vhdl] Factorisation du code
Diffstat (limited to 'implementations/vhdl/add_vhdltbc/encryptdecrypt/ii-256/const_pack.vhd')
-rw-r--r--implementations/vhdl/add_vhdltbc/encryptdecrypt/ii-256/const_pack.vhd17
1 files changed, 17 insertions, 0 deletions
diff --git a/implementations/vhdl/add_vhdltbc/encryptdecrypt/ii-256/const_pack.vhd b/implementations/vhdl/add_vhdltbc/encryptdecrypt/ii-256/const_pack.vhd
new file mode 100644
index 0000000..ecaa7c0
--- /dev/null
+++ b/implementations/vhdl/add_vhdltbc/encryptdecrypt/ii-256/const_pack.vhd
@@ -0,0 +1,17 @@
+library IEEE;
+library work;
+use IEEE.STD_LOGIC_1164.ALL;
+
+
+package const_pack is
+ constant ROUND_NB : integer;
+ constant TWEAK_LEN : integer;
+ constant KEY_LEN : integer;
+end const_pack;
+
+
+package body const_pack is
+ constant ROUND_NB : integer := 42;
+ constant TWEAK_LEN : integer := 128;
+ constant KEY_LEN : integer := 256;
+end const_pack; \ No newline at end of file