DES/CBC question

2003-03-13 Thread Ken Ho



Hi,

I am developing a cipher encryption tool in c++ using your openssl-crypto 
library.

The result encrypted string is passed to another system for decryption and 
vice versa, in which the cipher encryption tool was developed in Java, cipher 
algorithm isDES, mode is CBC, PKCS 5 padding.

I tried both functions DES_ncbc_encrypt() and DES_cbc_encrypt() in lib 
crypto/des for encryption, the result string can't be decrypted by the Java 
version cipher tool, it doesn't work the other way around neither. I got around 
the padding but the strings just look totally different. Am I using the 
wrong functions? Which function provides the same algorithm/mode as the one we 
used in ourJava version.

Please help!! Thanks.

Ken Ho


[openssl.org #524] DES/CBC question

2003-03-01 Thread [EMAIL PROTECTED] via RT

I don't like to send my questions to [EMAIL PROTECTED] as this doesn't look like a 
bug.  But my mail doesn't seem like getting through with user and dev emails...
==

Hi,

I am developing a cipher encryption tool in c++ using your openssl-crypto library.

The result encrypted string is passed to another system for decryption and vice versa, 
in which the cipher encryption tool was developed in Java, cipher algorithm is DES, 
mode is CBC, PKCS 5 padding.

I tried both functions DES_ncbc_encrypt() and DES_cbc_encrypt() in lib crypto/des for 
encryption, the result string can't be decrypted by the Java version cipher tool, it 
doesn't work the other way around neither. I got around the padding but the strings 
just look totally different.  Am I using the wrong functions? Which function provides 
the same algorithm/mode as the one we used in our Java version.

 Please help!! Thanks.

__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]