title: Is RSA PKCS1-OAEP padding supported in bouncycastle?
body: <p>I'm implementing encryption code in Java/Android to match iOS encryption. In iOS there are encrypting with RSA using the following padding scheme: PKCS1-OAEP </p>
  
  <p>However when I try to create Cipher with PKCS1-OAEP. </p>
  
  <pre><code>Cipher c = Cipher.getInstance("RSA/None/PKCS1-OAEP", "BC");
  </code></pre>
  
  <p>Below is the stacktrace</p>
  
  <pre><code>javax.crypto.NoSuchPaddingException: PKCS1-OAEP unavailable with RSA.
      at com.android.org.bouncycastle.jcajce.provider.asymmetric.rsa.CipherSpi.engineSetPadding(CipherSpi.java:240)
      at javax.crypto.Cipher.getCipher(Cipher.java:324)
      at javax.crypto.Cipher.getInstance(Cipher.java:237) 
  </code></pre>
  
  <p>Maybe this <code>RSA/None/PKCS1-OAEP</code> is incorrect? but can't find any definitive answer to say either PKCS1-OAEP is unsupported or the correct way to define it.</p>
  
  <p>I'm using the spongycastle library so have full bouncycastle implementation. </p>