bc-java icon indicating copy to clipboard operation
bc-java copied to clipboard

Unable to Generate ML-DSA and SLH-DSA Certificates with Keytool: ContextParameterSpec Issue?

Open yuhh0328 opened this issue 1 year ago • 1 comments

I am encountering an issue when attempting to generate ML-DSA and SLH-DSA certificates using the Java keytool. It seems to be related to the ContextParameterSpec. Specifically, I am unsure if this is a bug or if there are additional options that need to be provided when running the keytool command.

keytool-MLDSA44

yuhh0328 avatar Dec 18 '24 06:12 yuhh0328

Thanks for the report. Hmmm. Okay, there's no encoding rules for the ContextParameter spec at the moment, while we're probably going to see one eventually, given issues like this we should be returning null if the default zero length context is in use since pretty much every non-BC based tool is likely to break with the new algorithms.

Try what's in https://downloads.bouncycastle.org/betas and let us know how it goes.

dghgit avatar Dec 22 '24 02:12 dghgit

Assumed fixed with change to default return value.

dghgit avatar Aug 11 '25 05:08 dghgit