Add comfy aliases for AES in CBC mode.
authorRichard Levitte <levitte@openssl.org>
Wed, 20 Feb 2002 17:59:49 +0000 (17:59 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 20 Feb 2002 17:59:49 +0000 (17:59 +0000)
crypto/evp/c_allc.c

index 0fe5457..37e6ab8 100644 (file)
@@ -149,10 +149,16 @@ void OpenSSL_add_all_ciphers(void)
 #ifndef OPENSSL_NO_AES
        EVP_add_cipher(EVP_aes_128_ecb());
        EVP_add_cipher(EVP_aes_128_cbc());
+       EVP_add_cipher_alias(SN_aes_128_cbc,"AES128");
+       EVP_add_cipher_alias(SN_aes_128_cbc,"aes128");
        EVP_add_cipher(EVP_aes_192_ecb());
        EVP_add_cipher(EVP_aes_192_cbc());
+       EVP_add_cipher_alias(SN_aes_192_cbc,"AES192");
+       EVP_add_cipher_alias(SN_aes_192_cbc,"aes192");
        EVP_add_cipher(EVP_aes_256_ecb());
        EVP_add_cipher(EVP_aes_256_cbc());
+       EVP_add_cipher_alias(SN_aes_256_cbc,"AES256");
+       EVP_add_cipher_alias(SN_aes_256_cbc,"aes256");
 #endif
        PKCS12_PBE_add();
        PKCS5_PBE_add();