Add aliases for des-ede-ecb and des-ede3-ecb ciphers.
authorKirill Marinushkin <k.marinushkin@gmail.com>
Sun, 24 Apr 2016 09:30:08 +0000 (11:30 +0200)
committerRich Salz <rsalz@openssl.org>
Fri, 29 Apr 2016 13:17:09 +0000 (09:17 -0400)
commit842dc98705e32789bbfef230dc02ab43885d429f
tree03359336908afd3a0a8901a3988fbab1fc3eb4ec
parente6f2bb66042f329fbb6a4ab810abce7c295b08dc
Add aliases for des-ede-ecb and des-ede3-ecb ciphers.

Currently we can get all block ciphers with
EVP_get_cipherbyname("<alg_name>-<block-mode-name>")
for example, by names "aes-128-ecb" or "des-ede-cbc".
I found a problem with des-ede-ecb and des-ede3-ecb ciphers as
they can be accessed only with names:
EVP_get_cipherbyname("des-ede")
EVP_get_cipherbyname("des-ede3")
It breaks the general concept.

In this patch I add aliases which allow to use names:
EVP_get_cipherbyname("des-ede-ecb")
EVP_get_cipherbyname("des-ede3-ecb")
in addition to the currently used names.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/evp/c_allc.c