java & phpseclib, RSA and OAEP?
<p>I am encrypting in Java using <code>Cipher.getInstance("RSA/ECB/OAEPWITHSHA-512ANDMGF1PADDING")</code> and <code>setEncryptionMode(CRYPT_RSA_ENCRYPTION_OAEP)</code> in phpseclib, but the phpseclib is not decrypting the data correctly. </p>

<p>It worked perfectly when I used <code>RSA/ECB/PKCS1Padding</code> in Java, and <code>setEncryptionMode(CRYPT_RSA_ENCRYPTION_PKCS1)</code> in phpseclib.</p>

<p>Here are the supported ciphers in Java: <a href="http://download.oracle.com/javase/6/docs/technotes/guides/security/SunProviders.html#SunJCEProvider" rel="nofollow">http://download.oracle.com/javase/6/docs/technotes/guides/security/SunProviders.html#SunJCEProvider</a></p>

<p>Are none of those ciphers compatible with phpseclib's OAEP implementation?</p>
