Set ECDsaCng default hash algorithm to SHA256
authorDávid Kaya <mail@davidkaya.sk>
Sun, 29 Jul 2018 17:36:36 +0000 (19:36 +0200)
committerJeremy Barton <jbarton@microsoft.com>
Sun, 29 Jul 2018 17:36:36 +0000 (10:36 -0700)
commitd792f955e5c4e8b6501b611a13eae448a5a7ffaf
treea3342460fbc1b5f69b621899d0ded9fcb8399760
parentda166250dcbb1a7f90d92fa79b3e9ac25880a562
Set ECDsaCng default hash algorithm to SHA256

Also added tests for both ECDsaCng and ECDiffieHellmanCng to ensure the default matches .NET Framework.

Commit migrated from https://github.com/dotnet/corefx/commit/d60303de08c9c9c4b2138f02ad597f6486648c11
src/libraries/System.Security.Cryptography.Cng/src/System/Security/Cryptography/ECDsaCng.cs
src/libraries/System.Security.Cryptography.Cng/tests/ECDiffieHellmanCngTests.cs
src/libraries/System.Security.Cryptography.Cng/tests/ECDsaCngTests.cs