Beispiel #1
0
        public void Challenge11()
        {
            bool isECB;
            var  input       = Encoding.UTF8.GetBytes("YELLOW SUBMARINEYELLOW SUBMARINEYELLOW SUBMARINE");
            var  output      = Crypto.AESEncryptionOracle(input, out isECB);
            var  detectedECB = Crypto.ECBDetectionOracle(output);

            Assert.AreEqual(isECB, detectedECB);
        }