<div dir="auto">Looks like BN_is_prime_ex() is the API to check this test.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 26 Jun 2019, 18:59 Hareesh D, <<a href="mailto:hareesh.sai@gmail.com">hareesh.sai@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">These is a testvector available in NIST Keyagrn_186-3_Random ProbablyPrime3_3_KAT.txt.<div dir="auto"><br></div><div dir="auto">Is it possible to verify this with OpenSSL1.1.1a. If yes, Can you please give the corresponding APIs to be used. </div><div dir="auto"><br></div><div dir="auto">I considered prandom, qrandom as factors p, q and tried checking RSA key generation with the mentioned exponent. But results are not as expected. I guess prandom, qrandom are to be used as only initial random prime numbers and see that key generation tries to generate a new random number when they are not meeting the criteria as mentioned in the *.txt file (reason as part of Result) .</div><div dir="auto">Just my assumption.</div><div dir="auto"><br></div><div dir="auto">Is this file really a test vector and implementations should comply? I see some info about this in rsa2vs.pdf (available in NIST) section 6.2.2.1. </div><div dir="auto"><br></div><div dir="auto">How OpenSSL complies to this.</div><div dir="auto"><br></div><div dir="auto">Thanks !!</div></div>
</blockquote></div>