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

[634 byte] By [VijayJ] at [2007-9-26 1:19:53]
# 1
I think I figured it. JV
VijayJ at 2007-6-29 0:53:04 > top of Java-index,Security,Cryptography...