Ejemplo n.º 1
0
 private byte[] XORWithRoundConstant(int roundKey, byte[] newKeyScheduler)
 {
     newKeyScheduler[0] = Convert.ToByte(
         newKeyScheduler[0] ^ RoundConstant.GetConstant(roundKey)
         );
     return(newKeyScheduler);
 }
Ejemplo n.º 2
0
 public static int GetConstant(int iterator)
 {
     if (roundConstant == null)
     {
         roundConstant = new RoundConstant();
     }
     return(roundConstant.roundConstants[iterator]);
 }