<div dir="ltr"><div dir="ltr"><div>         Hi,<br><br>How to override the evp_pkey_sign method in EVP_PKEY_METHOD structure for a specific key? This is to allow signing with PSS padding using Windows CNG API.  Using rsa_priv_enc() we can only get pre-padded data when PSS is in use, but CNG does not seem to handle padding = none.<br><br>Also see issue 7341 on github <a href="https://github.com/openssl/openssl/issues/7341">https://github.com/openssl/openssl/issues/7341</a><br></div><div><br>I can use EVP_PKEY_meth_add0() to add a new method struct and that works. But that affect all keys. Is it possible to replace the evp_pkey_sign method on a specific key instance like one can do for RSA or EC methods?<br><br></div><div>Thanks,<br><br></div><div>Selva</div></div></div>