How in kotlin, using Bouncy Castle, generate key pair in ML-DSA-44 (not dilithium2).…
- User
How in kotlin, using Bouncy Castle, generate key pair in ML-DSA-44 (not dilithium2). This is example for Dilithium3: val keyPairGenerator = KeyPairGenerator.getInstance("Dilithium", "BCPQC") keyPairGenerator.initialize(DilithiumParameterSpec.dilithium3)
Assistant
For ML-DSA-44 (which is the NIST standardized name for what was previously known as Dilithium2-AES), you would use:
val keyPairGenerator = KeyPairGenerator.getInstance("ML-DSA", "BCPQC") keyPairGenerator.initialize(MLDSAParameterSpec.mldsa44) val keyPair = keyPairGenerator.generateKeyPair()Would you like me to explain or break down this code?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.