title: Cannot find any provider supporting RSA/None/OAEPWITHSHA-256ANDMGF1PADDING
body: <p>I encountered a strange issue while encrypting with RSA in javax crypto. I am using <code>RSA/None/OAEPWITHSHA-256ANDMGF1PADDING</code> mode as follow:</p>
  <pre><code> Cipher cipher = Cipher.getInstance(&quot;RSA/None/OAEPWITHSHA-256ANDMGF1PADDING&quot;);
  </code></pre>
  <p>and it is working correctly in my spring boot project. But when I call the same function via <code>main(String[] args)</code> in the same project, I am getting the issue
  <code>Cannot find any provider supporting RSA/None/OAEPWITHSHA-256ANDMGF1PADDING</code>. Again if I use <code>RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING</code> I get the correct output(I don't want to use ECB as I know it has no use in the RSA algorithm).</p>
  <p>Also, in my another spring boot project, I am getting the same above issue(this time not only <code>main(String[] args)</code> but in the Spring Boot project itself as well).</p>
  <p>Could anybody help me with this?</p>