Unify DES library: ncbc_enc.c wasn't used, but its content was almost
authorBodo Möller <bodo@openssl.org>
Wed, 9 Jun 1999 17:28:30 +0000 (17:28 +0000)
committerBodo Möller <bodo@openssl.org>
Wed, 9 Jun 1999 17:28:30 +0000 (17:28 +0000)
commit3bcfce2881b8fa9d840e6a61d43843504064a562
tree4208a2644e4ac31a07dee4b951d137ccbf7d7895
parentdf63a389a5cae779e535a9dd3ba7a6bfaaf313ec
Unify DES library: ncbc_enc.c wasn't used, but its content was almost
duplicated in cbc_enc.c (without IV updating) and in des_enc.c

As pointed out by others on the openssl-dev list, des_cbc_encrypt (without
IV updating; defined in cbc_enc.c) exists only for historical reasons:
des_ncbc_encrypt should be used instead (and the caller does not have
to manually update the IV).

If des_cbc_enrypt is not needed for backwards compatibility, the
definition of des_ncbc_encrypt should be put back into des_enc.c, and
both cbc_enc.c and ncbc_enc.c can be deleted.

If des_cbc_encrypt *is* needed for backwards compatibility, its behaviour
obviously should not change (i.e., don't add IV updating).
crypto/des/cbc3_enc.c
crypto/des/cbc_enc.c
crypto/des/des_enc.c
crypto/des/ncbc_enc.c