------
import org.bouncycastle.jce.provider.BouncyCastleProvider;
[...]
Cipher c = Cipher.getInstance("RSA/ECB/PKCS1Padding", "BC");
------
I have the error :
java.security.NoSuchProviderException: Provider 'BC' not found
at javax.crypto.Cipher.getInstance(DashoA6275)
I have the jar files : bcmail-jdk14-128.jar & bcprov-jdk14-128.jar with
jdk1.4
What's wrong?
Thanks.
You must add the Bouncy Castle provider as a new security provider
before getting the cipher instance (note: you only have to do this once
in your application):
java.security.Security.addProvider(new
org.bouncycastle.jce.provider.BouncyCastleProvider());
Regards,
Tommy
www.pheox.com