Re: [PATCH 3/3] sparc: Add support for DES opcodes.

2013-03-31 Thread Andy Polyakov

On a SPARC T4-2, first with crypto opcodes disabled:

type 16 bytes 64 bytes256 bytes   1024 bytes   8192 bytes
des cbc  54342.76k56258.03k57101.95k57558.36k57636.18k
des ede3 19990.29k20679.25k20837.29k20877.31k20889.60k

and with them turned on:

type 16 bytes 64 bytes256 bytes   1024 bytes   8192 bytes
des cbc 341439.34k   443975.51k   468697.94k   482163.84k   491296.09k
des ede3130192.06k   173126.76k   185801.81k   192443.16k   193732.61k


As DES is far past its prime time, I've chosen to implement only CBC 
mode, but do it proper:


type   16 bytes 64 bytes256 bytes   1024 bytes   8192 bytes
des-cbc   467068.82k   616431.15k   628423.85k   673507.33k   687879.51k
des-ede3- 209335.71k   234871.17k   236331.43k   242598.23k   244514.82k

Rationale behind limiting to CBC is that it's the only mode used by 
major OpenSSL applications, Apache and OpenSSH.


http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=c5d975a74313268a36b6a6103cd37221724137c2
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


Re: [PATCH 3/3] sparc: Add support for DES opcodes.

2013-03-31 Thread David Miller
From: Andy Polyakov ap...@openssl.org
Date: Sun, 31 Mar 2013 14:42:21 +0200

 On a SPARC T4-2, first with crypto opcodes disabled:
 type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
 des cbc 54342.76k 56258.03k 57101.95k 57558.36k 57636.18k
 des ede3 19990.29k 20679.25k 20837.29k 20877.31k 20889.60k
 and with them turned on:
 type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
 des cbc 341439.34k 443975.51k 468697.94k 482163.84k 491296.09k
 des ede3 130192.06k 173126.76k 185801.81k 192443.16k 193732.61k
 
 As DES is far past its prime time, I've chosen to implement only CBC
 mode, but do it proper:
 
 type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
 des-cbc 467068.82k 616431.15k 628423.85k 673507.33k 687879.51k
 des-ede3- 209335.71k 234871.17k 236331.43k 242598.23k 244514.82k
 
 Rationale behind limiting to CBC is that it's the only mode used by
 major OpenSSL applications, Apache and OpenSSH.
 
 http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=c5d975a74313268a36b6a6103cd37221724137c2

Thanks for doing this work Andy.

If either of us gets really bored we can add the other modes :-)

FWIW, I've been honing my T4 loop assembler skills with some gmplib
hacking, and I've come up with some ideas we can use to try and speed
up the main openssl loops a bit.  Primarily it's dealing with the
minimization of bookkeeping instructions in inner loops, such that
the only bookkeeping that occurs is the loop iterator adjustment
and the branch.
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org