From 07ac4c2f4c66f4685be4d74651d9597a5092aae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 15 Apr 2006 13:13:06 +0000 Subject: [PATCH] Add EVP_rc2_64_cbc git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17085 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/evp.c | 21 +++++++++++++++++++++ lib/des/evp.h | 2 ++ 2 files changed, 23 insertions(+) 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); /* *