X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfc_conf.c;h=c583b860fc8117160fd8071dc697c2af5cae5657;hb=ee5e048cace46d40dfb9fe450eb00f977c78ab12;hp=bd2b112ecc045b8ff7b9615aae42c13d17e68bdc;hpb=8b7f1839b1981554979af1aa2e5e8b58ad63fe77;p=tfcrypt.git diff --git a/tfc_conf.c b/tfc_conf.c index bd2b112..c583b86 100644 --- a/tfc_conf.c +++ b/tfc_conf.c @@ -66,7 +66,7 @@ _spc2: t = strchr(d, ' '); *t = 0; d = t+1; goto _spc2; _nspc: if (!strcmp(s, "nr_turns")) { - nr_turns = sksum_turns = strtoul(d, &stoi, 10); + nr_turns = strtoul(d, &stoi, 10); if (!str_empty(stoi)) xerror(NO, YES, YES, "[%s] nr_turns=%s: invalid number of turns", path, d); } else if (!strcmp(s, "ctr_mode")) { @@ -94,6 +94,10 @@ _nspc: || macbits > TF_MAX_BITS || macbits % 8) xerror(NO, YES, YES, "[%s] macbits=%s: invalid MAC bits setting", path, d); } + else if (!strcmp(s, "do_full_key")) { + if (!strcasecmp(d, "yes")) do_full_key = YES; + else if (!strcasecmp(d, "no")) do_full_key = NO; + } else xerror(NO, YES, YES, "[%s] %s: unknown keyword", path, s); }