InvalidKeyException
Hi,
I am a beginner in JCE. I am using jsdk1.4 beta version. When I try to get a key of a self-signed certificate and use it to initialize cipher obect (DES algorithm), I am getting the following error:
Exception in thread "main" java.security.InvalidKeyException
at com.sun.crypto.provider.DESCipher.engineGetKeySize([DashoPro-V1.2-120
198])
at javax.crypto.Cipher.init([DashoPro-V1.2-120198])
at enumcerts.encrypt(enumcerts.java:109)
at enumcerts.main(enumcerts.java:72)
There seems to be a plroblem with keysize or something. Please help.
Thanks
JV

