<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Crypto.Signers.SlhDsaSigner

public sealed class SlhDsaSigner : ISigner
SLH-DSA (FIPS 205) signature primitive. Buffers the message via the streaming ISigner surface prefixed with the FIPS 205 context envelope and dispatches the whole buffer to the hypertree sign / verify routines on finalisation. The signer must be bound to the same ParameterSet as the key it is initialised with. Optional ParametersWithContext (up to 255 bytes) and ParametersWithRandom envelopes are unwrapped during Init.
public string AlgorithmName { get; }

public SlhDsaSigner(SlhDsaParameters parameters, bool deterministic)

Construct an SLH-DSA signer for the supplied parameter set. Only the pure variants are accepted; the HashSLH-DSA variants (those carrying a pre-hash OID) must go through their dedicated wrapper instead.

public void BlockUpdate(byte[] input, int inOff, int inLen)

public byte[] GenerateSignature()

Finalise the buffered message and produce the signature. Buffer is reset on return.

public int GetMaxSignatureSize()

Length in bytes of the signatures this signer produces (FIPS 205 SignatureLength).

public void Init(bool forSigning, ICipherParameters parameters)

Initialise for signing (private key) or verification (public key). Accepts ParametersWithContext for a context up to 255 bytes and ParametersWithRandom for the non-deterministic signer's randomiser source.

public void Reset()

Truncate the buffered message back to the captured context prefix.

public void Update(byte input)

public bool VerifySignature(byte[] signature)

Finalise the buffered message and verify signature. Buffer is reset on return.