API Reference

type Unsigned_5 , type Round_Offset , type Biases , type RC6_Key , procedure New_Key , procedure Encrypt , procedure Decrypt

  
   type Unsigned_5 is mod 32;  
  
   Rounds : constant := 20;  
  
   type Round_Offset is range 1 .. Rounds;  
  
   type Biases is array (Round_Offset) of  
      Interfaces.Unsigned_32;  
  
   type RC6_Key is new Symmetric_Key_Variable_Length with  
      record  
         Final_A_Bias : Interfaces.Unsigned_32;  
         Initial_B_Bias : Interfaces.Unsigned_32;  
         Final_C_Bias : Interfaces.Unsigned_32;  
         Initial_D_Bias : Interfaces.Unsigned_32;  
         Round_A_Bias : Biases;  
         Round_C_Bias : Biases;  
      end record;  
  
   procedure New_Key (Key_Schedule : out RC6_Key;  
                      Key_Bits : in Key_Block_Variable_Length);  
  
   procedure Encrypt (Key    : RC6_Key;  
                      Input  : in Cipher_Block;  
                      Output : out Cipher_Block);  
  
   procedure Decrypt (Key    : RC6_Key;  
                      Input  : in Cipher_Block;  
                      Output : out Cipher_Block);  
  
end ASCL.Cryptography.Ciphers.Symmetric.RC6;