public void TestGetDigestForRc4Pbkdf2() { var config = new CryptoConfig { CipherAlgorithm = CipherAlgorithm.RC4, PbeAlgorithm = PbeAlgorithm.PBKDF2 }; var result = config.GetDigest(); Assert.Equal(PbeDigest.SHA1, result); }
public void TestGetDigestForAesSScrypt() { var config = new CryptoConfig { CipherAlgorithm = CipherAlgorithm.AES, PbeAlgorithm = PbeAlgorithm.SCRYPT }; var result = config.GetDigest(); Assert.Equal(PbeDigest.GCM, result); }