public void LocateKey_NoSalts() { var cred = new KeytabCredential("*****@*****.**", new KeyTable(Aes128Key, RC4Key)); var key = cred.CreateKey(); Assert.IsNotNull(key); Assert.AreEqual(EncryptionType.RC4_HMAC_NT, key.EncryptionType); }
public void LocateKey_AesSalts() { var cred = new KeytabCredential("*****@*****.**", new KeyTable(Aes128Key, RC4Key)) { Salts = new[] { KeyValuePair.Create(EncryptionType.AES128_CTS_HMAC_SHA1_96, "asfsdz") } }; var key = cred.CreateKey(); Assert.IsNotNull(key); Assert.AreEqual(EncryptionType.AES128_CTS_HMAC_SHA1_96, key.EncryptionType); }