You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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 ()
|
||||
{
|
||||
|
Reference in New Issue
Block a user