<div dir="ltr">Hi Jakob,<div><br></div><div>Can you please give me some reference/example of bignum optimization which I can check on powerpc architectures.</div><div>Is this any specific instruction set addition? or something more generic?</div><div><br></div><div>Thanks & Regards</div><div>Mithun</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 17, 2017 at 9:38 PM, Jakob Bohm <span dir="ltr"><<a href="mailto:jb-openssl@wisemo.com" target="_blank">jb-openssl@wisemo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 17/01/2017 07:44, Mithun P wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
I have a embedded board P1010 RDB  running openssl on VXWORKS 5.4 .<br>
I am generating RSA 2048 and 3072 bit key pairs.<br>
I am providing entropy to openssl by using RAND_seed from a HW RNG.<br>
<br>
My average generation time for RSA 2048 key pair is 2 Minutes and  3072 is 8 minutes.<br>
Is there a way to reduce the generation time?<br>
<br>
</blockquote></span>
I believe this is a CPU intensive operation (if VxWorks can do<br>
this, try observing the CPU load during).<br>
<br>
Potential improvements:<br>
<br>
1. Check if the CPU specific bignum optimizations for your CPU<br>
  variant have been enabled via the libcrypto CPU detection code<br>
  (for example, there are optimizations for different ARM cortex<br>
  variants).<br>
2. Faster CPU (expensive obviously).<br>
3. Do the generation in the background before the keypair is<br>
  needed, at a time when the extra CPU load is less of a problem.<br>
<br>
<br>
Enjoy<br>
<br>
Jakob<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Jakob Bohm, CIO, Partner, WiseMo A/S.  <a href="https://www.wisemo.com" rel="noreferrer" target="_blank">https://www.wisemo.com</a><br>
Transformervej 29, 2860 Søborg, Denmark.  Direct +45 31 13 16 10<br>
This public discussion message is non-binding and may contain errors.<br>
WiseMo - Remote Service Management for PCs, Phones and Embedded<br>
<br>
-- <br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/mailma<wbr>n/listinfo/openssl-users</a><br>
</font></span></blockquote></div><br></div>