KeyGenerator issue
- From: "mattvenables" <mattvenables@xxxxxxxxx>
- Date: 7 Jun 2005 11:46:23 -0700
I have a function add a JCE provider for an AES algorithm, but the JCE
fails every time I attempt to launch it.
Provider jceProvider = new com.x.jce.provider.JCEProvider;
Security.addProvider (jceProvider);
Provider [] currentProviders = Security.getProviders();
// ... prints the array
SecureRandom rand = SecureRandom.getInstance("SHA1PRNG",
"JceProvider");
//psuedo random number generator
KeyGenerator aesKeyGen = KeyGenerator.getInstance("AES","JceProvider");
The SecureRandom getInstance function works fine, but the KeyGenerator
getInstance function fails with the following error:
[java] java.security.NoSuchProviderException: JCE cannot
authenticate the provider JceProvider
[java] at javax.crypto.SunJCE_b.a(DashoA6275)
[java] at javax.crypto.SunJCE_b.a(DashoA6275)
[java] at javax.crypto.KeyGenerator.getInstance(DashoA6275)
[java] at com.x.jce.AES.go(Unknown Source)
[java] at com.x.jce.AES.main(Unknown Source)
[java] Caused by: java.util.jar.JarException:
file:/jceProvider.jar is not signed by a trusted signer.
[java] at javax.crypto.SunJCE_d.b(DashoA6275)
[java] at javax.crypto.SunJCE_d.a(DashoA6275)
[java] at javax.crypto.SunJCE_d.a(DashoA6275)
[java] at javax.crypto.SunJCE_b.b(DashoA6275)
[java] ... 5 more
Any ideas why the KeyGenerator would fail but the SecureRandom (which
looks for the same exact provider) fails? I've attempted to sign the
jars and verifying the signatures always returns true. I am completely
stumped.
.
- Prev by Date: Re: Fast search for a number within tolernaces
- Next by Date: Re: please help with this singing issue
- Previous by thread: lgo4j RollingFileAppender won't roll file
- Next by thread: Container managed transaction question
- Index(es):
Relevant Pages
|