README 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. libdes, Version 4.01 10-Jan-97
  2. Copyright (c) 1997, Eric Young
  3. All rights reserved.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms specified in COPYRIGHT.
  6. --
  7. The primary ftp site for this library is
  8. ftp://ftp.psy.uq.oz.au/pub/Crypto/DES/libdes-x.xx.tar.gz
  9. libdes is now also shipped with SSLeay. Primary ftp site of
  10. ftp://ftp.psy.uq.oz.au/pub/Crypto/SSL/SSLeay-x.x.x.tar.gz
  11. The best way to build this library is to build it as part of SSLeay.
  12. This kit builds a DES encryption library and a DES encryption program.
  13. It supports ecb, cbc, ofb, cfb, triple ecb, triple cbc, triple ofb,
  14. triple cfb, desx, and MIT's pcbc encryption modes and also has a fast
  15. implementation of crypt(3).
  16. It contains support routines to read keys from a terminal,
  17. generate a random key, generate a key from an arbitrary length string,
  18. read/write encrypted data from/to a file descriptor.
  19. The implementation was written so as to conform with the manual entry
  20. for the des_crypt(3) library routines from MIT's project Athena.
  21. destest should be run after compilation to test the des routines.
  22. rpw should be run after compilation to test the read password routines.
  23. The des program is a replacement for the sun des command. I believe it
  24. conforms to the sun version.
  25. The Imakefile is setup for use in the kerberos distribution.
  26. These routines are best compiled with gcc or any other good
  27. optimising compiler.
  28. Just turn you optimiser up to the highest settings and run destest
  29. after the build to make sure everything works.
  30. I believe these routines are close to the fastest and most portable DES
  31. routines that use small lookup tables (4.5k) that are publicly available.
  32. The fcrypt routine is faster than ufc's fcrypt (when compiling with
  33. gcc2 -O2) on the sparc 2 (1410 vs 1270) but is not so good on other machines
  34. (on a sun3/260 168 vs 336). It is a function of CPU on chip cache size.
  35. [ 10-Jan-97 and a function of an incorrect speed testing program in
  36. ufc which gave much better test figures that reality ].
  37. It is worth noting that on sparc and Alpha CPUs, performance of the DES
  38. library can vary by upto %10 due to the positioning of files after application
  39. linkage.
  40. Eric Young (eay@cryptsoft.com)