📄 readme
字号:
Optimized ANSI C Diskette
Files on this diskette:
File Name Description
========================================================================
README This file
PLATFORM.H Platform-specific definitions (e.g., endianness, rotates)
TABLE.H Macros and tables for Twofish internal structures
AES.H AES header file, function prototypes
DEBUG.H Debug i/o macros and functions
TWOFISH2.C Optimized ANSI C source code
TST2FISH.C Test code, links with TWOFISH2.C to generate KAT/MCT
COMPILE.BAT Batch file used to compile TST2FISH.EXE. See this file for
the set of compiler options used to optimize performance.
Using this batch file should produce performance numbers
very similar to those in listed in our paper.
Run with -DDEBUG option to enable intermediate value file,
(but performance will be affected).
TST2FISH.EXE Executable 32-bit console app of TST2FISH.C and TWOFISH2.C
linked together.
========================================================================
Notes:
The program TST2FISH.EXE will generate the full set of KAT/MCT/Tables
files in the current directory, if run with the -M switch:
TST2FISH -M
When run without command-line parameters, it will generate a partial MCT set,
since the full set takes a long time. To generate the intermediate value
test file, you must compile with the -DDEBUG option.
When run with a question mark character ('?') as a parameter, TST2FISH.EXE
will display a help screen of command line options.
It is recommended that the version of TST2FISH.EXE compiled with the
optimized ANSI C code be used to generate the full MCT file set, since
the reference version is considerably slower.
To try the various key scheduling tradeoffs, compile with the following
options:
-DFULL_KEY -- default, full key schedule, fastest encryption
-DPART_KEY -- partial keying (four 8-bit S-boxes)
-DMIN_KEY -- minimal keying (four partial 8-bit S-boxes)
-DZERO_KEY -- zero keying (no S-box precomputation)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -