diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-05-10 00:47:42 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-05-10 00:47:42 +0000 |
commit | 884e8ec61533ee6361d72151066a808a0cfcd6d3 (patch) | |
tree | 45ea7a5baeef816089ea84b81e41e773762d0b9c /crypto/evp/e_cbc_r2.c | |
parent | 9d5cceac6fb0eca8945f630afff1a2288aa6332a (diff) | |
download | openssl-884e8ec61533ee6361d72151066a808a0cfcd6d3.tar.gz |
Various PKCS#7 fixes to properly (maybe!) handle PKCS#7 enveloped data.
Containts elements of code by Sebastian Akerman <sak@parallelconsulting.com>
and made a bit less "naughty" by Steve.
Diffstat (limited to 'crypto/evp/e_cbc_r2.c')
-rw-r--r-- | crypto/evp/e_cbc_r2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/evp/e_cbc_r2.c b/crypto/evp/e_cbc_r2.c index d6a568f4b3..e7aa44d9af 100644 --- a/crypto/evp/e_cbc_r2.c +++ b/crypto/evp/e_cbc_r2.c @@ -155,9 +155,9 @@ static int rc2_meth_to_magic(const EVP_CIPHER *e) int i; i=EVP_CIPHER_key_length(e); - if (i == 128) return(RC2_128_MAGIC); - else if (i == 64) return(RC2_64_MAGIC); - else if (i == 40) return(RC2_40_MAGIC); + if (i == 16) return(RC2_128_MAGIC); + else if (i == 8) return(RC2_64_MAGIC); + else if (i == 5) return(RC2_40_MAGIC); else return(0); } |