summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-07-18 10:09:09 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2012-07-18 10:09:09 -0700
commitc0a7704a988fcb3334a1eb8f966fb6139b37a43c (patch)
treed2525a097d45a230da9dbf486e4c9c8a292d1b12
parent098470f4e639be29d6a3f0d26ff26b30cabe9c26 (diff)
downloadDotNetOpenAuth-c0a7704a988fcb3334a1eb8f966fb6139b37a43c.zip
DotNetOpenAuth-c0a7704a988fcb3334a1eb8f966fb6139b37a43c.tar.gz
DotNetOpenAuth-c0a7704a988fcb3334a1eb8f966fb6139b37a43c.tar.bz2
More StyleCop fixes
-rw-r--r--src/DotNetOpenAuth.OpenId/OpenId/HmacShaAssociation.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/DotNetOpenAuth.OpenId/OpenId/HmacShaAssociation.cs b/src/DotNetOpenAuth.OpenId/OpenId/HmacShaAssociation.cs
index 89f346c..bf0111d 100644
--- a/src/DotNetOpenAuth.OpenId/OpenId/HmacShaAssociation.cs
+++ b/src/DotNetOpenAuth.OpenId/OpenId/HmacShaAssociation.cs
@@ -258,13 +258,6 @@ namespace DotNetOpenAuth.OpenId {
internal Func<Protocol, string> GetAssociationType { get; set; }
/// <summary>
- /// Creates the <see cref="HashAlgorithm"/> using a given shared secret for the mac.
- /// </summary>
- internal HashAlgorithm CreateHasher(byte[] secret) {
- return HmacAlgorithms.Create(this.HmacAlgorithmName, secret);
- }
-
- /// <summary>
/// Gets or sets the name of the HMAC-SHA algorithm. (e.g. "HMAC-SHA256")
/// </summary>
internal string HmacAlgorithmName { get; set; }
@@ -278,6 +271,15 @@ namespace DotNetOpenAuth.OpenId {
/// Gets the size of the hash (in bytes).
/// </summary>
internal int SecretLength { get { return this.BaseHashAlgorithm.HashSize / 8; } }
+
+ /// <summary>
+ /// Creates the <see cref="HashAlgorithm"/> using a given shared secret for the mac.
+ /// </summary>
+ /// <param name="secret">The HMAC secret.</param>
+ /// <returns>The algorithm.</returns>
+ internal HashAlgorithm CreateHasher(byte[] secret) {
+ return HmacAlgorithms.Create(this.HmacAlgorithmName, secret);
+ }
}
}
} \ No newline at end of file