[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null

From: vivekl at redhat dot com
Subject: [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null
Date: 16 Jun 2006 01:12:18 -0000

------- Comment #17 from vivekl at redhat dot com  2006-06-16 01:12 -------
(In reply to comment #16)
> (In reply to comment #15)
> btw.  going through the public API of the engineInit(int,Key,SecureRandom)
> (JDK1.4.2_12) it is stated that we only need to check for the IV iff 'opmode'
> is Cipher.DECRYPT_MODE or Cipher.UNWRAP_MODE.  if you can add this check to
> your patch, that would be much appreciated.

I checked the JDK javadocs for all the engineInit()s. I have added a test case
in the mauve suite (gnu.testlet.gnu.javax.crypto.jce.TestOfCipherEngineInit)
modelling the behaviour mentioned there for engineInit(int, Key, SecureRandom)
and engineInit(int, Key, AlgorithmParameterSpec, SecureRandom). I have also
verified most of the behaviour the test case expects against the JDK and other
providers as well. I just sent a patch on cp-patches that IMO models executes
this logic properly:

Please have a look when you get a chance and comment.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]