Deleted Added
full compact
enc.c (68651) enc.c (79998)
1/* apps/enc.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

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

510 else
511 memset(str,0,strlen(str));
512 }
513 if ((hiv != NULL) && !set_hex(hiv,iv,8))
514 {
515 BIO_printf(bio_err,"invalid hex iv value\n");
516 goto end;
517 }
1/* apps/enc.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

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

510 else
511 memset(str,0,strlen(str));
512 }
513 if ((hiv != NULL) && !set_hex(hiv,iv,8))
514 {
515 BIO_printf(bio_err,"invalid hex iv value\n");
516 goto end;
517 }
518 if ((hiv == NULL) && (str == NULL))
519 {
520 /* No IV was explicitly set and no IV was generated
521 * during EVP_BytesToKey. Hence the IV is undefined,
522 * making correct decryption impossible. */
523 BIO_printf(bio_err, "iv undefined\n");
524 goto end;
525 }
518 if ((hkey != NULL) && !set_hex(hkey,key,24))
519 {
520 BIO_printf(bio_err,"invalid hex key value\n");
521 goto end;
522 }
523
524 if ((benc=BIO_new(BIO_f_cipher())) == NULL)
525 goto end;

--- 111 unchanged lines hidden ---
526 if ((hkey != NULL) && !set_hex(hkey,key,24))
527 {
528 BIO_printf(bio_err,"invalid hex key value\n");
529 goto end;
530 }
531
532 if ((benc=BIO_new(BIO_f_cipher())) == NULL)
533 goto end;

--- 111 unchanged lines hidden ---