Re: OpenSSL with Security Processor

2004-10-22 Thread Sander Temme
Hey Gurpreet,
On Oct 21, 2004, at 3:57 PM, Gurpreet Grewal wrote:
I am facing a problem when I am trying to use the OpenSSL (0.9.7d to
be precise) with the BraodCom BCM5823 card. I tried running the
following two commands-
  openssl des3  -in inputfile  -out outputfile -engine ubsec
  openssl des3  -in inputfile  -out outputfile
Ideally the first command should take less time/less main CPU coz it
should be using the SSL processor. But they take almost the same
amount of time/main CPU.
This is not exactly a forum for OpenSSL discussion... as you saw, your 
previous question about running httpd/mod_ssl with the SSL Engine 
generated quite a bit of response. However, you may expect the OpenSSL 
interest of the Apache httpd community to stop at the integration 
boundary.

That said, does the BCM4823 actually offload 3DES operations for you? 
Even if it does, it may be that the trip across the PCI bus cancels out 
any benefit you might be gaining from the offload.

Try some RSA encrypt/decrypt operations: that's where this type of 
coprocessor really shines.

S.
--
[EMAIL PROTECTED]  http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF


smime.p7s
Description: S/MIME cryptographic signature


OpenSSL with Security Processor

2004-10-21 Thread Gurpreet Grewal
I am facing a problem when I am trying to use the OpenSSL (0.9.7d to
be precise) with the BraodCom BCM5823 card. I tried running the
following two commands-
  openssl des3  -in inputfile  -out outputfile -engine ubsec
  openssl des3  -in inputfile  -out outputfile

Ideally the first command should take less time/less main CPU coz it
should be using the SSL processor. But they take almost the same
amount of time/main CPU.

Any clues where in the OpenSSL code I should be looking for ensuring
that SSL card is actually being used for processing? Looking into
openssl-0.9.7d\crypto\engine\hw_ubsec.c 
didn't help much?


OpenSSL with Security Processor

2004-10-21 Thread Gurpreet Grewal
I know this might not be the best forum to do this posting. But I am
facing this problem since a long time now. When I am trying to use the
OpenSSL (0.9.7d to be precise) with the BraodCom BCM5823 card. I tried
running the following two commands-
  openssl des3  -in inputfile  -out outputfile -engine ubsec
  openssl des3  -in inputfile  -out outputfile

Ideally the first command should take less time/less main CPU coz it
should be using the SSL processor. But they take almost the same
amount of time/main CPU.

Any clues where in the OpenSSL code I should be looking for ensuring
that SSL card is actually being used for processing? Looking into
openssl-0.9.7d\crypto\engine\hw_ubsec.c 
didn't help much?


Re: OpenSSL with Security Processor

2004-10-21 Thread Cliff Woolley
On Thu, 21 Oct 2004, Gurpreet Grewal wrote:

 Any clues where in the OpenSSL code I should be looking for ensuring
 that SSL card is actually being used for processing? Looking into
 openssl-0.9.7d\crypto\engine\hw_ubsec.c
 didn't help much?

You should direct this question to the openssl mailing lists.  :-)  Have a
look at http://www.openssl.org/ for details on what the correct list to
send to would be.

Thanks,
Cliff