<div dir="ltr"><div>Hi</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><br><div><br></div><div>This is great, but limiting RSA signature to  RSA-PKCS#1 v 1.5 is a major limitation. It doesn't have to be that way as the OpenSSL engine interface does allow using EVP_PKEY_METHOD callbacks instead of rsa_priv_dec etc.</div></div></div></blockquote><div><br></div><div>Yes I agree the lack of support for RSA-PSS is significant. There is a discussion (which includes you, I see ) around the root cause of that here: <a href="https://github.com/openssl/openssl/issues/7341" target="_blank">https://github.com/openssl/openssl/issues/7341</a> , among other places.</div></div></div></blockquote><div><br></div><div>That discussion is valid only if you insist on using "legacy" rsa_sign or other rsa_priv_dec  which have no mechanism for providing context info like padding and hash type.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></div><div>It is not clear to me what you mean with "the OpenSSL engine interface does allow using EVP_PKEY_METHOD callbacks instead of rsa_priv_dec etc.". Can you elaborate (here or on the GitHub issue)?</div></div></div></blockquote><div><br></div><div>To add to what Matt wrote:</div><div><br></div><div>As an example, see my PR for pkcs11-helper: <a href="https://github.com/OpenSC/pkcs11-helper/pull/31">https://github.com/OpenSC/pkcs11-helper/pull/31</a>  This uses a dummy engine and passes the singing operation to the pkcs11 device, but the idea is the same.</div><div><br></div><div>Selva</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div>