Skip to content

Conversation

@juergw
Copy link
Collaborator

@juergw juergw commented Nov 27, 2025

OpenSslSignatureMlDsa currently uses OpenSSLKey.fromPrivateKey and OpenSSLKey.fromPublicKey, which do this conversion for other key types. But it uses the functions NativeCrypto.EVP_parse_private_key and NativeCrypto.EVP_parse_public_key, which do not support ML-DSA. So we can't use them. Instead, we use the key factory to translate the key for us.

Currently, we use OpenSSLKey.fromPublicKey(publicKey). But that doesn't work
for ML-DSA, because it used an old parse function that doesn't support
ML-DSA. It is better to use engineTranslateKey.
@juergw juergw changed the title Add tests for sign and verify with foreign ML-DSA keys. Accept foreign ML-DSA keys for sign and verify. Dec 4, 2025
@juergw juergw requested a review from miguelaranda0 December 4, 2025 11:35
@juergw juergw merged commit 5179440 into google:master Dec 5, 2025
37 checks passed
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

Successfully merging this pull request may close these issues.

2 participants