# Previous mail

Frank Yellin (fy@awe181-20.Sun.COM)
Mon, 8 Mar 1999 23:21:45 -0800

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Pierre, Stephane: "ACL"
- Previous message: David Brownell: "Re: FCS coming up?"
- Next in thread: Jan Luehe: "Re: Previous mail"

    Date: Mon, 8 Mar 1999 23:21:45 -0800

    Message-Id: <199903090721.XAA00440@awe181-20.>

    From: Frank Yellin <fy@awe181-20.Sun.COM>

    To: java-security@java.sun.com

    Subject: Previous mail

[I'm having trouble reading mail from home, so I don't know if anyone
responded to my previous mail or not. . .]

Strangely enough:

Cipher cipher = Cipher.getInstance("DES/OFB8/NoPadding");
cipher.init(javax.crypto.Cipher.ENCRYPT_MODE, key);
AlgorithmParameters ap = cipher.getParameters();
cipher.init(javax.crypto.Cipher.DECRYPT_MODE, key, ap);
works fine, while
cipher.init(javax.crypto.Cipher.DECRYPT_MODE, key);
gives an error.

So it'll initialize ENCRYPT_MODE using default algorithm parameters (I
would presume), which I can then give to the DECRYPT_MODe.

But it won't initialize DECRYPT_MODE unless the parameters are expressly
presented.

Not nearly as bad as I originally thought, but still slightly quirky.

== Frank

- Next message: Pierre, Stephane: "ACL"
- Previous message: David Brownell: "Re: FCS coming up?"
- Next in thread: Jan Luehe: "Re: Previous mail"