projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sha/asm/keccak1600-avx2.pl: optimized remodelled version.
[openssl.git]
/
apps
/
ec.c
diff --git
a/apps/ec.c
b/apps/ec.c
index eb343d16a0ebe2f333198fc2b132364a1efd075b..859623e2a364e95d4d69d6ae6c40b13ef867df19 100644
(file)
--- a/
apps/ec.c
+++ b/
apps/ec.c
@@
-185,7
+185,7
@@
int ec_main(int argc, char **argv)
} else if (informat == FORMAT_ENGINE) {
EVP_PKEY *pkey;
if (pubin)
} else if (informat == FORMAT_ENGINE) {
EVP_PKEY *pkey;
if (pubin)
- pkey = load_pubkey(infile, informat
, 1, passin, e, "Public Key");
+ pkey = load_pubkey(infile, informat, 1, passin, e, "Public Key");
else
pkey = load_key(infile, informat, 1, passin, e, "Private Key");
if (pkey != NULL) {
else
pkey = load_key(infile, informat, 1, passin, e, "Private Key");
if (pkey != NULL) {
@@
-244,20
+244,20
@@
int ec_main(int argc, char **argv)
BIO_printf(bio_err, "writing EC key\n");
if (outformat == FORMAT_ASN1) {
BIO_printf(bio_err, "writing EC key\n");
if (outformat == FORMAT_ASN1) {
- if (param_out)
+ if (param_out)
{
i = i2d_ECPKParameters_bio(out, group);
i = i2d_ECPKParameters_bio(out, group);
- else if (pubin || pubout)
+ } else if (pubin || pubout) {
i = i2d_EC_PUBKEY_bio(out, eckey);
i = i2d_EC_PUBKEY_bio(out, eckey);
- else {
+
}
else {
assert(private);
i = i2d_ECPrivateKey_bio(out, eckey);
}
} else {
assert(private);
i = i2d_ECPrivateKey_bio(out, eckey);
}
} else {
- if (param_out)
+ if (param_out)
{
i = PEM_write_bio_ECPKParameters(out, group);
i = PEM_write_bio_ECPKParameters(out, group);
- else if (pubin || pubout)
+ } else if (pubin || pubout) {
i = PEM_write_bio_EC_PUBKEY(out, eckey);
i = PEM_write_bio_EC_PUBKEY(out, eckey);
- else {
+
}
else {
assert(private);
i = PEM_write_bio_ECPrivateKey(out, eckey, enc,
NULL, 0, NULL, passout);
assert(private);
i = PEM_write_bio_ECPrivateKey(out, eckey, enc,
NULL, 0, NULL, passout);
@@
-267,8
+267,9
@@
int ec_main(int argc, char **argv)
if (!i) {
BIO_printf(bio_err, "unable to write private key\n");
ERR_print_errors(bio_err);
if (!i) {
BIO_printf(bio_err, "unable to write private key\n");
ERR_print_errors(bio_err);
- } else
+ } else
{
ret = 0;
ret = 0;
+ }
end:
BIO_free(in);
BIO_free_all(out);
end:
BIO_free(in);
BIO_free_all(out);