diff --git a/lib/des/evp.c b/lib/des/evp.c index 7cd069913..b15bbcd23 100644 --- a/lib/des/evp.c +++ b/lib/des/evp.c @@ -559,6 +559,27 @@ EVP_rc2_40_cbc(void) return &rc2_40_cbc; } +const EVP_CIPHER * +EVP_rc2_64_cbc(void) +{ + static const EVP_CIPHER rc2_64_cbc = { + 0, + RC2_BLOCK_SIZE, + 8, + RC2_BLOCK_SIZE, + EVP_CIPH_CBC_MODE, + rc2_init, + rc2_do_cipher, + rc2_cleanup, + sizeof(struct rc2_cbc), + NULL, + NULL, + NULL, + NULL + }; + return &rc2_64_cbc; +} + /* * */ diff --git a/lib/des/evp.h b/lib/des/evp.h index cf88be819..2aa6834c2 100644 --- a/lib/des/evp.h +++ b/lib/des/evp.h @@ -82,6 +82,7 @@ #define EVP_rc2_cbc hc_EVP_rc2_cbc #define EVP_rc4 hc_EVP_rc4 #define EVP_rc4_40 hc_EVP_rc4_40 +#define EVP_rc4_64 hc_EVP_rc4_64 #define EVP_sha hc_EVP_sha #define EVP_sha1 hc_EVP_sha1 #define EVP_sha256 hc_EVP_sha256 @@ -173,6 +174,7 @@ const EVP_CIPHER * EVP_rc2_40_cbc(void); const EVP_CIPHER * EVP_rc2_cbc(void); const EVP_CIPHER * EVP_rc4(void); const EVP_CIPHER * EVP_rc4_40(void); +const EVP_CIPHER * EVP_rc4_64(void); /* *