projects
/
tfcrypt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Display hash of current defaults.
[tfcrypt.git]
/
tfc_error.c
diff --git
a/tfc_error.c
b/tfc_error.c
index 11c22bbb12ec519812d1d5e0403249ae034ada59..5729de0f42ff26ad18db6e37da6f81c4d4c7e934 100644
(file)
--- a/
tfc_error.c
+++ b/
tfc_error.c
@@
-91,7
+91,11
@@
void usage(void)
tfc_yesno is_embedded_prog = NO;
if (optopt == 'V') {
tfc_yesno is_embedded_prog = NO;
if (optopt == 'V') {
+ char shash[64];
tfc_say("tfcrypt toolkit, version %s.", _TFCRYPT_VERSION);
tfc_say("tfcrypt toolkit, version %s.", _TFCRYPT_VERSION);
+ hash_defaults(shash, sizeof(shash));
+ tfc_say("Defaults hash: %s", shash);
+ memset(shash, 0, sizeof(shash));
xexit(0);
}
xexit(0);
}
@@
-256,6
+260,7
@@
void usage(void)
tfc_say(" Internally this number is translated into number of %u byte blocks.", TFC_U(TF_BLOCK_SIZE));
tfc_say(" oseek=val: seek destination file/device by these val bytes.");
tfc_say(" count=val: process only these val bytes, both input and output.");
tfc_say(" Internally this number is translated into number of %u byte blocks.", TFC_U(TF_BLOCK_SIZE));
tfc_say(" oseek=val: seek destination file/device by these val bytes.");
tfc_say(" count=val: process only these val bytes, both input and output.");
+ tfc_say(" ftrunc=val: truncate output file to these val bytes before closing it.");
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(" 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.");