Skip to content

v2.0.0

Compare
Choose a tag to compare
@samuel-lucas6 samuel-lucas6 released this 30 Nov 21:51
· 135 commits to main since this release

Please install Geralt via NuGet.

Added

  • IncrementalXChaCha20Poly1305, which is a wrapper around crypto_secretstream_*() for chunked stream/file encryption. You can read the Geralt documentation here.
  • Constants for IncrementalBLAKE2b and IncrementalPoly1305, which are identical to the BLAKE2b and Poly1305 constants.
  • Support for .NET 7.

Changed

  • DeriveSenderSharedSecret() has been renamed to DeriveSenderSharedKey() for clarity.
  • DeriveRecipientSharedSecret() has been renamed to DeriveRecipientSharedKey().
  • ComputeXCoordinate() has been renamed to ComputeSharedSecret(). The above functions should still be preferred to prevent accidental vulnerabilities.
  • The Validation class has been made public because it's useful for custom constructions without having to have hideous if statements everywhere.

Removed

  • The BLAKE2bHashAlgorithm class because it returned a byte array. It has been replaced with a BLAKE2b.ComputeHash() function that takes a Stream and IncrementalBLAKE2b for keyed hashing.