/* This file contains the cipher data type and some useful #defines */ #ifndef _TYPES_INCLUDED #define SAVE_HEADER "CipherSave v. 1.3" #define SAVE_DELIMITER '*' #define CLENGTH 4096 #define MAXLINES 6 #define STRINGLENGTH 256 #include "digram.h" #ifndef FALSE # define FALSE 0 #endif #ifndef TRUE # define TRUE 1 #endif #define BLANK ' ' #define UNCHANGED 26 #define BAD_SUB 0 #define NEW_SUB 1 #define ALT_SUB 2 enum ciphertypes {COLUMNAR='a', NIHILIST, CADENUS, BACONIAN, QUAG, ARISTOCRAT, SWAGMAN, PHILLIPS, VIGENERE, VARIANT, PORTA, BEAUFORT, HOMOPHONIC, RAILFENCE, REDEFENCE, POLLUX, MORBIT, FMORSE, CHECKER, GRANDPRE, TRIDIGITAL, VIGSLIDE, VARSLIDE, BEASLIDE, KEYPHRASE, VIGAUTOKEY, BEAAUTOKEY='A', VARAUTOKEY}; /* Menu options defined here */ #define ALPHFIT 'a' #define CHANGEPERIOD 'c' #define DUMP 'd' #define GROUPSUB 'g' #define LOCATE 'l' #define MOVE 'm' #define QUIT 'q' #define ROTATE 'r' #define SAVE 'w' #define SUBSTITUTE 's' #define TYPECHANGE 't' #define UNDO 'u' #define _TYPES_INCLUDED #endif