# KeyStore for symmetric key

Miriam Kadansky - SUN Microsystems (miriamk@bcn.East.Sun.COM)
Thu, 12 Nov 1998 17:39:45 -0500 (EST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Panagoula Zografou: "digital signatures with plugin 1.1.1"
- Previous message: David Skeen: "Export of JCE 1.2 interfaces with JDK 1.1.x"
- Next in thread: Jan Luehe: "Re: KeyStore for symmetric key"

I'm trying to create a KeyStore to contain a symmetric (DES)
'm trying to create a KeyStore to contain a symmetric (DES)
key. I understand from a previous e-mail (achive 3, number
1306) that I can't use JKS that comes with JDK1.2.

So, I'm trying to use a JCEKS, but when I load a null one, I
get the following trace:

java.lang.NullPointerException
at java.io.DataInputStream.readInt(Compiled Code)
at com.sun.crypto.provider.JceKeyStore.engineLoad(Compiled Code)
at java.security.KeyStore.load(Compiled Code)
at Test.main(Compiled Code)

My code looks like this:

KeyStore store = KeyStore.getInstance("JCEKS");
store.load(null, null);

I'd look in the source to see what's going on, but it's well
hidden! I'm using jdk1.2fcs and jce12-beta2-dom. Any idea
what I'm doing wrong? Do I have to implement my own KeyStore?

-----------------------------
Miriam Kadansky
Senior Staff Engineer
Sun Microsystems Labs
978-442-0750

miriam.kadansky@east.sun.com

- Next message: Panagoula Zografou: "digital signatures with plugin 1.1.1"
- Previous message: David Skeen: "Export of JCE 1.2 interfaces with JDK 1.1.x"
- Next in thread: Jan Luehe: "Re: KeyStore for symmetric key"