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