📄 install
字号:
Check the CC and CFLAGS lines in the makefileIf your C library does not support the times(3) function, change the#define TIMES to#undef TIMES in speed.cIf it does, check the HZ value for the times(3) function.If your system does not define CLK_TCK it will be assumed tobe 60.If possible use gcc v 2.2.2Turn on the maximum optimisingtype 'make'run './destest' to check things are ok.run './rpw' to check the tty code for reading passwords works.run './speed' to see how fast those optimisations make the library run :-)A make install will by default installlibdes.a in /usr/local/lib/libdes.ades in /usr/local/bin/desdes_crypt.man in /usr/local/man/man3/des_crypt.3des.man in /usr/local/man/man1/des.1des.h in /usr/include/des.hdes(1) should be compatible with sunOS's but I have been unable totest it.These routines should compile on MSDOS, most 32bit and 64bit versionof Unix (BSD and SYSV) and VMS, without modification.The only problems should be #include files that are in the wrong places.These routines can be compiled under MSDOS.I have successfully encrypted files using des(1) under MSDOS and thendecrypted the files on a SparcStation.I have been able to compile and test the routines withMicrosoft C v 5.1 and Turbo C v 2.0.The code in this library is in no way optimised for the 16bitoperation of MSDOS. Microsoft C generates code that is 40% slowerthan Turbo C's code. I believe this is due to problems it has withcode generation with the 32bit shift operation in the IP and FPsections. I have added some 16bit optimization in ecb_encrypt.cand this generated a %70 speedup under Turbo C. Such are thelimitations of DOS compilers :-(.For Turbo C v 2.0, make sure to define MSDOS, in the relevant menu.There is an alternative version of the D_ENCRYPT macro that can beenabled with the -DALT_ECB option in the makefile. This alternativemacro can make a +-%20 speed difference to the DES encryption speed,depending on the compiler/CPU combinations.It has its greatest effect on Sparc machines when using the sun compiler.If in doubt, try enable/disable it and running speed.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -