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

Org.BouncyCastle.Crypto.Generators.MLKemKeyPairGenerator

Key-pair generator for ML-KEM (FIPS 203). Driven by an MLKemKeyGenerationParameters init payload; produces an AsymmetricCipherKeyPair bound to the chosen parameter set.

Generate a fresh ML-KEM key pair. The private key is returned with SeedAndEncoding so the resulting key carries both the 64-byte seed and the expanded encoding.

public void Init(KeyGenerationParameters parameters)

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