Skip to content

v3.3.0

Latest
Compare
Choose a tag to compare
@samuel-lucas6 samuel-lucas6 released this 15 Dec 19:30

Please install Geralt via NuGet.

Added

  • A SecureMemory class that contains methods for zeroing byte arrays, char arrays, and strings as well as locking/unlocking byte arrays. Note that arrays must be pinned for these methods to work properly.
  • Guarded heap allocations, which can be used instead of regular allocations for additional security. However, there's a performance penalty, and this functionality shouldn't be used for large amounts of variables/data due to system limits. Make sure you read the new documentation.
  • A Validation.MultipleOfSize() method to check that an integer is a multiple of another integer.

Changed

  • Every method in all the incremental classes now checks whether the object has been disposed, throwing ObjectDisposedException if so.
  • The test packages have been updated.

Fixed

  • A bug with SecureRandom.GetPassphrase() returning passphrases containing '\r' characters on Windows. This wasn't a problem in .NET 6 and wasn't detectable in a library context, only in a CLI application.
  • The libsodium package has been updated, which fixes win-arm64 support not working.