Cannot find any provider supporting AES/GCM/NoPadding
<p>We are trying to do encryption supporting AES/GCM/NoPadding in <strong>java 7</strong> getting below exception.</p>
<p><strong>Cannot find any provider supporting AES/GCM/NoPadding</strong></p>
<p>Code sample for generating cipher instance is below.</p>
<pre><code>SecretKeySpec eks = new SecretKeySpec(k, &quot;AES&quot;);
Cipher c = Cipher.getInstance(&quot;AES/GCM/NoPadding&quot;);
c.init(Cipher.ENCRYPT_MODE, eks, new GCMParameterSpec(128, iv));
</code></pre>