home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / sci / crypt / 6621 < prev    next >
Encoding:
Text File  |  1993-01-10  |  2.4 KB  |  52 lines

  1. Newsgroups: sci.crypt
  2. Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!psych!grunt!eay
  3. From: eay@psych.psy.uq.oz.au (Eric Young)
  4. Subject: Re: How fast is DES?
  5. Message-ID: <1993Jan11.005724.5271@psych.psy.uq.oz.au>
  6. Sender: news@psych.psy.uq.oz.au (The Editor)
  7. Organization: Psychology Department, University of Queensland
  8. References: <1ihdcmINNslg@fbi-news.Informatik.Uni-Dortmund.DE> <1993Jan8.063123.5194@qualcomm.com>
  9. Date: Mon, 11 Jan 1993 00:57:24 GMT
  10. Lines: 40
  11.  
  12. In article <1993Jan8.063123.5194@qualcomm.com>, karn@servo.qualcomm.com (Phil Karn) writes:
  13. |> In article <1ihdcmINNslg@fbi-news.Informatik.Uni-Dortmund.DE> muenx@heike.informatik.uni-dortmund.de (Holger Muenx) writes:
  14. |> >  Is it possible for a software solution to reach an encryption rate
  15. |> >of about 100kB/sec (read 100 * 1024 Byte not 100 * 1024 Bit per second)
  16. |> >on a typical PC (say, Intel 386DX 33MHz)?
  17. |> 
  18. |> Well, my DES code (ucsd.edu, /hamradio/packet/tcpip/crypto/des.tar.Z)
  19. |> when compiled and run on a 486DX-50 using GCC under 386BSD encrypts 1
  20. |> million 64-bit blocks (8 megabytes) in 90.5 seconds of CPU time.
  21. |> That's not quite the rate you want, and on a faster machine too.  Oh
  22. |> well.
  23.     ~88k/sec on 486DX-50
  24.  
  25. The DES library/application I had posted in comp.sources.misc a while
  26. back could do 67k/s on a 386/33 using a non gcc compiler (but still
  27. in 32bit mode - I did not do the testing).
  28. This package uses standard boring C with few evil tricks (it compiles under
  29. 16bit, 32bit and 64bit machines with no problems or endian dependencies).
  30. With 386 assembler it would probably be possible to beat 100k/s on a 33Mz
  31. machine.
  32.  
  33. In 16bit MS-DOS the library does 27k/sec (Turbo C v 2.0 :-).
  34. There was a DES encryption program posted
  35. to comp.binaries.ibm.pc that was twice as fast as my code (~50k/sec).
  36. DES can be fast if you have either a good C compiler or resort to
  37. assembler.
  38.  
  39. The most recent version of the library can be found in pub/DES/libdes.tar.92-10-13.Z on ftp.psy.uq.oz.au (130.102.32.1)
  40. The main difference between this version and the one in c.s.m is that
  41. it will compile on 64bit machines.
  42.  
  43. BTW a DEC Alpha 500 APX I played with does 830kbytes/s in cbc mode.
  44. From what I remember seeing in this newsgroup, DES hardware often does
  45. ~20mbit/sec.  The top end Alpha, with assembler should be >= 8mbit/sec.
  46.  
  47. Hardware giving only a 2.5 speedup?
  48. I get the feeling it should be possible to produce much faster DES
  49. chips.... :-)
  50.  
  51. eric
  52.