Results 1 to 2 of 2
- 09-02-2009, 11:35 AM #1
Member
- Join Date
- Sep 2009
- Posts
- 2
- Rep Power
- 0
OAEP Padding Problem by encryption
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:
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 ;)Java Code:Cipher cipherInstance = Cipher.getInstance("RSA/ECB/OAEPWithSHA1AndMGF1Padding"); cipherInstance.init(Cipher.ENCRYPT_MODE, pubKey); enc= cipherInstance.doFinal(cipher);
- 09-07-2009, 01:19 PM #2
Member
- Join Date
- Sep 2009
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
WebService encryption problem
By falnik in forum Advanced JavaReplies: 3Last Post: 07-26-2009, 04:21 AM -
[SOLVED] How do you add cell padding to a JTable?
By Angie in forum New To JavaReplies: 4Last Post: 04-17-2009, 09:48 PM -
Single Component Padding
By subb in forum AWT / SwingReplies: 2Last Post: 03-28-2009, 07:09 PM -
padding informaiton for PKCS#5
By nanaji in forum Advanced JavaReplies: 3Last Post: 07-31-2008, 05:36 AM -
Encryption-Decryption Problem
By dinesh.1.sharma in forum Advanced JavaReplies: 1Last Post: 07-17-2008, 10:03 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks