Letterbook.NSign.BouncyCastle
0.19.1
dotnet add package Letterbook.NSign.BouncyCastle --version 0.19.1
NuGet\Install-Package Letterbook.NSign.BouncyCastle -Version 0.19.1
<PackageReference Include="Letterbook.NSign.BouncyCastle" Version="0.19.1" />
paket add Letterbook.NSign.BouncyCastle --version 0.19.1
#r "nuget: Letterbook.NSign.BouncyCastle, 0.19.1"
// Install Letterbook.NSign.BouncyCastle as a Cake Addin #addin nuget:?package=Letterbook.NSign.BouncyCastle&version=0.19.1 // Install Letterbook.NSign.BouncyCastle as a Cake Tool #tool nuget:?package=Letterbook.NSign.BouncyCastle&version=0.19.1
NSign extensions using BouncyCastle
This library must be used together with other NSign libraries. It provides support for signatures and signature verifications for EdDSA using curve edwards25519.
Usage
Signature provider for EdDSA using cure edwards 25519
var provider = new EdDsaEdwards25519SignatureProvider(
privateKey,
publicKey,
"the-key-id"));
Here, privateKey
and publicKey
are instances of Ed25519PrivateKeyParameters
and
Ed25519PublicKeyParameters
from the BouncyCastle.Cryptography
package respectively.
If you have the keys in PEM-formatted files, you can use the PemReader
from the same BouncyCastle
package to read those keys. If you have a .pfx or a .cer file, you can use openssl
to extract the
keys. For instance:
# Extract the ed25519 private key from a .pfx file holding an ed25519 private key:
openssl pkcs12 -in my.pfx -nocerts -nodes -out my-priv.pem
# Extract the public key from the above extracted private key
openssl pkey -in my-priv.pem -pubout -out my-pub.pem
## OR, if you just have the public key in a certificate file:
openssl x509 -in my.cer -pubkey -nocert -out my-pub.pem
Make sure to consult the documentation of your openssl
installation for more details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- BouncyCastle.Cryptography (>= 2.2.1)
- Letterbook.NSign.Abstractions (>= 0.19.1)
-
net7.0
- BouncyCastle.Cryptography (>= 2.2.1)
- Letterbook.NSign.Abstractions (>= 0.19.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.19.1 | 273 | 10/23/2023 |