v2.0.0
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
andIncrementalPoly1305
, which are identical to theBLAKE2b
andPoly1305
constants. - Support for .NET 7.
Changed
DeriveSenderSharedSecret()
has been renamed toDeriveSenderSharedKey()
for clarity.DeriveRecipientSharedSecret()
has been renamed toDeriveRecipientSharedKey()
.ComputeXCoordinate()
has been renamed toComputeSharedSecret()
. 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 aBLAKE2b.ComputeHash()
function that takes aStream
andIncrementalBLAKE2b
for keyed hashing.