diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-01-29 10:47:07 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-01-29 10:47:07 -0800 |
commit | 8f4165ee515728aca3faaa26e8354a40612e85e4 (patch) | |
tree | 204c75486639c23cdda2ef38b34d7e5050a1a2e3 /src/DotNetOpenAuth.OpenId/OpenId/DiffieHellmanUtilities.cs | |
parent | af21cdaf77ca72f54e04f22268b740ce262582fa (diff) | |
parent | 71dc7f7a7146b021c358a9f341980d1f5e976955 (diff) | |
download | DotNetOpenAuth-8f4165ee515728aca3faaa26e8354a40612e85e4.zip DotNetOpenAuth-8f4165ee515728aca3faaa26e8354a40612e85e4.tar.gz DotNetOpenAuth-8f4165ee515728aca3faaa26e8354a40612e85e4.tar.bz2 |
Merge in a bunch of build system and NuGet work.
Diffstat (limited to 'src/DotNetOpenAuth.OpenId/OpenId/DiffieHellmanUtilities.cs')
-rw-r--r-- | src/DotNetOpenAuth.OpenId/OpenId/DiffieHellmanUtilities.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.OpenId/OpenId/DiffieHellmanUtilities.cs b/src/DotNetOpenAuth.OpenId/OpenId/DiffieHellmanUtilities.cs index 78f90c9..e7e1bf8 100644 --- a/src/DotNetOpenAuth.OpenId/OpenId/DiffieHellmanUtilities.cs +++ b/src/DotNetOpenAuth.OpenId/OpenId/DiffieHellmanUtilities.cs @@ -23,10 +23,10 @@ namespace DotNetOpenAuth.OpenId { /// An array of known Diffie Hellman sessions, sorted by decreasing hash size. /// </summary> private static DHSha[] diffieHellmanSessionTypes = new List<DHSha> { - new DHSha(new SHA512Managed(), protocol => protocol.Args.SessionType.DH_SHA512), - new DHSha(new SHA384Managed(), protocol => protocol.Args.SessionType.DH_SHA384), - new DHSha(new SHA256Managed(), protocol => protocol.Args.SessionType.DH_SHA256), - new DHSha(new SHA1Managed(), protocol => protocol.Args.SessionType.DH_SHA1), + new DHSha(SHA512.Create(), protocol => protocol.Args.SessionType.DH_SHA512), + new DHSha(SHA384.Create(), protocol => protocol.Args.SessionType.DH_SHA384), + new DHSha(SHA256.Create(), protocol => protocol.Args.SessionType.DH_SHA256), + new DHSha(SHA1.Create(), protocol => protocol.Args.SessionType.DH_SHA1), } .ToArray(); /// <summary> |