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

@ -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