HKDF implementation (dotnet/corefx#42567)
authorKrzysztof Wicher <mordotymoja@gmail.com>
Thu, 14 Nov 2019 00:23:19 +0000 (16:23 -0800)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2019 00:23:19 +0000 (16:23 -0800)
commit32388df1ad99d616377b5ec6ca4966d60f10b365
treea12b2359d757cee4c0be0620b5c75cdf127982c5
parentad6c91b067ace7d8c25dc04bcb792ef6d48dbbb7
HKDF implementation (dotnet/corefx#42567)

* HKDF implementation

* Fix CreateMacProvider on OSX

* apply review feedback

* improve error message in case of test failure

Commit migrated from https://github.com/dotnet/corefx/commit/c14fc5636bdb9141f69eaeaf0e5812b80af525b1
13 files changed:
src/libraries/Common/src/Internal/Cryptography/HashProviderCng.cs
src/libraries/Common/src/Interop/Windows/BCrypt/Interop.BCryptCreateHash.cs
src/libraries/System.Security.Cryptography.Algorithms/ref/System.Security.Cryptography.Algorithms.cs
src/libraries/System.Security.Cryptography.Algorithms/src/Internal/Cryptography/HMACCommon.cs
src/libraries/System.Security.Cryptography.Algorithms/src/Internal/Cryptography/HashProviderDispenser.OSX.cs
src/libraries/System.Security.Cryptography.Algorithms/src/Internal/Cryptography/HashProviderDispenser.Unix.cs
src/libraries/System.Security.Cryptography.Algorithms/src/Internal/Cryptography/HashProviderDispenser.Windows.cs
src/libraries/System.Security.Cryptography.Algorithms/src/Resources/Strings.resx
src/libraries/System.Security.Cryptography.Algorithms/src/System.Security.Cryptography.Algorithms.csproj
src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/HKDF.cs [new file with mode: 0644]
src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/IncrementalHash.cs
src/libraries/System.Security.Cryptography.Algorithms/tests/HKDFTests.cs [new file with mode: 0644]
src/libraries/System.Security.Cryptography.Algorithms/tests/System.Security.Cryptography.Algorithms.Tests.csproj