Microsoft.Bcl.Cryptography 10.0.0-rc.2.25502.107
About
This library provides some cryptographic types and functionality for .NET Standard and .NET Framework. This library is not necessary nor recommended when targeting versions of .NET that include the relevant support.
Key Features
- Enables the use of some cryptographic functionality on older .NET platforms.
How to Use
This package should only be used by platforms where the desired functionality is not built-in.
using System.Security.Cryptography;
internal static class Program
{
private static void Main()
{
byte[] key = LoadKey();
using SP800108HmacCounterKdf kbkdf = new(key, HashAlgorithmName.SHA256);
byte[] derivedKey = kbkdf.DeriveKey("label"u8, "context"u8, derivedKeyLengthInBytes: 32);
}
}
Main Types
The main types provided by this library are:
System.Security.Cryptography.AesGcmSystem.Security.Cryptography.CompositeMLDsaSystem.Security.Cryptography.MLDsaSystem.Security.Cryptography.MLKemSystem.Security.Cryptography.SlhDsaSystem.Security.Cryptography.SP800108HmacCounterKdfSystem.Security.Cryptography.X509Certificates.X509CertificateLoader
Additional Documentation
Feedback & Contributing
Microsoft.Bcl.Cryptography is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
No packages depend on Microsoft.Bcl.Cryptography.
.NET Framework 4.6.2
- System.Formats.Asn1 (>= 10.0.0-rc.2.25502.107)
- System.Memory (>= 4.6.3)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
.NET 8.0
- System.Formats.Asn1 (>= 10.0.0-rc.2.25502.107)
.NET 9.0
- No dependencies.
.NET 10.0
- No dependencies.
.NET Standard 2.0
- System.Formats.Asn1 (>= 10.0.0-rc.2.25502.107)
- System.Memory (>= 4.6.3)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
.NET Standard 2.1
- System.Formats.Asn1 (>= 10.0.0-rc.2.25502.107)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)