aboutsummaryrefslogtreecommitdiff
path: root/crypto/evp/e_cbc_r2.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-05-16 17:32:32 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-05-16 17:32:32 +0000
commit1b266dabf5417e228d9e970d4f2923fec92fea1e (patch)
tree5d8452e6c93ec0b81379cf23aa8a74f82c1726f9 /crypto/evp/e_cbc_r2.c
parentf43c814917fea994234376b7c7538ad26b9c46bf (diff)
downloadopenssl-1b266dabf5417e228d9e970d4f2923fec92fea1e.zip
openssl-1b266dabf5417e228d9e970d4f2923fec92fea1e.tar.gz
openssl-1b266dabf5417e228d9e970d4f2923fec92fea1e.tar.bz2
Fix various less obvious bugs in PKCS#7 handling: such as not zeroing
the secret key before we've encrypted it and using the right NID for RC2-64. Add various arguments to the experimental programs 'dec' and 'enc' to make testing less painful. This stuff has now been tested against Netscape Messenger and it can encrypt and decrypt S/MIME messages with RC2 (128, 64 and 40 bit) DES and triple DES. Its still experimental though...
Diffstat (limited to 'crypto/evp/e_cbc_r2.c')
-rw-r--r--crypto/evp/e_cbc_r2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/e_cbc_r2.c b/crypto/evp/e_cbc_r2.c
index e7aa44d..9dfada4 100644
--- a/crypto/evp/e_cbc_r2.c
+++ b/crypto/evp/e_cbc_r2.c
@@ -91,7 +91,7 @@ static EVP_CIPHER r2_cbc_cipher=
static EVP_CIPHER r2_64_cbc_cipher=
{
- NID_rc2_40_cbc,
+ NID_rc2_64_cbc,
8,8 /* 64 bit */,8,
rc2_cbc_init_key,
rc2_cbc_cipher,