version 1.12, 2015/08/22 16:36:05 |
version 1.13, 2015/09/11 14:30:23 |
|
|
int asn1_flag; |
int asn1_flag; |
int check; |
int check; |
char *curve_name; |
char *curve_name; |
char *engine; |
|
point_conversion_form_t form; |
point_conversion_form_t form; |
int genkey; |
int genkey; |
char *infile; |
char *infile; |
|
|
.type = OPTION_ARG_FUNC, |
.type = OPTION_ARG_FUNC, |
.opt.argfunc = ecparam_opt_form, |
.opt.argfunc = ecparam_opt_form, |
}, |
}, |
#ifndef OPENSSL_NO_ENGINE |
|
{ |
{ |
.name = "engine", |
|
.argname = "id", |
|
.desc = "Use the engine specified by the given identifier", |
|
.type = OPTION_ARG, |
|
.opt.arg = &ecparam_config.engine, |
|
}, |
|
#endif |
|
{ |
|
.name = "genkey", |
.name = "genkey", |
.desc = "Generate an EC private key using the specified " |
.desc = "Generate an EC private key using the specified " |
"parameters", |
"parameters", |
|
|
ecparam_usage(void) |
ecparam_usage(void) |
{ |
{ |
fprintf(stderr, "usage: ecparam [-C] [-check] [-conv_form arg] " |
fprintf(stderr, "usage: ecparam [-C] [-check] [-conv_form arg] " |
"[-engine id] [-genkey]\n" |
" [-genkey]\n" |
" [-in file] [-inform DER | PEM] [-list_curves] [-name arg]\n" |
" [-in file] [-inform DER | PEM] [-list_curves] [-name arg]\n" |
" [-no_seed] [-noout] [-out file] [-outform DER | PEM]\n" |
" [-no_seed] [-noout] [-out file] [-outform DER | PEM]\n" |
" [-param_enc arg] [-text]\n\n"); |
" [-param_enc arg] [-text]\n\n"); |
|
|
goto end; |
goto end; |
} |
} |
} |
} |
|
|
#ifndef OPENSSL_NO_ENGINE |
|
setup_engine(bio_err, ecparam_config.engine, 0); |
|
#endif |
|
|
|
if (ecparam_config.list_curves) { |
if (ecparam_config.list_curves) { |
EC_builtin_curve *curves = NULL; |
EC_builtin_curve *curves = NULL; |