-- Copyright (C) 2015 Daniel Otte -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . with Crypto_Core_Types; use Crypto_Core_Types; with Crypto_Types; use Crypto_Types; with DES_Spec; use Crypto_Types.Crypto_Utils_u8; use Crypto_Types.Crypto_Utils_u32; package TDES_Spec is type Context_T is private; subtype Key_128_T is Block_128_Bit; subtype Key_192_T is Block_192_Bit; subtype Block_T is Block_64_Bit; procedure Initialize(Context : out Context_T; Key : in u8_Array); procedure Encrypt(Context : in Context_T; Block: in out Block_64_Bit); procedure Decrypt(Context : in Context_T; Block: in out Block_64_Bit); private type Context_T is record Ctx1 : DES_Spec.Context_T; Ctx2 : DES_Spec.Context_T; Ctx3 : DES_Spec.Context_T; end record; end TDES_Spec;