<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Crypto.Generators.SlhDsaKeyPairGenerator

Key-pair generator for SLH-DSA (FIPS 205). Driven by an SlhDsaKeyGenerationParameters init payload; produces an AsymmetricCipherKeyPair bound to the chosen parameter set.

Generate a fresh SLH-DSA key pair by drawing the three n-byte seeds (SK.seed, SK.prf, PK.seed) and computing the hypertree root.

public void Init(KeyGenerationParameters parameters)

Initialise with an SlhDsaKeyGenerationParameters instance; the SecureRandom and parameter set are taken from it.