diff --git a/crypto/cipher_extra/cipher_extra.c b/crypto/cipher_extra/cipher_extra.c index c9093bca1a..8a2dbcbb07 100644 --- a/crypto/cipher_extra/cipher_extra.c +++ b/crypto/cipher_extra/cipher_extra.c @@ -99,6 +99,9 @@ static const struct { {NID_des_ede3_cbc, "des-ede3-cbc", EVP_des_ede3_cbc}, {NID_rc2_cbc, "rc2-cbc", EVP_rc2_cbc}, {NID_rc4, "rc4", EVP_rc4}, + {NID_bf_cbc, "bf-cbc", EVP_bf_cbc}, + {NID_bf_ecb, "bf-ecb", EVP_bf_ecb}, + {NID_bf_cfb64, "bf-cfb", EVP_bf_cfb}, }; static const struct { diff --git a/crypto/cipher_extra/cipher_test.cc b/crypto/cipher_extra/cipher_test.cc index aaac48d53b..191cc5196c 100644 --- a/crypto/cipher_extra/cipher_test.cc +++ b/crypto/cipher_extra/cipher_test.cc @@ -1081,6 +1081,10 @@ TEST(CipherTest, GetCipher) { cipher = EVP_get_cipherbyname("aes128"); ASSERT_TRUE(cipher); EXPECT_EQ(NID_aes_128_cbc, EVP_CIPHER_nid(cipher)); + + cipher = EVP_get_cipherbyname("bf-cbc"); + ASSERT_TRUE(cipher); + EXPECT_EQ(NID_bf_cbc, EVP_CIPHER_nid(cipher)); } // Test the AES-GCM EVP_CIPHER's internal IV management APIs. OpenSSH uses these