Wrox Home  
Search P2P Archive for: Go

  Return to Index  

security_java thread: Will the wrong key always generate an exception?


Message #1 by Jens Carlberg <jens@u...> on Tue, 09 Apr 2002 08:45:11 +0200
Hi!

I've started using the javax.crypto.SealedObject class for storing
sensitive information. When retrieving the Object, you need to supply at
least the key used for encryption.

If I construct a Key with the same algorithm, padding etc, but from
another seed, I have seen that I get a IOException when trying to
deserialize the stored Object.

Is this guaranteed to happen if the Key is the wrong one?

The documentation just says the IOException is thrown if the
deserializing fails, but doesn't explicitly tells on what occasions this
will happen. Can anyone shed some light on the issue.

Yours,
-- 
      _/ _/_/_/ _/   _/ _/_/_/ | Jens Carlberg
     _/ _/     _/_/ _/  _/     | UNIT, Linköpings universitet
    _/ _/_/   _/ _/_/    _/    | Tel: +xx xx xxxxxx
_/_/  _/_/_/ _/   _/ _/_/_/    | Fax: +xx xx xxxxxx

  Return to Index