<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi<br><br>I wanted some input on a problem. I need to use bn_exp for some big calculation but I hit a limit where it take age to get a result (after two day I stopped the process). I tried for fun to run a bn_mod_exp and it took 2 seconds.  <br><br>The manpage state that;<br><br><i>BN_exp()</i> raises <i>a</i> to the <i>p</i>-th power and places the result in <i>r</i> (<tt>"r=a^p"</tt>). This function is faster than repeated
applications of <i>BN_mul()</i>.
<BR><i>BN_mod_exp()</i> computes <i>a</i> to the <i>p</i>-th power modulo <i>m</i> (<tt>"r=a^p % m"</tt>). This function uses less time and space than
<i>BN_exp()</i>. <br><BR><br><BR>Is there a tip there to get the exp result from bn_mod_exp ? or to optimize bn_exp ? <br><BR><br><br><br>Thanks<br><br><br><br>Philippe<br><br><br>nb. Sorry if the question might have been answered in the past, I didn't find any way to search the mailing-list's archive.<br>                                     </div></body>
</html>