bcprov-jdk15on-1.62.jar has unsigned entries - org/bouncycastle/LICENSE.class #557

@innocentliny

Description

Hi,

I am trying to use JDK7u80 + bcprov-jdk15on-1.62.jar to write AES-GCM codes.
My build.gradle as below:

dependencies {
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.62'
testCompile 'org.testng:testng:6.8.21'

My codes are below:

But got exception:

Exception in thread "main" java.lang.SecurityException: JCE cannot authenticate the provider BC
	at javax.crypto.Cipher.getInstance(Cipher.java:647)
	at javax.crypto.Cipher.getInstance(Cipher.java:585)
	at com.asuscloud.common.crypto.AESGCMUtils.main(AESGCMUtils.java:46)
Caused by: java.util.jar.JarException: file:/C:/Users/anderson/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.62/633b6739ef8f07f2e71f8eebd1c6f25b17a4ec7d/bcprov-jdk15on-1.62.jar has unsigned entries - org/bouncycastle/LICENSE.class
	at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:462)
	at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322)
	at javax.crypto.JarVerifier.verify(JarVerifier.java:250)
	at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:161)
	at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:187)
	at javax.crypto.Cipher.getInstance(Cipher.java:643)
	... 2 more

bcprov-jdk15on-1.62.jar is downloaded from https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on/1.62.

Please let me know if any I missed.
Thank you very much!