# Re: KeyStore for symmetric key

Jan Luehe (luehe@laguna.eng.sun.com)
Wed, 18 Nov 1998 16:40:20 -0800 (PST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jan Luehe: "Re: Signing applets outside of the US???"
- Previous message: Timothy Bell: "Distribute JCE Exportable (40-bit) Edition outside North America"
- Maybe in reply to: Miriam Kadansky - SUN Microsystems: "KeyStore for symmetric key"

Miriam:

> 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?

This bug (#4171628) has already been fixed. The fix will be
availble in the JCE 1.2 FCS release which will be shipped
shortly after JDK 1.2.

Jan

- Next message: Jan Luehe: "Re: Signing applets outside of the US???"
- Previous message: Timothy Bell: "Distribute JCE Exportable (40-bit) Edition outside North America"
- Maybe in reply to: Miriam Kadansky - SUN Microsystems: "KeyStore for symmetric key"