Hi,
I need to encrypt data using C+openssl,then decrypt data using JAVA+SUNJCE.
When I encrypt the same plaintext using openssl and sunjce,
I found the two ciphertexts are different.
I tried two algorithms:EVP_des_ede() / DES ,EVP_rc4() / RC4,
but the results are all depressing.
I googled a post
I don't know about the RC4 problem, but EVP_des_ede is triple DES.
I thought JCE DES is single DES. (Single DES is depreciated
now, BTW. I thought there were also questions about RC4.)
I also wonder if you're generating the same key, but I'll leave
the nuances of the key generation