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

