Openssl benchmark numbers

2009-01-01 Thread Nagaraj Bagepalli
Hi,

Has anyone done openssl performance benchmarks on Intel's latest Nehalem
processor a.k.a. Core i7? Since there are lot of improvements in this
processor, wanted to see how openssl's performance improves. Appreciate if
you can share your experience on this?

Thanks,
Nagaraj


[openssl.org #1338] [PATCH] speed/benchmark support for whirlpool in -SNAP

2006-12-04 Thread Nils Larsch via RT

patch applied.

Thanks,
Nils
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: [PATCH] benchmark support for whirlpool (post-camellia)

2006-12-01 Thread Nils Larsch

[EMAIL PROTECTED] wrote:

This patch adds whirlpool benchmarking to openssl speed.

The recent addition of camellia broke the original patch attached to RT
bug 1338, which wasn't forwarded to the list anyway. (might be nice if
the RT-list gateway forwarded patches)


patch applied.

Thanks,
Nils
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


[PATCH] benchmark support for whirlpool (post-camellia)

2006-06-11 Thread justin-openssl
This patch adds whirlpool benchmarking to openssl speed.

The recent addition of camellia broke the original patch attached to RT
bug 1338, which wasn't forwarded to the list anyway. (might be nice if
the RT-list gateway forwarded patches)


-- 
Miranda.
diff -dur openssl-SNAP-20060611/apps/speed.c 
openssl-SNAP-20060611-wp/apps/speed.c
--- openssl-SNAP-20060611/apps/speed.c  2006-06-09 16:00:13.0 +
+++ openssl-SNAP-20060611-wp/apps/speed.c   2006-06-11 18:44:08.0 
+
@@ -144,6 +144,9 @@
 #ifndef OPENSSL_NO_RIPEMD
 #include openssl/ripemd.h
 #endif
+#ifndef OPENSSL_NO_WHIRLPOOL
+#include openssl/whrlpool.h
+#endif
 #ifndef OPENSSL_NO_RC4
 #include openssl/rc4.h
 #endif
@@ -198,7 +201,7 @@
 static int do_multi(int multi);
 #endif
 
-#define ALGOR_NUM  24
+#define ALGOR_NUM  25
 #define SIZE_NUM   5
 #define RSA_NUM4
 #define DSA_NUM3
@@ -212,7 +215,7 @@
   rc2 cbc,rc5-32/12 cbc,blowfish cbc,cast cbc,
   aes-128 cbc,aes-192 cbc,aes-256 cbc,
   camellia-128 cbc,camellia-192 cbc,camellia-256 cbc,
-  evp,sha256,sha512};
+  evp,sha256,sha512,whirlpool};
 static double results[ALGOR_NUM][SIZE_NUM];
 static int lengths[SIZE_NUM]={16,64,256,1024,8*1024};
 static double rsa_results[RSA_NUM][2];
@@ -349,6 +352,9 @@
unsigned char sha512[SHA512_DIGEST_LENGTH];
 #endif
 #endif
+#ifndef OPENSSL_NO_WHIRLPOOL
+   unsigned char whirlpool[WHIRLPOOL_DIGEST_LENGTH];
+#endif
 #ifndef OPENSSL_NO_RIPEMD
unsigned char rmd160[RIPEMD160_DIGEST_LENGTH];
 #endif
@@ -441,6 +447,7 @@
 #define D_EVP  21
 #define D_SHA256   22  
 #define D_SHA512   23
+#define D_WHIRLPOOL24
double d=0.0;
long c[ALGOR_NUM][SIZE_NUM];
 #defineR_DSA_512   0
@@ -760,6 +767,10 @@
else
 #endif
 #endif
+#ifndef OPENSSL_NO_WHIRLPOOL
+   if (strcmp(*argv,whirlpool) == 0) doit[D_WHIRLPOOL]=1;
+   else
+#endif
 #ifndef OPENSSL_NO_RIPEMD
if (strcmp(*argv,ripemd) == 0) doit[D_RMD160]=1;
else
@@ -963,12 +974,16 @@
 #ifndef OPENSSL_NO_SHA512
BIO_printf(bio_err,sha512   );
 #endif
+#ifndef OPENSSL_NO_WHIRLPOOL
+   BIO_printf(bio_err,whirlpool);
+#endif
 #ifndef OPENSSL_NO_RIPEMD160
BIO_printf(bio_err,rmd160);
 #endif
 #if !defined(OPENSSL_NO_MD2) || !defined(OPENSSL_NO_MDC2) || \
 !defined(OPENSSL_NO_MD4) || !defined(OPENSSL_NO_MD5) || \
-!defined(OPENSSL_NO_SHA1) || !defined(OPENSSL_NO_RIPEMD160)
+!defined(OPENSSL_NO_SHA1) || !defined(OPENSSL_NO_RIPEMD160) || \
+!defined(OPENSSL_NO_WHIRLPOOL)
BIO_printf(bio_err,\n);
 #endif
 
@@ -1199,6 +1214,7 @@
c[D_CBC_256_CML][0]=count;
c[D_SHA256][0]=count;
c[D_SHA512][0]=count;
+   c[D_WHIRLPOOL][0]=count;
 
for (i=1; iSIZE_NUM; i++)
{
@@ -1211,6 +1227,7 @@
c[D_RMD160][i]=c[D_RMD160][0]*4*lengths[0]/lengths[i];
c[D_SHA256][i]=c[D_SHA256][0]*4*lengths[0]/lengths[i];
c[D_SHA512][i]=c[D_SHA512][0]*4*lengths[0]/lengths[i];
+   c[D_WHIRLPOOL][i]=c[D_WHIRLPOOL][0]*4*lengths[0]/lengths[i];
}
for (i=1; iSIZE_NUM; i++)
{
@@ -1522,8 +1539,23 @@
}
}
 #endif
