This library contains extension methods that "backport" PKI-related methods introduced in .NET 5, 6, or 7 to older runtime versions, including:
ECDsa.SignData
overloads that accept aDSASignatureFormat
parameter.ECDsa.VerifyData
overloads that accept aDSASignatureFormat
parameter.{ECDSA, RSA}.ExportSubjectPublicKeyInfo
{ECDSA, RSA}.ExportSubjectPublicKeyInfoPem
{ECDSA, RSA}.ImportSubjectPublicKeyInfo
{ECDSA, RSA}.ImportFromPem
RSA.ExportRSAPublicKey
RSA.ExportRSAPublicKeyPem
RSA.ImportRSAPublicKey
X509Certificate2.ExportCertificatePem
The library uses the Windows CryptoAPI and CNG native APIs to implement these "missing" methods.
Jpki.Security.Cryptography
has no runtime dependencies and supports the following runtimes:
- .NET Framework 4.7+
- .NET 6.0+ (Windows)
This library is a managed wrapper for the (semi-documented) Windows Hello WebAuthn API to create WebAuthn assertions and credentials in .NET.
Jpki.Security.WebAuthn
depends on Jpki.Security.Cryptography
but has no further runtime dependencies.
It supports the following runtimes:
- .NET Framework 4.7+
- .NET 6.0+ (Windows)
All files in this repository are under the Apache License, Version 2.0 unless noted otherwise.