projects
/
tfcrypt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-g, -j: shortcuts for stream ciphers with random counter
[tfcrypt.git]
/
tfc_conf.c
diff --git
a/tfc_conf.c
b/tfc_conf.c
index da4523151b5a070be91d0d48300d9d2612f8040a..fe36a13eaf90d4f1740dc16979159f3595595cac 100644
(file)
--- a/
tfc_conf.c
+++ b/
tfc_conf.c
@@
-2,7
+2,7
@@
* tfcrypt -- high security Threefish encryption tool.
*
* tfcrypt is copyrighted:
* tfcrypt -- high security Threefish encryption tool.
*
* tfcrypt is copyrighted:
- * Copyright (C) 2012-201
8
Andrey Rys. All rights reserved.
+ * Copyright (C) 2012-201
9
Andrey Rys. All rights reserved.
*
* tfcrypt is licensed to you under the terms of std. MIT/X11 license:
*
*
* 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;
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, "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")) {
else xerror(NO, YES, YES, "[%s] ctr_mode=%s: invalid mode of operation", path, d);
}
else if (!strcmp(s, "tfc_salt")) {