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