# IVParameterSpec

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

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Arjun Khanna: "DSA certificates/SSLSocket."
- Previous message: JDCNewsletter@Sun.com: "JDC Newsletter Vol. 2 No. 1"
- Next in thread: Jan Luehe: "Re: IVParameterSpec"

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

- Next message: Arjun Khanna: "DSA certificates/SSLSocket."
- Previous message: JDCNewsletter@Sun.com: "JDC Newsletter Vol. 2 No. 1"
- Next in thread: Jan Luehe: "Re: IVParameterSpec"