From ec7e5a5fca16bc8e16ca6ba4734f4ba1f1612cff Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 26 Mar 2019 15:04:31 +0100 Subject: [implem-vhdl] Factorisation du code --- .../vhdl/add_vhdltbc/encrypt/ii-192/const_pack.vhd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 implementations/vhdl/add_vhdltbc/encrypt/ii-192/const_pack.vhd (limited to 'implementations/vhdl/add_vhdltbc/encrypt/ii-192/const_pack.vhd') diff --git a/implementations/vhdl/add_vhdltbc/encrypt/ii-192/const_pack.vhd b/implementations/vhdl/add_vhdltbc/encrypt/ii-192/const_pack.vhd new file mode 100644 index 0000000..30aff46 --- /dev/null +++ b/implementations/vhdl/add_vhdltbc/encrypt/ii-192/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 := 36; + constant TWEAK_LEN : integer := 128; + constant KEY_LEN : integer := 192; +end const_pack; \ No newline at end of file -- cgit v1.2.3