static void Main(string[] args) { string byte1, byte2; do { Console.WriteLine("Introduzca el primer byte: "); byte1 = Console.ReadLine(); }while(check_byte(byte1) == false); do { Console.WriteLine("Introduzca el segundo byte: "); byte2 = Console.ReadLine(); }while(check_byte(byte2) == false); BitArray A = hex_to_bool(byte1); BitArray B = hex_to_bool(byte2); Console.WriteLine("Snow 3G:"); show_bool(A); show_bool(B); Console.WriteLine("----------------------------"); snow algoritmo = new snow(A, B); Console.WriteLine("\n"); Console.WriteLine("AES"); show_bool(A); show_bool(B); Console.WriteLine("----------------------------"); aes Algoritmo = new aes(A, B); }
yield return(plainBytes, cryptBytes, (aes, outStream, inStream) => Encrypt(aes, Keys[0], AesKeySize.Aes128, PaddingMode.None, outStream, inStream));