version 1.15, 2019/01/18 03:45:47 |
version 1.16, 2019/01/18 22:47:34 |
|
|
.opt.arg = &enc_config.inf, |
.opt.arg = &enc_config.inf, |
}, |
}, |
{ |
{ |
|
.name = "iter", |
|
.argname = "iterations", |
|
.desc = "Specify iteration count and force use of PBKDF2", |
|
.type = OPTION_VALUE, |
|
.opt.value = &enc_config.iter, |
|
}, |
|
{ |
.name = "iv", |
.name = "iv", |
.argname = "IV", |
.argname = "IV", |
.desc = "IV to use, specified as a hexadecimal string", |
.desc = "IV to use, specified as a hexadecimal string", |
|
|
.opt.arg = &enc_config.passarg, |
.opt.arg = &enc_config.passarg, |
}, |
}, |
{ |
{ |
|
.name = "pbkdf2", |
|
.desc = "Use the pbkdf2 key derivation function", |
|
.type = OPTION_FLAG, |
|
.opt.flag = &enc_config.pbkdf2, |
|
}, |
|
{ |
.name = "S", |
.name = "S", |
.argname = "salt", |
.argname = "salt", |
.desc = "Salt to use, specified as a hexadecimal string", |
.desc = "Salt to use, specified as a hexadecimal string", |
|
|
.type = OPTION_FLAG, |
.type = OPTION_FLAG, |
.opt.flag = &enc_config.verbose, |
.opt.flag = &enc_config.verbose, |
}, |
}, |
{ |
|
.name = "iter", |
|
.desc = "Specify iteration count and force use of PBKDF2", |
|
.type = OPTION_VALUE, |
|
.opt.value = &enc_config.iter, |
|
}, |
|
{ |
|
.name = "pbkdf2", |
|
.desc = "Use the pbkdf2 key derivation function", |
|
.type = OPTION_FLAG, |
|
.opt.flag = &enc_config.pbkdf2, |
|
}, |
|
#ifdef ZLIB |
#ifdef ZLIB |
{ |
{ |
.name = "z", |
.name = "z", |
|
|
{ |
{ |
fprintf(stderr, "usage: enc -ciphername [-AadePp] [-base64] " |
fprintf(stderr, "usage: enc -ciphername [-AadePp] [-base64] " |
"[-bufsize number] [-debug]\n" |
"[-bufsize number] [-debug]\n" |
" [-in file] [-iv IV] [-K key] [-k password]\n" |
" [-in file] [-iter iterations] [-iv IV] [-K key] " |
|
"[-k password]\n" |
" [-kfile file] [-md digest] [-none] [-nopad] [-nosalt]\n" |
" [-kfile file] [-md digest] [-none] [-nopad] [-nosalt]\n" |
" [-out file] [-pass arg] [-S salt] [-salt]\n\n"); |
" [-out file] [-pass source] [-pbkdf2] [-S salt] [-salt]\n\n"); |
options_usage(enc_options); |
options_usage(enc_options); |
fprintf(stderr, "\n"); |
fprintf(stderr, "\n"); |
|
|