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

Org.BouncyCastle.Crypto.Signers.CompositeMLDsaSigner

sealed class CompositeMLDsaSigner : ISigner
Composite ML-DSA signature primitive, as specified by Composite ML-DSA for use in X.509 Public Key Infrastructure.
public string AlgorithmName { get; }

Construct a signer that hashes the message itself.

public CompositeMLDsaSigner(CompositeMLDsaParameters parameters, bool preHashed)

Construct a signer, optionally in pre-hashed mode.

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

public void BlockUpdate(ReadOnlySpan<byte> input)

public byte[] GenerateSignature()

public int GetMaxSignatureSize()

Upper bound in bytes on the composite signatures this signer produces: the fixed ML-DSA half plus the traditional signer's own bound. ECDSA signatures are DER-encoded and so vary in length, which makes this a bound rather than an exact size.

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 to supply the randomness the component signers need.

public void Reset()

public void Update(byte input)

public bool VerifySignature(byte[] signature)