Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / mscorlib / system / security / cryptography / hmacmd5.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 // <OWNER>Microsoft</OWNER>
7 // 
8
9 //
10 // HMACMD5.cs
11 //
12
13 namespace System.Security.Cryptography {
14     [System.Runtime.InteropServices.ComVisible(true)]
15     public class HMACMD5 : HMAC {
16         //
17         // public constructors
18         //
19
20         public HMACMD5 () : this (Utils.GenerateRandom(64)) {}
21
22         public HMACMD5 (byte[] key) {
23             m_hashName = "MD5";
24             m_hash1 = new MD5CryptoServiceProvider();
25             m_hash2 = new MD5CryptoServiceProvider();
26             HashSizeValue = 128;
27             base.InitializeKey(key);
28         }
29     }
30 }