Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

UnrecoverableKeyException and DerValue constructor

40 views
Skip to first unread message

susikauf...@hotmail.com

unread,
Apr 2, 2006, 12:36:05 PM4/2/06
to
Hello,

i am trying to decrypt a file i had encrypt before. Encryption works
fine, but every time i am trying to decrypt, i get the following error:


java.security.UnrecoverableKeyException: extra data given to DerValue
constructor
at sun.security.provider.KeyProtextor.recover(KeyProtector.java:311)
at
sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:103)
at java.security.KeyStore.getKey(KeyStore.java:289)

Then it directs to my own code, to the line: key =
ks.getKey("MyKeyAlias",mypassword);

Thank you in advance for every hint,

Susi

0 new messages