Matt Henderson wrote:
> 
> I have been using openssl 0.9.6 under windows and have found some
> behaviour that I find curious.  When I change the suite from V2 to V3 I
> am getting an enormous performance hit.
> 
> SSL_METHOD * pMethod = SSLv2_client_method();
> 
> SSL connection using : RC4-MD5
> Peer name SSLeay demo server
> 2113863 bytes written
> In 0.36 seconds
> 
> and
> 
> SSL_METHOD * pMethod = SSLv3_client_method();
> 
> SSL connection using : RC4-MD5
> Peer name SSLeay demo server
> 2113863 bytes written
> In 25.797 seconds
> 
> Am I missing something here?  I'm using non-blocking I/O which seems to
> be
> working fine.  I just don't understand the performance difference as
> this is
> the only line of code (in the client) that I am changing.  The server is
> the
> same binary each time.
> 

There's nothing that should cause that kind of hit. I suppose it is
possible that the server is precomputing an RSA temporary key which is
only needed for SSLv3 and TLS, in which case the time will vary
considerably and subsequenct connections may be quicker.

Its hard to know without seeing the client and server source though.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to