Imported Upstream version 4.3.2.467

Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
Xamarin Public Jenkins
2016-02-22 11:00:01 -05:00
parent f302175246
commit f3e3aab35a
4097 changed files with 122406 additions and 82300 deletions

View File

@@ -39,7 +39,7 @@ namespace MonoTests.System.Security.Cryptography {
public void Ctor ()
{
var cp = new CspParameters ();
Assert.AreEqual (1, cp.ProviderType);
Assert.AreEqual (24, cp.ProviderType);
}
}
}

View File

@@ -176,19 +176,6 @@ namespace MonoTests.System.Security.Cryptography {
);
}
[Test]
[ExpectedException (typeof (CryptographicException))]
public void CreateEncryptor_KeyNull ()
{
ICryptoTransform encryptor = aes.CreateEncryptor (null, aes.IV);
byte[] data = new byte[encryptor.InputBlockSize];
byte[] encdata = encryptor.TransformFinalBlock (data, 0, data.Length);
ICryptoTransform decryptor = aes.CreateDecryptor (aes.Key, aes.IV);
byte[] decdata = decryptor.TransformFinalBlock (encdata, 0, encdata.Length);
// null key != SymmetricAlgorithm.Key
}
[Test]
public void CreateEncryptor_IvNull ()
{
@@ -220,19 +207,6 @@ namespace MonoTests.System.Security.Cryptography {
// SymmetricAlgorithm Key and IV not changed by CreateEncryptor
}
[Test]
[ExpectedException (typeof (CryptographicException))]
public void CreateDecryptor_KeyNull ()
{
ICryptoTransform encryptor = aes.CreateEncryptor (aes.Key, aes.IV);
byte[] data = new byte[encryptor.InputBlockSize];
byte[] encdata = encryptor.TransformFinalBlock (data, 0, data.Length);
ICryptoTransform decryptor = aes.CreateDecryptor (null, aes.IV);
byte[] decdata = decryptor.TransformFinalBlock (encdata, 0, encdata.Length);
// null key != SymmetricAlgorithm.Key
}
[Test]
public void CreateDecryptor_IvNull ()
{