51 broke -E logic completely, rewise it
[tfcrypt.git] / tfc_conf.c
index da4523151b5a070be91d0d48300d9d2612f8040a..fe36a13eaf90d4f1740dc16979159f3595595cac 100644 (file)
@@ -2,7 +2,7 @@
  * tfcrypt -- high security Threefish encryption tool.
  *
  * tfcrypt is copyrighted:
- * Copyright (C) 2012-2018 Andrey Rys. All rights reserved.
+ * Copyright (C) 2012-2019 Andrey Rys. All rights reserved.
  *
  * tfcrypt is licensed to you under the terms of std. MIT/X11 license:
  *
@@ -76,12 +76,12 @@ _nspc:
                                ctr_mode = TFC_MODE_STREAM;
                        else if (!strcasecmp(d, "cbc"))
                                ctr_mode = TFC_MODE_CBC;
+                       else if (!strcasecmp(d, "pcbc"))
+                               ctr_mode = TFC_MODE_PCBC;
                        else if (!strcasecmp(d, "ecb"))
                                ctr_mode = TFC_MODE_ECB;
                        else if (!strcasecmp(d, "xts"))
                                ctr_mode = TFC_MODE_XTS;
-                       else if (!strcasecmp(d, "ocb"))
-                               ctr_mode = TFC_MODE_OCB;
                        else xerror(NO, YES, YES, "[%s] ctr_mode=%s: invalid mode of operation", path, d);
                }
                else if (!strcmp(s, "tfc_salt")) {