X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfc_error.c;h=c4e51f169669b2684c480207a8412b07707bddd6;hb=10d07f6813a5909bb9ae957bc7424b3ad3099b93;hp=6e2dabf30f9a18cc99a6e9cd4ff37abe5b732cd3;hpb=8b7f1839b1981554979af1aa2e5e8b58ad63fe77;p=tfcrypt.git diff --git a/tfc_error.c b/tfc_error.c index 6e2dabf..c4e51f1 100644 --- a/tfc_error.c +++ b/tfc_error.c @@ -69,6 +69,7 @@ void xexit(int status) memset(ctr, 0, sizeof(ctr)); memset(mackey, 0, sizeof(mackey)); memset(xtskey, 0, sizeof(xtskey)); + memset(tweak, 0, sizeof(tweak)); memset(&sk, 0, sizeof(struct skein)); memset(&tfe, 0, sizeof(struct tfe_stream)); @@ -151,7 +152,7 @@ void usage(void) tfc_say("convert encrypted data into ASCII format to ease transmission."); tfc_say("\n"); tfc_say(" -e, -d: encrypt, decrypt (it maybe required)."); - tfc_say(" -L : load tfcrypt defsults from file."); + tfc_say(" -L : load tfcrypt defaults from file."); tfc_say(" defaults is text file which defines salt, nr_turns and default mode."); tfc_say(" -s : load tfcrypt salt from file."); tfc_say(" -s disable: disable key salting at all."); @@ -160,8 +161,7 @@ void usage(void) tfc_say(" -z: ask for key in plain C string form through password asker."); tfc_say(" -x: ask for key in hex string form through password asker."); tfc_say(" -K : generate key from keyfile or password and write it to file."); - tfc_say(" -T: enable tfcrypt1 old mode (useful only for old encryptions)."); - tfc_say(" -t : use tweak from file (useful only for old encryptions)."); + tfc_say(" -t : use (raw) tweak from file."); tfc_say(" -w: overwrite source file. If not file, ignored."); tfc_say(" -n TURNS: number of turns to perform in Skein function."); tfc_say(" Default is always defined when building tfcrypt."); @@ -171,6 +171,7 @@ void usage(void) tfc_say(" show: do default action, then dump CTR value to stderr,"); tfc_say(" head: when decrypting, read CTR from beginning of stream,"); tfc_say(" rand: generate random CTR and write it to beginning of stream,"); + tfc_say(" zero: assume zero CTR is used, do not read from and write it to stream,"); tfc_say(" : read CTR from given file (both when encrypting/decrypting)."); tfc_say(" default is to derive CTR from user provided password or keyfile with"); tfc_say(" a single Skein function turn over derived, %u byte raw key", TFC_U(TF_KEY_SIZE)); @@ -238,6 +239,7 @@ void usage(void) tfc_say(" when the whole status line width is smaller than tty width."); tfc_say(" statless: emit less information in status line (only processed data)."); tfc_say(" norepeat: do not ask for any possible password confirmations."); + tfc_say(" showsecrets: show passwords in plaintext instead of masking them."); tfc_say(" prompt=str: set main password prompts to this string."); tfc_say(" macprompt=str: set MAC password prompts to this string."); tfc_say(" shorthex: with -H, do not print printable characters, dump only hex string."); @@ -254,9 +256,11 @@ 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(" 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(" fullkey: occupy tweak space by key space, extending key size by 256 bits."); tfc_say(" -P: plain IO mode: disable encryption/decryption code at all."); tfc_say("\n"); tfc_say("Default is to ask for password, then encrypt stdin into stdout.");