API Reference

type Round_Offset , type Word_Offset

  
   Rounds : constant := 16;  
  
   type Round_Offset is range 1 .. Rounds;  
  
   type Word_Offset is range 0 .. 3;  

Word_Offset identifies a 32 bit word within a 128 bit data block Byte_Offset identifies a byte within a 32 bit word

procedure New_Key , procedure Encrypt , procedure Decrypt

   procedure New_Key (Key_Schedule : out Twofish_Key;   
                      Key_Bits : in Key_Block);  
  
   procedure Encrypt (Key    : Twofish_Key;  
                      Input  : in Cipher_Block;  
                      Output : out Cipher_Block);  
  
   procedure Decrypt (Key    : Twofish_Key;  
                      Input  : in Cipher_Block;  
                      Output : out Cipher_Block);  
  
end ASCL.Cryptography.Ciphers.Symmetric.Twofish;