mark@mips.COM (Mark G. Johnson) (12/07/90)
In article <7685@hub.ucsb.edu> of sci.crypt, David G. Koontz posts a very nice C program that implements the Data Encryption Standard algorithm ("DES") for encryption / decryption of arbitrary files. The program can either encrypt/decrypt using Full DES, or it can bypass the cryptographically-insignificant IP and IP-1 steps, thereby running a lot faster. (IP = Initial Permutation, IP-1 = Inverse Initial Permutation). David supplies a bit of benchmark data: > I measured 33+ kbytes/sec on my IRIS 4D-25/G for Full DES, > and 55+ kbytes/sec for DES without IP and IP-1. It seemed like a fun program to explore, so I measured its performance on several other hardware platforms that happened to be reachable from here. I really wish I had an Acorn machine to measure, also an Olivetti i860 workstation and a NEC SX-3, but I don't. Sorry. A file containing one million bytes ("million") was encrypted as the test case, using the hexadecimal key 0xabcd12345678abcd. The command lines were /bin/time ./des -e -K abcd12345678abcd < million > /dev/null [FULL DES] /bin/time ./des -e -n -K abcd12345678abcd < million > /dev/null [NO IP] Results: MACHINE FULL DES DES WITHOUT IP and IP-1 ========================================================================= MIPS RC6280 82,600 bytes/sec 137,000 bytes/sec MIPS RS3230 Magnum 37,300 bytes/sec 62,500 bytes/sec MIPS M/2000 37,000 bytes/sec 62,100 bytes/sec Sun SPARCstation 1+ 30,800 bytes/sec 49,800 bytes/sec DEC DECstation 3100 24,600 bytes/sec 43,700 bytes/sec Sun SPARCstation 1 24,000 bytes/sec 38,000 bytes/sec MIPS RS2030 23,400 bytes/sec 39,000 bytes/sec Raw data (output of /bin/time) when encrypting 1,000,000 bytes FULL DES DES WITHOUT IP & IP-1 MACHINE REAL USER SYS REAL USER SYS ====================================================================== MIPS RC6280 12.2 12.1 0.0 7.4 7.3 0.0 MIPS RS3230 Magnum 27.6 26.8 0.1 16.4 16.0 0.0 MIPS M/2000 27.1 27.0 0.0 16.2 16.1 0.0 Sun SPARCstation 1+ 32.8 32.5 0.2 20.4 20.1 0.2 DEC DECstation 3100 41.0 40.6 0.3 23.2 22.9 0.2 Sun SPARCstation 1 42.1 41.7 0.2 26.7 26.3 0.2 MIPS RS2030 45.9 42.7 0.3 26.2 25.6 0.2 -- -- Mark Johnson MIPS Computer Systems, 930 E. Arques M/S 2-02, Sunnyvale, CA 94086 (408) 524-8308 mark@mips.com {or ...!decwrl!mips!mark}
gkn@ucsd.Edu (Gerard K. Newman) (12/07/90)
In article <43856@mips.mips.COM> mark@mips.COM (Mark G. Johnson) writes: > >It seemed like a fun program to explore, so I measured its performance >on several other hardware platforms that happened to be reachable >from here. I really wish I had an Acorn machine to measure, also >an Olivetti i860 workstation and a NEC SX-3, but I don't. Sorry. Would you settle for a CRAY Y-MP8/864? >A file containing one million bytes ("million") was encrypted as >the test case, using the hexadecimal key 0xabcd12345678abcd. >The command lines were > > /bin/time ./des -e -K abcd12345678abcd < million > /dev/null [FULL DES] > /bin/time ./des -e -n -K abcd12345678abcd < million > /dev/null [NO IP] > >Results: Same setup, using the UNICOS "scc" compiler with -h inline,aggress,align: MACHINE FULL DES DES WITHOUT IP and IP-1 ========================================================================= CRAY Y-MP8/864 49,100 bytes/sec 84,300 bytes/sec Raw data (output of /bin/time) when encrypting 1,000,000 bytes FULL DES DES WITHOUT IP & IP-1 MACHINE REAL USER SYS REAL USER SYS ====================================================================== CRAY Y-MP8/864 23.96442 20.33712 .17256 12.08515 11.85184 .22921 -- gkn Gerard K. Newman gkn@sds.sdsc.edu 619.534.5076 San Diego Supercomputer Center gkn@sdsc.bitnet 619.534.5152 FAX PO Box 85608 sdsc::gkn (27.1/span) San Diego, CA 92186-9784 ucsd!gkn
renglish@cello.HPL.HP.COM (Bob English) (12/08/90)
In article <43856@mips.mips.COM> mark@mips.COM (Mark G. Johnson) writes: >>It seemed like a fun program to explore, so I measured its performance >>on several other hardware platforms that happened to be reachable >>from here. I really wish I had an Acorn machine to measure, also >>an Olivetti i860 workstation and a NEC SX-3, but I don't. Sorry. >> /bin/time ./des -e -K abcd12345678abcd < million > /dev/null [FULL DES] >> /bin/time ./des -e -n -K abcd12345678abcd < million > /dev/null [NO IP] MACHINE FULL DES DES WITHOUT IP and IP-1 ========================================================================= HP 9000/825 17,000 bytes/sec 29,900 bytes/sec HP 9000/845 38,000 bytes/sec 63,700 bytes/sec HP 9000/870 73,500 bytes/sec 126,600 bytes/sec FULL DES DES WITHOUT IP & IP-1 MACHINE REAL USER SYS REAL USER SYS ====================================================================== HP 9000/825 1:07.2 58.7 3.0 37.4 33.4 1.6 HP 9000/845 26.5 26.3 0.1 15.9 15.7 0.1 HP 9000/870 39.7 13.6 0.1 12.2 7.9 0.1 --bob-- renglish@hplabs "I would never speak for a company whose door handles weren't cool."