3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 // <OWNER>[....]</OWNER>
13 namespace System.Security.Cryptography {
14 [System.Runtime.InteropServices.ComVisible(true)]
15 public class HMACSHA1 : HMAC {
17 // public constructors
20 public HMACSHA1 () : this (Utils.GenerateRandom(64)) {}
22 public HMACSHA1 (byte[] key) : this (key, false) {}
24 public HMACSHA1 (byte[] key, bool useManagedSha1) {
26 #if FEATURE_CRYPTO && !FULL_AOT_RUNTIME
28 #endif // FEATURE_CRYPTO
29 m_hash1 = new SHA1Managed();
30 m_hash2 = new SHA1Managed();
31 #if FEATURE_CRYPTO && !FULL_AOT_RUNTIME
33 m_hash1 = new SHA1CryptoServiceProvider();
34 m_hash2 = new SHA1CryptoServiceProvider();
36 #endif // FEATURE_CRYPTO
39 base.InitializeKey(key);