home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0679.ZIP / CCE_0679.PD / DES301 / INSTALL < prev    next >
Text File  |  1993-08-20  |  2KB  |  54 lines

  1. Check the CC and CFLAGS lines in the makefile
  2.  
  3. If your C library does not support the times(3) function, change the
  4. #define TIMES to
  5. #undef TIMES in speed.c
  6. If it does, check the HZ value for the times(3) function.
  7. If your system does not define CLK_TCK it will be assumed to
  8. be 60.
  9.  
  10. If possible use gcc v 2.2.2
  11. Turn on the maximum optimising
  12.  
  13. type 'make'
  14.  
  15. run './destest' to check things are ok.
  16. run './rpw' to check the tty code for reading passwords works.
  17. run './speed' to see how fast those optimisations make the library run :-)
  18.  
  19. A make install will by default install
  20. libdes.a      in /usr/local/lib/libdes.a
  21. des           in /usr/local/bin/des
  22. des_crypt.man in /usr/local/man/man3/des_crypt.3
  23. des.man       in /usr/local/man/man1/des.1
  24. des.h         in /usr/include/des.h
  25.  
  26. des(1) should be compatible with sunOS's but I have been unable to
  27. test it.
  28.  
  29. These routines should compile on MSDOS, most 32bit and 64bit version
  30. of Unix (BSD and SYSV) and VMS, without modification.
  31. The only problems should be #include files that are in the wrong places.
  32.  
  33. These routines can be compiled under MSDOS.
  34. I have successfully encrypted files using des(1) under MSDOS and then
  35. decrypted the files on a SparcStation.
  36. I have been able to compile and test the routines with
  37. Microsoft C v 5.1 and Turbo C v 2.0.
  38. The code in this library is in no way optimised for the 16bit
  39. operation of MSDOS.  Microsoft C generates code that is 40% slower
  40. than Turbo C's code.  I believe this is due to problems it has with
  41. code generation with the 32bit shift operation in the IP and FP
  42. sections.  I have added some 16bit optimization in ecb_encrypt.c
  43. and this generated a %70 speedup under Turbo C.  Such are the
  44. limitations of DOS compilers :-(.
  45.  
  46. For Turbo C v 2.0, make sure to define MSDOS, in the relevant menu.
  47.  
  48. There is an alternative version of the D_ENCRYPT macro that can be
  49. enabled with the -DALT_ECB option in the makefile.  This alternative
  50. macro can make a +-%20 speed difference to the DES encryption speed,
  51. depending on the compiler/CPU combinations.
  52. It has its greatest effect on Sparc machines when using the sun compiler.
  53. If in doubt, try enable/disable it and running speed.
  54.