Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT] Provide Blowfish from EVP_get_cipherbyname #2040

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crypto/cipher_extra/cipher_extra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions crypto/cipher_extra/cipher_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading