Hi,
Are the sample values given in big-endian format?
If so (which is the standard representation way), then even your
expected result is false and the correct result as given by many
mathematical toolboxs is r =
0x1e1b37d30a287b7e551ca764d190d86f26fa292919fa8665731c766afcd6b3b2,
which is the
Hi,
It appears that your sample values are given in little-endian format (
big-endian is more usual and BN_bn2hex use it for example). I did check
the computation with various mathematical toolbox and they all gave the
same result as OpenSSL BN_mod_exp which is
66694e28fdca0bb1f34fe13e3b38088
E88CC015E3356DCE95FC265
Any other piece of code will be given if asked.
Thank you all for your time.
--
View this message in context:
http://www.nabble.com/Problem-with-BN_mod_exp-tp21513044p21513044.html
Sent from the OpenSSL - User mailing lis