Stable release. Get the package from NuGet.org.
v2.0.0 - direct download link
Introduced changes:
- Performance optimizations
- The minimum target platform lowered from .NET Standard 1.6 to .NET Standard 1.3
- More reliable approach for cleaning out temporary buffers
- Bug fix for overlapping spans:
Previous version of HKDF.Standard has a bug where the methodsExpand
andDeriveKey
may produce incorrect results if the supplied spansinfo
andoutput
overlap. The same bug exists in Microsoft's implementation of HKDF in .NET 5. Find out more about it in the dedicated GitHub Issue. In this version of HKDF.Standard the bug is fixed by allocating a temporary buffer and making a copy of one of the spans - similarly to how it is fixed in Microsoft's implementation of HKDF in .NET 6.