2007-08-17 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / System.Security.Cryptography / HMACSHA1.cs
index 59cf46211bd69daa6f2007731023aaf94921ed12..ecd2a13023eb4ee7e7c639c3b6683f3da69975fb 100644 (file)
@@ -142,12 +142,19 @@ namespace System.Security.Cryptography {
                {
                }
 
-               public HMACSHA1 (byte[] rgbKey) : base () 
+               public HMACSHA1 (byte[] rgbKey)
                {
                        HashName = "SHA1";
                        HashSizeValue = 160;
                        Key = rgbKey;
                }
+
+               public HMACSHA1 (byte[] rgbKey, bool useManagedSha1)
+               {
+                       HashName = "System.Security.Cryptography.SHA1" + (useManagedSha1 ? "Managed" : "CryptoServiceProvider");
+                       HashSizeValue = 160;
+                       Key = rgbKey;
+               }
        }
 #endif
 }