readme

来自「破解des算法的程序」· 代码 · 共 32 行

TXT
32
字号
testvec.c (compile with sim.c and des.c):  Generates and runs testvectors.  This program will both run existing input vectors, or generate new ones (either randomly or from a script).  When compiledunder DOS, it can either produce Unix (LF only) or DOS (CR/LF)output files (select with the RAW parameter)To run the ecb.scr sample script and:  Store test vectors which go to the chip in TOCHIP.EXT  Store test vectors received from the chip in FROMCHIP.EXT,  Produce Unix-style output (LF only)  Store debugging output in debug.out.    rm *.EXT    testvec TOCHIP.EXT FROMCHIP.EXT RAW < ecb.scr > debug.out                                 If TOCHIP.EXE already exists when the program is run, it willread it (instead of expecting a script from stdin).Use the script random.scr to produce a random test vector, e.g.:    testvec TOCHIP.EXT FROMCHIP.EXT RAW < random.scr > debug.out----------------------------------------------------------------------------ref.c (compile with des.c misc.c):  Runs test scripts (.scr files)and prints any keys that match.  This is basically a stripped-downtest vector generator for debugging purposes.  (It doesn't make anyattempt to match timings.)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?