예제 #1
0
        public void TestGetDigestForRc4Pbkdf2()
        {
            var config = new CryptoConfig
            {
                CipherAlgorithm = CipherAlgorithm.RC4,
                PbeAlgorithm    = PbeAlgorithm.PBKDF2
            };
            var result = config.GetDigest();

            Assert.Equal(PbeDigest.SHA1, result);
        }
예제 #2
0
        public void TestGetDigestForAesSScrypt()
        {
            var config = new CryptoConfig
            {
                CipherAlgorithm = CipherAlgorithm.AES,
                PbeAlgorithm    = PbeAlgorithm.SCRYPT
            };
            var result = config.GetDigest();

            Assert.Equal(PbeDigest.GCM, result);
        }