Results 1 to 2 of 2
  1. #1
    Buhmann is offline Member
    Join Date
    Sep 2009
    Posts
    2
    Rep Power
    0

    Default 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:

    Java 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 ;)

  2. #2
    Buhmann is offline Member
    Join Date
    Sep 2009
    Posts
    2
    Rep Power
    0

    Default

    Sorry for posting again...but nobody has an idea? Okay, thank you anyway.

Similar Threads

  1. WebService encryption problem
    By falnik in forum Advanced Java
    Replies: 3
    Last Post: 07-26-2009, 05:21 AM
  2. Replies: 4
    Last Post: 04-17-2009, 10:48 PM
  3. Single Component Padding
    By subb in forum AWT / Swing
    Replies: 2
    Last Post: 03-28-2009, 08:09 PM
  4. padding informaiton for PKCS#5
    By nanaji in forum Advanced Java
    Replies: 3
    Last Post: 07-31-2008, 06:36 AM
  5. Encryption-Decryption Problem
    By dinesh.1.sharma in forum Advanced Java
    Replies: 1
    Last Post: 07-17-2008, 11:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •