Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Hi, can someone help me with:NoSuchAlgorithmException

843810Sep 5 2003 — edited Sep 8 2003
Hi firneds, Sorry by my poor English.

I am trying to use a "cipher", and I get this error:

java.security.NoSuchAlgorithmException: Algorithm RSA_PKCS1_v2_1 not
available at javax.crypto.b.a([DashoPro-V1.2-120198]) at
javax.crypto.Cipher.getInstance ...

What's going wrong?

My code...


import javax.crypto.*;

public class Cifrado
{
Cipher cipher;

.....

public void Cifra(byte[] input, String Algor, PublicKey publickey,
PrintStream out)
{
...
try {
cipher = Cipher.getInstance Algor); ///"RSA_PKCS1_v2_1/CBC/PKCS5Padding"
}
catch(Exception e){
e.printStackTrace(out);
}
...

In another class I did set the provider with:
import de.flexiprovider.core.*;
...
Security.addProvider(new de.flexiprovider.core.FlexiCoreProvider());

------------------------------------------------------------------------
I'm trying to use FlexiPorvider with jdk 1.3.1_01 as development tool
by your time: thanks a lot.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 6 2003
Added on Sep 5 2003
2 comments
697 views