public static string GetByteAfterSubByte(string Byte) { var X = int.Parse(NumberExtension.ConvertHexToDec(Byte[0].ToString())); var Y = int.Parse(NumberExtension.ConvertHexToDec(Byte[1].ToString())); return(Resources.SBox[X][Y]); }
private static string Mult2(string number) { var result = string.Empty; result = NumberExtension.ConvertDecToHex(int.Parse(NumberExtension.ConvertHexToDec(number)) * 2); return(result.Length == 3 ? result.XORhex(Resources.Module) : Utils.AddZerosAtBegin(result, 2)); }