INSTALL 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Check the CC and CFLAGS lines in the makefile
  2. If your C library does not support the times(3) function, change the
  3. #define TIMES to
  4. #undef TIMES in speed.c
  5. If it does, check the HZ value for the times(3) function.
  6. If your system does not define CLK_TCK it will be assumed to
  7. be 100.0.
  8. If possible use gcc v 2.7.?
  9. Turn on the maximum optimising (normally '-O3 -fomit-frame-pointer' for gcc)
  10. In recent times, some system compilers give better performace.
  11. type 'make'
  12. run './destest' to check things are ok.
  13. run './rpw' to check the tty code for reading passwords works.
  14. run './speed' to see how fast those optimisations make the library run :-)
  15. run './des_opts' to determin the best compile time options.
  16. The output from des_opts should be put in the makefile options and des_enc.c
  17. should be rebuilt. For 64 bit computers, do not use the DES_PTR option.
  18. For the DEC Alpha, edit des.h and change DES_LONG to 'unsigned int'
  19. and then you can use the 'DES_PTR' option.
  20. The file options.txt has the options listed for best speed on quite a
  21. few systems. Look and the options (UNROLL, PTR, RISC2 etc) and then
  22. turn on the relevant option in the Makefile.
  23. There are some special Makefile targets that make life easier.
  24. make cc - standard cc build
  25. make gcc - standard gcc build
  26. make x86-elf - x86 assembler (elf), linux-elf.
  27. make x86-out - x86 assembler (a.out), FreeBSD
  28. make x86-solaris- x86 assembler
  29. make x86-bsdi - x86 assembler (a.out with primative assembler).
  30. If at all possible use the assembler (for Windows NT/95, use
  31. asm/win32.obj to link with). The x86 assembler is very very fast.
  32. A make install will by default install
  33. libdes.a in /usr/local/lib/libdes.a
  34. des in /usr/local/bin/des
  35. des_crypt.man in /usr/local/man/man3/des_crypt.3
  36. des.man in /usr/local/man/man1/des.1
  37. des.h in /usr/include/des.h
  38. des(1) should be compatible with sunOS's but I have been unable to
  39. test it.
  40. These routines should compile on MSDOS, most 32bit and 64bit version
  41. of Unix (BSD and SYSV) and VMS, without modification.
  42. The only problems should be #include files that are in the wrong places.
  43. These routines can be compiled under MSDOS.
  44. I have successfully encrypted files using des(1) under MSDOS and then
  45. decrypted the files on a SparcStation.
  46. I have been able to compile and test the routines with
  47. Microsoft C v 5.1 and Turbo C v 2.0.
  48. The code in this library is in no way optimised for the 16bit
  49. operation of MSDOS.
  50. When building for glibc, ignore all of the above and just unpack into
  51. glibc-1.??/des and then gmake as per normal.
  52. As a final note on performace. Certain CPUs like sparcs and Alpha often give
  53. a %10 speed difference depending on the link order. It is rather anoying
  54. when one program reports 'x' DES encrypts a second and another reports
  55. 'x*0.9' the speed.