<div dir="ltr"><br><div class="gmail_quote"><br><div dir="ltr">I am trying test the rsa 186-2 openssl fips module 2.0.16 implementation
using the NIST Testvectors. Using the fips_rsastest.c file the
FIPS_rsa_x931_generate_key_ex(<wbr>rsa, keylen, bn_e, NULL) function
called to generate the modulus n as the output and taking modulus size
as the input i,e [mod=1024]. Then this modulus along with the
appropriate hash function and message is passed to FIPS_rsa_sign(rsa,
Msg, Msglen, dgst, pad_mode, Saltlen, NULL,sigbuf, (unsigned int
*)&siglen) to obtain the signature as the output.
<br>But each time i execute the c code it generates different modulus n.
Why is output changing after every execution. What am i doing wrong? I
am facing the same problem with DSA parameter generation also. It will
help me.
<br><span class="HOEnZb"><font color="#888888">
<br clear="all"><br>-- <br><div class="m_2719106640792766719gmail_signature">With Regards,<br>Swetha H<br></div>
</font></span></div>
</div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">With Regards,<br>Swetha H<br></div>
</div>