Hi All,
Does anybody know how to enable the ECB mode with the RSA encryption? I know
there are some function to support the ECB mode for the symmetric ciphers, but
I didn't find any function to support ECB/CBC mode for the RSA encryption, I am
wondering if there is any option to support different mode for RSA encryption.
I am using RSA_public_encrypt method to encrypt the key, then the key will be
sent to a Java server which use below mode to decrypt the key:
Cipher.getInstance("RSA/ECB/PKCS1Padding")
The server can't decrypt the key correctly, Both the server and the client use
the same padding mode (PKCS1Padding and RSA_PKCS1_PADDING), and the server use
the ECB mode, I am not sure which mode the client is using, but I guess that
the CBC is the default mode, does this will bring the problem if they use the
different mode?
Any help on this is appreciated.
liansm
2008-12-09