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
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Letterbook.NSign.BouncyCastle" Version="0.19.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Letterbook.NSign.BouncyCastle --version 0.19.1
#r "nuget: Letterbook.NSign.BouncyCastle, 0.19.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 234 10/23/2023