# Setting an IV

Jonathan Knudsen (jonathan@oreilly.com)
Thu, 15 Jan 1998 16:24:58 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Shekhar Kirani: "Java Security Architecture documentation - images are not shown properly."
- Previous message: Li Gong: "Re: export developed software"

    Message-Id: <l03010d06b0e42d471ef1@[199.174.135.99]>

    Date: 	Thu, 15 Jan 1998 16:24:58 -0500

    To: java-security@web1.javasoft.com

    From: Jonathan Knudsen <jonathan@oreilly.com>

    Subject: Setting an IV

Hello security people,

I'm a little bummed out about the method used in JCE 1.2
to set the IV on a Cipher for decryption. As I see it,
you have to construct a DESParameterSpec with the IV
and pass the DESParameterSpec to the cipher when you
initialize it for decryption. But this is a DES-specific solution.

The implication is that if you want to use any cipher mode
except ECB, you have to do something algorithm-specific.
This bums me out--I want to be able to switch between
two different algorithms, both in CBC or CFB mode, without
changing my code. As it stands now, I'm out of luck, right?

Maybe a generic IVParameterSpec interface would be
appropriate? It could just have a method, getIV(), that
returns the IV data.

Thanks for listening,
Jonathan

- Next message: Shekhar Kirani: "Java Security Architecture documentation - images are not shown properly."
- Previous message: Li Gong: "Re: export developed software"