Beispiel #1
0
        private void SimpleTest(EncryptTest test, TestType testType, char[] alpha = null)
        {
            if (alpha != null)
            {
                test.Alpha = alpha;
            }
            TestResult pass = TestEnc(test, testType);

            pass.TestResultAssert($"Testing {test.Name} failed for test '{testType}'");
        }
Beispiel #2
0
 protected override Func <ICypher, string, string, bool> GetTester(EncryptTest test, TestType type)
 {
     return(StreamTester);
 }
Beispiel #3
0
        public void RanBijectionCypherOnStream()
        {
            var test = new EncryptTest(new RandomBijection(new StreamCypher()), "RBIJ on Stream");

            SimpleTest(test, TestType.Full);
        }