UnsupportedOperationException error

Hello to all. I am interested in Identity Based Encryption Schemes and have implemented a program which is provided by nuim.cs.crypto group. 3 Months ago it was working fine with my previous java configuration however after my pc is formatted I have been recieving UnsupportedOperationException error from javax.crypto.CipherSpi.engineGetKeySize line.

My Code:

public static byte[] Encryption(PublicKey RecieverPub, String msg, IbeSystemParameters params, Cipher cipher)

{

try{

cipher.init(Cipher.ENCRYPT_MODE,RecieverPub,params,new SecureRandom());

}

catch(InvalidKeyException ike){

ike.printStackTrace();

}

catch(InvalidAlgorithmParameterException iape){

iape.printStackTrace();

}

..............

Error:

java.lang.UnsupportedOperationException

at javax.crypto.CipherSpi.engineGetKeySize(DashoA12275)

at javax.crypto.Cipher.init(DashoA12275)

at Alice.Encryption(Alice.java:62)

at RegisterImpl.main(RegisterImpl.java:289)

Basically in Identity Based Encryption schemes the encryption key is any identifier string about the user.

params is Ibesystemparameters object provided by nuim.cs.crypto package.

After my pc is formatted, I installed J2SE 1.6. Besides, I did not need to install additional JCE package since the versions after 1.4 include JCE packages.

I hope the problem seems to be clear. I wonder if I need to install any policy files.

Any idea would be appreciated.

Thanks,

Ayse

[1556 byte] By [Ziiiiiia] at [2007-11-26 19:02:42]
# 1
You will need to install the "Unlimited Strength Jurisdiction Policy Files" for JDK1.6.
sabre150a at 2007-7-9 20:48:55 > top of Java-index,Security,Cryptography...
# 2
Thanks, I have installed the recent policy files in the jre folder of the jdk 1.6 folder but still it doesn't work. I don't need to show or add the policy files in the project folder right?
Ziiiiiia at 2007-7-9 20:48:55 > top of Java-index,Security,Cryptography...
# 3
At last I found the problem. By mistake I have installed the policy files in a wrong folder. Thanks again. The problem is solved.
Ziiiiiia at 2007-7-9 20:48:55 > top of Java-index,Security,Cryptography...