Hello,
I encrypt data with OAEP Padding in java but i´ m not able to decrypt it with openssl. If i use PKCS1Padding all works fine. This is (a small part of) my code:
Cipher cipherInstance = Cipher.getInstance("RSA/ECB/OAEPWithSHA1AndMGF1Padding");
cipherInstance.init(Cipher.ENCRYPT_MODE, pubKey);
enc= cipherInstance.doFinal(cipher);
Isn´t that enough? I already tried other things, but nothing works and i thought that this should be the right way. But it doesn´t seen so. I hope anybody can help me. Thank you and sorry for my bad english.