Deleted Added
full compact
ec.c (160814) ec.c (167612)
1/* apps/ec.c */
2/*
3 * Written by Nils Larsch for the OpenSSL project.
4 */
5/* ====================================================================
6 * Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 333 unchanged lines hidden (view full) ---

342 if (!EC_KEY_print(out, eckey, 0))
343 {
344 perror(outfile);
345 ERR_print_errors(bio_err);
346 goto end;
347 }
348
349 if (noout)
1/* apps/ec.c */
2/*
3 * Written by Nils Larsch for the OpenSSL project.
4 */
5/* ====================================================================
6 * Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 333 unchanged lines hidden (view full) ---

342 if (!EC_KEY_print(out, eckey, 0))
343 {
344 perror(outfile);
345 ERR_print_errors(bio_err);
346 goto end;
347 }
348
349 if (noout)
350 {
351 ret = 0;
350 goto end;
352 goto end;
353 }
351
352 BIO_printf(bio_err, "writing EC key\n");
353 if (outformat == FORMAT_ASN1)
354 {
355 if (param_out)
356 i = i2d_ECPKParameters_bio(out, group);
357 else if (pubin || pubout)
358 i = i2d_EC_PUBKEY_bio(out, eckey);

--- 42 unchanged lines hidden ---
354
355 BIO_printf(bio_err, "writing EC key\n");
356 if (outformat == FORMAT_ASN1)
357 {
358 if (param_out)
359 i = i2d_ECPKParameters_bio(out, group);
360 else if (pubin || pubout)
361 i = i2d_EC_PUBKEY_bio(out, eckey);

--- 42 unchanged lines hidden ---