Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bouncy castle 1.80 - Unable to create content signer with ML-DSA #1991

Open
bhushan5640 opened this issue Feb 11, 2025 · 2 comments
Open

Bouncy castle 1.80 - Unable to create content signer with ML-DSA #1991

bhushan5640 opened this issue Feb 11, 2025 · 2 comments

Comments

@bhushan5640
Copy link

bhushan5640 commented Feb 11, 2025

Both options below fail with the error - cannot create signer: no such algorithm: ML-DSA-65 for provider BCPQC on Bouncy castle v1.80

        ContentSigner contentSigner = new JcaContentSignerBuilder("Dilithium3")
            .setProvider("BCPQC")
            .build(keyPair.getPrivate());
OR
        ContentSigner contentSigner = new JcaContentSignerBuilder("ML-DSA-65")
            .setProvider("BCPQC")
            .build(keyPair.getPrivate());
@ligefeiBouncycastle
Copy link
Collaborator

One workaround is to use the standard "BC" provider, which often has broader support for these algorithms. For example:
ContentSigner contentSigner = new JcaContentSignerBuilder("ML-DSA-65") .setProvider("BC") .build(keyPair.getPrivate());
Let me know if this helps or if you need further assistance!

@bhushan5640
Copy link
Author

Thanks, yes I found that out in the meantime :)
But I was expecting it to also work with "BCPQC" provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants