a single pass crypt and verify, thus, it is faster than other modes when both crypt and verify.
Additionally, this version provides a way to virtually "extend" key size to 1280 bits,
-by enabling "full_key" option or changing "do_full_key" default setting in tfcrypt_defs.h.
+by enabling "fullkey" option or changing "do_full_key" default setting in tfcrypt_defs.h.
In this mode, tweak is ignored, and filled with extended key material.
THREEFISH NOTES
tfc_say(" -z: ask for key in plain C string form through password asker.");
tfc_say(" -x: ask for key in hex string form through password asker.");
tfc_say(" -K <file>: generate key from keyfile or password and write it to file.");
- tfc_say(" -T: enable tfcrypt1 old mode (useful only for old encryptions).");
- tfc_say(" -t <file>: use tweak from file (useful only for old encryptions).");
+ tfc_say(" -t <file>: use (raw) tweak from file.");
tfc_say(" -w: overwrite source file. If not file, ignored.");
tfc_say(" -n TURNS: number of turns to perform in Skein function.");
tfc_say(" Default is always defined when building tfcrypt.");
tfc_say(" xkey=val: take only val bytes from user keyfile.");
tfc_say(" okey=val: seek the key before reading it (usually a device).");
tfc_say(" xctr=val: specify size in bytes of initial counter prepended or read.");
+ tfc_say(" fullkey: occupy tweak space by key space, extending key size by 256 bits.");
tfc_say(" -P: plain IO mode: disable encryption/decryption code at all.");
tfc_say("\n");
tfc_say("Default is to ask for password, then encrypt stdin into stdout.");
memset(s, 0, n);
opterr = 0;
- while ((c = getopt(argc, argv, "L:s:aU:C:r:K:t:TPkzxc:l:qedn:vV:pwE:O:S:AmM:R:Z:WHD:")) != -1) {
+ while ((c = getopt(argc, argv, "L:s:aU:C:r:K:t:Pkzxc:l:qedn:vV:pwE:O:S:AmM:R:Z:WHD:")) != -1) {
switch (c) {
case 'L':
read_defaults(optarg, NO);
tweakf = optarg;
do_full_key = NO;
break;
- case 'T':
- tfc_saltsz = 0;
- do_full_key = NO;
- break;
case 'l':
if (maxlen != NOFSIZE) break;
mac_pw_prompt = s+10;
else if (!strcmp(s, "shorthex"))
do_full_hexdump = NO;
+ else if (!strcmp(s, "fullkey"))
+ do_full_key = YES;
else if (!strncmp(s, "iobs", 4) && *(s+4) == '=') {
s += 5;
blksize = (size_t)tfc_humanfsize(s, &stoi);