fix counter adjustment on "-c zero -O iseek=".
[tfcrypt.git] / tfc_conf.c
index bd2b112ecc045b8ff7b9615aae42c13d17e68bdc..c583b860fc8117160fd8071dc697c2af5cae5657 100644 (file)
@@ -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);
        }