[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: |
12 Jun 2006 18:01:14 -0000 |
------- Comment #12 from vivekl at redhat dot com 2006-06-12 18:01 -------
Created an attachment (id=11653)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11653&action=view)
Updated to only mark ECB as not requiring an IV.
The previous patch has been updated to make random IV for all modes except ECB.
Since I did not see any other comments about the patch, perhaps this can be
commited to CVS? Sorry for being pushy, I am juggling a bunch of these patches
while I continue to test GNU-crypto with various applications and it is
starting to become a pain...
Changelog below:
2006-06-12 Vivek Lakshmanan <address@hidden>
* gnu/javax/crypto/mode/IMode.java
(requiresIV): New method.
* gnu/javax/crypto/mode/BaseMode.java
(requiresIV): New field.
(requiresIV): New method.
(BaseMode(String, IBlockCipher, int)): Remove method.
(BaseMode(String, IBlockCipher, int, boolean)): New method.
* gnu/javax/crypto/mode/CBC.java
(CBC): Update to use new BaseMode constructor.
* gnu/javax/crypto/mode/CFB.java
(CFB): Update to use new BaseMode constructor.
* gnu/javax/crypto/mode/CTR.java
(CTR): Update to use new BaseMode constructor.
* gnu/javax/crypto/mode/EAX.java
(requiresIV): New method.
* gnu/javax/crypto/mode/ECB.java
(ECB): Update to use new BaseMode constructor.
* gnu/javax/crypto/mode/ICM.java
(ICM): Update to use new BaseMode constructor.
* gnu/javax/crypto/mode/OFB.java
(OFB): Update to use new BaseMode constructor.
* gnu/javax/crypto/jce/cipher/CipherAdapter.java
(engineInit(int, Key, SecureRandom)): Ensure a random IV is
generated if the mode requires an IV.
(engineInit(int, Key, AlgorithmParameterSpec, SecureRandom)):
Call engineInitHandler instead of engineInit.
(engineInitHandler): New method.
Remove unwanted import statements.
--
vivekl at redhat dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #11650|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27849
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, (continued)
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, csm at gnu dot org, 2006/06/01
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, vivekl at redhat dot com, 2006/06/10
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, vivekl at redhat dot com, 2006/06/11
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, raif at swiftdsl dot com dot au, 2006/06/11
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, csm at gnu dot org, 2006/06/11
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, raif at swiftdsl dot com dot au, 2006/06/11
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, csm at gnu dot org, 2006/06/11
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, raif at swiftdsl dot com dot au, 2006/06/11
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, csm at gnu dot org, 2006/06/11
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, raif at swiftdsl dot com dot au, 2006/06/11
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null,
vivekl at redhat dot com <=
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, csm at gnu dot org, 2006/06/12
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, raif at swiftdsl dot com dot au, 2006/06/13
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, vivekl at redhat dot com, 2006/06/13
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, raif at swiftdsl dot com dot au, 2006/06/14
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, vivekl at redhat dot com, 2006/06/15
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, raif at swiftdsl dot com dot au, 2006/06/17
- [Bug crypto/27849] getIV() call on cipher for DESede/CBC returns null, raif at swiftdsl dot com dot au, 2006/06/17