> Security.addProvider(new BouncyCastleProvider());
> KeyPairGenerator generator = KeyPairGenerator.getInstance(
[quoted text clipped - 3 lines]
> PrivateKey prik = keyPair.getPrivate();
> PublicKey pubk = keyPair.getPublic();
I tried to create a Cipher with
Cipher cipher = Cipher.getInstance("RSA","BC");
But only an error occured:
The provider BC may not be signed by a trusted party
javax.crypto.cipher is content of the bouncycastle sources, but not in
the signed jar-file. so the original from java is used ?!?
any idea?
Matthias Ullrich - 06 Dec 2004 18:49 GMT
> I tried to create a Cipher with
> Cipher cipher = Cipher.getInstance("RSA","BC");
>
> But only an error occured:
> The provider BC may not be signed by a trusted party
A call of
Cipher cipher = Cipher.getInstance("RSA/PKCS1","BC");
rises the following error:
Invalid transformation format:RSA/PKCS1
i go crazy with that BC