IVParameterSpec

Andreas Sterbenz (sterbenz@iaik.tu-graz.ac.at)
Wed, 30 Sep 1998 15:27:59 +0200 (MET DST)

Hi,

the IvParameterSpec in javax.crypto.spec as well as RC2ParameterSpec and
RC5ParameterSpec all contain initialization vectors. Code that just cares
about the IV but not about the others parameters, like a generic CBC, OFB,
... implementation currently has to separately check and support all those
different *ParameterSpec classes plus possibly more in the future.

Wouldn't it make much more sense to make RCnParameterSpec subclasses of
IvParameterSpec so that one instanceof and getIV() would suffice?

Andreas Sterbenz mailto:sterbenz@iaik.tu-graz.ac.at