Imported Upstream version 3.12.0

Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
This commit is contained in:
Jo Shields
2015-01-13 10:44:36 +00:00
parent 8b9b85e7f5
commit 181b81b4a4
659 changed files with 12743 additions and 16300 deletions

View File

@ -144,7 +144,6 @@ namespace MonoTests.System.Security.Cryptography {
Stream readStream;
Stream writeStream;
ICryptoTransform encryptor;
ICryptoTransform decryptor;
CryptoStream cs;
SymmetricAlgorithm aes;
@ -156,7 +155,6 @@ namespace MonoTests.System.Security.Cryptography {
writeStream = new MemoryStream (new byte [0], true);
aes = SymmetricAlgorithm.Create ();
encryptor = aes.CreateEncryptor ();
decryptor = aes.CreateEncryptor ();
}
}

View File

@ -28,6 +28,9 @@ namespace MonoTests.System.Security.Cryptography {
public class SelectableHmacSha384: HMAC {
// legacy parameter:
// http://blogs.msdn.com/shawnfa/archive/2007/01/31/please-do-not-use-the-net-2-0-hmacsha512-and-hmacsha384-classes.aspx
public SelectableHmacSha384 (byte[] key, bool legacy)
{
HashName = "SHA384";
@ -45,7 +48,6 @@ namespace MonoTests.System.Security.Cryptography {
public class HMACSHA384Test : KeyedHashAlgorithmTest {
protected HMACSHA384 algo;
private bool legacy;
[SetUp]
public override void SetUp ()
@ -53,8 +55,6 @@ namespace MonoTests.System.Security.Cryptography {
algo = new HMACSHA384 ();
algo.Key = new byte [8];
hash = algo;
// http://blogs.msdn.com/shawnfa/archive/2007/01/31/please-do-not-use-the-net-2-0-hmacsha512-and-hmacsha384-classes.aspx
legacy = (new HS384 ().BlockSize == 64);
}
// the hash algorithm only exists as a managed implementation

View File

@ -26,6 +26,9 @@ namespace MonoTests.System.Security.Cryptography {
public class SelectableHmacSha512: HMAC {
// Legacy parameter explanation:
// http://blogs.msdn.com/shawnfa/archive/2007/01/31/please-do-not-use-the-net-2-0-hmacsha512-and-hmacsha384-classes.aspx
public SelectableHmacSha512 (byte[] key, bool legacy)
{
HashName = "SHA512";
@ -43,7 +46,6 @@ namespace MonoTests.System.Security.Cryptography {
public class HMACSHA512Test : KeyedHashAlgorithmTest {
protected HMACSHA512 algo;
private bool legacy;
[SetUp]
public override void SetUp ()
@ -51,8 +53,6 @@ namespace MonoTests.System.Security.Cryptography {
algo = new HMACSHA512 ();
algo.Key = new byte [8];
hash = algo;
// http://blogs.msdn.com/shawnfa/archive/2007/01/31/please-do-not-use-the-net-2-0-hmacsha512-and-hmacsha384-classes.aspx
legacy = (new HS512 ().BlockSize == 64);
}
// the hash algorithm only exists as a managed implementation