+#endif
 
+#ifndef OPENSSL_NO_WHIRLPOOL
+   if (doit[D_WHIRLPOOL])
+   {
+   for (j=0; jSIZE_NUM; j++)
+   {
+   
print_message(names[D_WHIRLPOOL],c[D_WHIRLPOOL][j],lengths[j]);
+   Time_F(START);
+   for (count=0,run=1; COND(c[D_WHIRLPOOL][j]); count++)
+   WHIRLPOOL(buf,lengths[j],whirlpool);
+   d=Time_F(STOP);
+   print_result(D_WHIRLPOOL,j,count,d);
+   }
+   }
 #endif
+
 #ifndef OPENSSL_NO_RIPEMD
if (doit[D_RMD160])
{


[openssl.org #1338] [PATCH] speed/benchmark support for whirlpool in -SNAP

2006-05-29 Thread Justin Guyett via RT

This patch adds whirlpool to openssl speed.

Incidently, why is the whirlpool include file named whrlpool.h?  There
are other openssl header files that have 8 char names.  Either wp.h or
whirlpool.h would be more in keeping with the other headers.

-- 
The six phases of a project:
I. Enthusiasm.  IV. Search for the Guilty.
II. Disillusionment.V. Punishment of the Innocent.
III. Panic.VI. Praise  Honor for the Nonparticipants.
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: Info about benchmark?

1999-06-24 Thread Anonymous

Did you had a look at apps/speed.c?

Yuriy Stul schrieb:
 
 Hi there!
 
 Can anyone tell me where I may get benchmark information about different cipher
 algorithms.
 
 Thanks in advance.
 
 Regards
 Yuriy Stul
 mailto:[EMAIL PROTECTED] http://www.tashilon.com
 
 __
 OpenSSL Project http://www.openssl.org
 Development Mailing List   [EMAIL PROTECTED]
 Automated List Manager   [EMAIL PROTECTED]

-- 
Holger Reif  Tel.: +49 361 74707-0
SmartRing GmbH   Fax.: +49 361 7470720
Europaplatz 5 [EMAIL PROTECTED]
D-99091 ErfurtWWW.SmartRing.de
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



Re: Benchmark

1999-06-04 Thread Erwann ABALEA

Just run 'openssl speed' and enjoy...

You can also give parameters to the 'openssl speed' command.

On Fri, 4 Jun 1999, Pierre De Boeck wrote:

 Where can I find a program that compute
 benchmark time for the ciphers, digests and
 public key alg of OpenSSL (I use the 0.9.3a version).

-- 
Erwann ABALEA
System and Development Engineer - Certplus SA
[EMAIL PROTECTED]
- RSA PGP Key ID: 0x2D0EABD5 -

__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



FW: Benchmark

1999-06-04 Thread Pierre De Boeck

Sorry for my question. The "speed" argument
for the openssl exe is all what I need.

-Original Message-
From: Pierre De Boeck [mailto:[EMAIL PROTECTED]] 
Sent: Friday, June 04, 1999 2:01 PM
To: Ssl-users; Ssl-dev
Subject: Benchmark


Hi all,

Where can I find a program that compute
benchmark time for the ciphers, digests and
public key alg of OpenSSL (I use the 0.9.3a version).

In other words, I would like to compute the kind of results that 
I can find in the times directory. 

Pierre De Boeck
Sr System Engineer
Mission Critical (Belgium)
Phone: +32 2 757 10 15  Fax: +32  2 759 276 0
email: [EMAIL PROTECTED]
  ///   
 (. .)   
-oOO--(_)--OOo--



BEGIN:VCARD
VERSION:2.1
N:De Boeck;Pierre;;;
FN:Pierre De Boeck
ORG:Mission Critical
TITLE:Sr System Engineer
TEL;WORK;VOICE:+32 (2) 757.10.15
TEL;HOME;VOICE:+32 2 7594496
TEL;WORK;FAX:+32 2 759 27 60
ADR;WORK:;;Avenue Claire 27;Waterloo;;1410;Belgium
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Avenue Claire 27=0D=0AWaterloo,  1410=0D=0ABelgium
ADR;HOME:;;Dekenijstraat 21 BUS;;6;;Belgium
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Dekenijstraat 21 BUS=0D=0A, 6 =0D=0ABelgium
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:19990421T075946Z
END:VCARD



Benchmark

1999-06-04 Thread Pierre De Boeck

Hi all,

Where can I find a program that compute
benchmark time for the ciphers, digests and
public key alg of OpenSSL (I use the 0.9.3a version).

In other words, I would like to compute the kind of results that 
I can find in the times directory. 

Pierre De Boeck
Sr System Engineer
Mission Critical (Belgium)
Phone: +32 2 757 10 15  Fax: +32  2 759 276 0
email: [EMAIL PROTECTED]
  ///   
 (. .)   
-oOO--(_)--OOo--



BEGIN:VCARD
VERSION:2.1
N:De Boeck;Pierre;;;
FN:Pierre De Boeck
ORG:Mission Critical
TITLE:Sr System Engineer
TEL;WORK;VOICE:+32 (2) 757.10.15
TEL;HOME;VOICE:+32 2 7594496
TEL;WORK;FAX:+32 2 759 27 60
ADR;WORK:;;Avenue Claire 27;Waterloo;;1410;Belgium
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Avenue Claire 27=0D=0AWaterloo,  1410=0D=0ABelgium
ADR;HOME:;;Dekenijstraat 21 BUS;;6;;Belgium
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Dekenijstraat 21 BUS=0D=0A, 6 =0D=0ABelgium
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:19990421T075946Z
END:VCARD