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.
 
Ken Ho

Reply via email to