Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@andreimilto andreimilto released this 03 Nov 14:14
· 18 commits to main since this release

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 methods Expand and DeriveKey may produce incorrect results if the supplied spans info and output 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.