Example #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}'");
        }
Example #2
0
 protected override Func <ICypher, string, string, bool> GetTester(EncryptTest test, TestType type)
 {
     return(StreamTester);
 }
Example #3
0
        public void RanBijectionCypherOnStream()
        {
            var test = new EncryptTest(new RandomBijection(new StreamCypher()), "RBIJ on Stream");

            SimpleTest(test, TestType.Full);
        }