Re: Issues integrating with ML-DSA

Matt Caswell <[email protected]> Mon, 21 Jul 2025 11:54:56 +0100
Newsgroups gmane.comp.encryption.openssl.user
Message-ID <CAODx15d-XCtbmRVfk5TwgNFVaT_TgUCF0eN_UsKphJQnAYxhEQ@mail.gmail.com>
On Wed, 16 Jul 2025 at 08:52, Santiago de Vicente Poutás <
[email protected]> wrote:

> Hi all,
>
> I am trying to modify libp11 to support a HSM that has PQC capabilities.
> For that right now I am trying to create a EVP_PKEY with the new keytype
> EVP_PKEY_ML_DSA_44. The problem I'm encountering right now is that I'm
> trying to call EVP_PKEY_assign() with a key_type of EVP_PKEY_ML_DSA_44 but
> it returns a 0.
>
> I also don't know what to put on the *key part to be honest.
>

Calling `EVP_PKEY_assign` for ML-DSA really doesn't make any sense.
`EVP_PKEY_assign` is deprecated, and only really useful if you are
assigning a legacy "low level" key to the EVP_PKEY. Newer provider based
keys don't work this way so you should not call EVP_PKEY_assign() for them.

Are you trying to generate a new key? Or load/import some existing key?

Matt


>
> Best Regards,
>
> --
> You received this message because you are subscribed to the Google Groups
> "openssl-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
> To view this discussion visit
> https://groups.google.com/a/openssl.org/d/msgid/openssl-users/3c3f7860-5a55-4719-a504-3784fedffe3dn%40openssl.org
> <https://groups.google.com/a/openssl.org/d/msgid/openssl-users/3c3f7860-5a55-4719-a504-3784fedffe3dn%40openssl.org?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/CAODx15d-XCtbmRVfk5TwgNFVaT_TgUCF0eN_UsKphJQnAYxhEQ%40mail.gmail.com.