diff options
Diffstat (limited to 'src/DotNetOpenAuth.OpenId/OpenId/Association.cs')
-rw-r--r-- | src/DotNetOpenAuth.OpenId/OpenId/Association.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.OpenId/OpenId/Association.cs b/src/DotNetOpenAuth.OpenId/OpenId/Association.cs index 764f4fa..a0f5bae 100644 --- a/src/DotNetOpenAuth.OpenId/OpenId/Association.cs +++ b/src/DotNetOpenAuth.OpenId/OpenId/Association.cs @@ -240,7 +240,7 @@ namespace DotNetOpenAuth.OpenId { /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { - HMACSHA1 hmac = new HMACSHA1(this.SecretKey); + var hmac = HmacAlgorithms.Create(HmacAlgorithms.HmacSha1, this.SecretKey); try { CryptoStream cs = new CryptoStream(Stream.Null, hmac, CryptoStreamMode.Write); |