<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
Hi Michel,<br /><br />it looks like what I am looking for, but the software 
uses EVP_VerifyInit_ex which is a typedef for EVP_DigestInit_ex. How are
 those functions related to EVP_DigestVerifyInit? Can I use 
EVP_DigestVerify* functions along with EVP_Verify* functions? I must not break compatibility with the old implementation which needs to support arbitrary MD algorithms.<br /><br />Thank you for your response!<br />Tom<br /><br /><blockquote class="tutanota_quote" style="border-left: 1px solid #93A3B8; padding-left: 10px; margin-left: 5px;"><div class="WordSection1"><p class="MsoNormal"><span class="pl-en"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d">Hi,</span></span></p><p class="MsoNormal"><span class="pl-en"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d"> </span></span></p><p class="MsoNormal"><span class="pl-en"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d">> </span></span><span class="pl-en"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif"">Is it possible to specify a different padding scheme (e.g. </span></span><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif"">RSA_PKCS1_PSS_PADDING) using this API<span style="color: #1f497d"> </span>?</span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif"">> </span><span style="font-family: "arial" , "sans-serif"">If not, what is the easiest way to work around this "limitation" ?</span><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d"><br /><br /></span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d">Isn’t it what you are looking for : EVP_PKEY_CTX_set_rsa_padding() ?</span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d"><a rel="noopener noreferrer" target="_blank" href="https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_rsa_padding.html">https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_rsa_padding.html</a></span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d">and :</span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d"><a rel="noopener noreferrer" target="_blank" href="https://wiki.openssl.org/index.php/EVP_Signing_and_Verifying">https://wiki.openssl.org/index.php/EVP_Signing_and_Verifying</a></span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d">(OpenSSL version >= 1.0)</span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d"> </span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d">Hope it helps,</span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d"> </span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d">Michel.</span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d"> </span></p><p class="MsoNormal"><span style="font-size: 11.0pt ; font-family: "arial" , "sans-serif" ; color: #1f497d"> </span></p></div></blockquote>  </body>
</html>