コード例 #1
0
ファイル: EncryptDecryptTest.cs プロジェクト: GKBelmonte/Core
        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}'");
        }
コード例 #2
0
ファイル: StreamTests.cs プロジェクト: GKBelmonte/Core
 protected override Func <ICypher, string, string, bool> GetTester(EncryptTest test, TestType type)
 {
     return(StreamTester);
 }
コード例 #3
0
ファイル: EncryptDecryptTest.cs プロジェクト: GKBelmonte/Core
        public void RanBijectionCypherOnStream()
        {
            var test = new EncryptTest(new RandomBijection(new StreamCypher()), "RBIJ on Stream");

            SimpleTest(test, TestType.Full);
        }