Packages
The CryptoHives .NET Foundation is a set of independent NuGet packages — take only the one you need.
All of them target net462, netstandard2.0, netstandard2.1, net8.0 and net10.0
(the cryptography package adds net472), and none of them depend on each other.
| Package | What it gives you | NuGet |
|---|---|---|
| Memory | Pooled buffers and streams on top of ArrayPool<T>: ArrayPoolMemoryStream, ArrayPoolBufferWriter<T>, ReadOnlySequenceMemoryStream, and RAII ownership helpers |
CryptoHives.Foundation.Memory |
| Threading | ValueTask-based async synchronization primitives with pooled waiters: AsyncLock, AsyncKeyedLock<TKey>, AsyncSemaphore, the events, the barrier, the countdown, and the reader-writer lock |
CryptoHives.Foundation.Threading |
| Threading.Analyzers | Roslyn analyzers that catch ValueTask misuse at compile time. Ships separately — install it alongside the Threading package |
CryptoHives.Foundation.Threading.Analyzers |
| Security.Cryptography | Fully managed hash, MAC, KDF and cipher implementations written from the specifications, with no OS crypto dependency | CryptoHives.Foundation.Security.Cryptography |
Where to start
- New here? The Getting Started guide installs each package and shows a first example.
- Migrating existing code? The Porting Guide maps BCL types onto these ones step by step.
- Looking for a specific type? The API reference lists every public namespace.
- Wondering how fast it is? The benchmark dashboards for Threading and Cryptography publish every recorded run, measured against the reference implementations.