Soenneker.Hashing.Slhdsa 11.0.586

Prefix Reserved
dotnet add package Soenneker.Hashing.Slhdsa --version 11.0.586
                    
NuGet\Install-Package Soenneker.Hashing.Slhdsa -Version 11.0.586
                    
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="Soenneker.Hashing.Slhdsa" Version="11.0.586" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Hashing.Slhdsa" Version="11.0.586" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Hashing.Slhdsa" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Hashing.Slhdsa --version 11.0.586
                    
#r "nuget: Soenneker.Hashing.Slhdsa, 11.0.586"
                    
#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.
#:package Soenneker.Hashing.Slhdsa@11.0.586
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Hashing.Slhdsa&version=11.0.586
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Hashing.Slhdsa&version=11.0.586
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Hashing.Slhdsa

Generates SLH-DSA post-quantum key pairs, signs UTF-8 messages, and verifies signatures using Bouncy Castle. This is a digital-signature utility, not a password-hashing API.

Installation

dotnet add package Soenneker.Hashing.Slhdsa

Generate keys, sign, and verify

using Soenneker.Hashing.Slhdsa;

(string privateKey, string publicKey) = SlhDsaHashingUtil.GenerateKeyPair();

string signature = SlhDsaHashingUtil.SignMessage(
    "release-manifest-v42",
    privateKey);

bool valid = SlhDsaHashingUtil.VerifySignature(
    "release-manifest-v42",
    signature,
    publicKey);

Keys and signatures are returned as Base64 strings. The private key contains a DER-encoded PKCS#8 PrivateKeyInfo; the public key contains a DER-encoded X.509 SubjectPublicKeyInfo.

Choose a parameter set

using Soenneker.Hashing.Slhdsa.Enums;

const SlhDsaParameterType parameters = SlhDsaParameterType.SLH_DSA_SHA2_192S;

(string privateKey, string publicKey) =
    SlhDsaHashingUtil.GenerateKeyPair(parameters);

string signature = SlhDsaHashingUtil.SignMessage(message, privateKey, parameters);
bool valid = SlhDsaHashingUtil.VerifySignature(message, signature, publicKey, parameters);

The same parameter set must be used for key generation, signing, and verification. The default is SLH_DSA_SHAKE_128F. In the enum names, 128, 192, and 256 identify security categories; F variants favor faster signing with larger signatures, while S variants favor smaller signatures with slower signing.

The overloads accepting Bouncy Castle’s SlhDsaParameters or a signer-name string are available for advanced interoperability scenarios. Prefer the enum overloads when both sides use this package.

VerifySignature() returns false for malformed Base64, invalid keys, invalid signatures, unsupported signer names, and encoded inputs above its defensive size limits. Signing and key generation surface configuration/key errors. Decoded private-key and message buffers are cleared after signing, but the returned private-key string is immutable managed data: protect it with an appropriate secret store, restrict access, and never log it.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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
11.0.586 114 11/3/2026
11.0.585 81 11/3/2026
11.0.584 89 11/2/2026
11.0.583 108 10/27/2026
11.0.582 88 10/26/2026
11.0.581 90 10/26/2026
4.0.579 114 10/15/2026
4.0.578 90 10/14/2026
4.0.577 89 10/14/2026
4.0.576 82 10/14/2026
4.0.575 95 10/14/2026
4.0.573 99 10/14/2026
4.0.567 92 10/13/2026
4.0.566 96 10/12/2026
4.0.563 93 10/12/2026
4.0.562 102 10/11/2026
4.0.561 107 10/11/2026
4.0.560 102 10/11/2026
4.0.559 100 10/11/2026
4.0.558 156 9/30/2026
Loading failed

Updated Soenneker.Extensions.String to 11.0.810