Hi,
The
padding idea does not seem to work.
I run
clear text of multiple of 8 bytes thru both algorithms
and
they came out differently.
BSAFE
must have done something proprietary underneath !!
Steve
HI,
In OpenSSL, I think you should add the padding yourself.
RC2 is the 8-byte block cipher.You should make the text you want to
encrypt to be multiple of 8 bytes.
And BSAFE does the padding for you automatically,while OpenSSL not.
Have you tried to encrypt a text whose size is multiple of 8
bytes?
If it can be encrypted and decrypted in both engines, then that is
the problem.
wjw
----- Original Message -----
Sent: Thursday, June 19, 2003 3:39
AM
Subject: From BSAFE to Openssl
Hi,
I try to migrate my app from BSAFE to
Openssl. But found RC2 to be incompatible in the following
sense:
I created two encryptString functions, one using BSAFE
Crypto-C and the other using Openssl EVP_Cipher routines. I pass them
both the same passphrase and salt. I set the effective key length to be
80 bits for both. I use EVP_Bytestokey for generating the key and iv in
Openssl.
Theoretically, the encrypted output for the same texts
should be the same for both.... but they are not!!
what
gives?
Thanks for the
help.
Steve
______________________________________________________________________ OpenSSL
Project
http://www.openssl.org Development
Mailing
List
[EMAIL PROTECTED] Automated
List
Manager
[EMAIL PROTECTED]
|