<div dir="auto">Well, you can use opaque pointer and own structure containing a flag and switch between native and custom implementations depending on it.<div dir="auto"><br></div><div dir="auto">I've tried it and it works</div></div><br><div class="gmail_quote"><div dir="ltr">пн, 15 окт. 2018 г., 23:13 Selva Nair <<a href="mailto:selva.nair@gmail.com">selva.nair@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank" rel="noreferrer">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>
-- <br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer noreferrer" target="_blank">https://mta.openssl.org/mailman/listinfo/openssl-users</a><br>
</blockquote></div>