[cp-patches] RFC: Updated patch for PR27849 and related issues

Vivek Lakshmanan vivekl at redhat.com
Fri Jun 16 00:32:37 UTC 2006


Hi,
I am attaching a patch that follows the behaviour outlined in the JDK 
javadoc for  javax.crypto.CipherSpi's engineInit methods. I have already 
committed a test case 
(gnu.testlet.gnu.javax.crypto.jce.TestOfCipherEngineInit) that models 
this logic.
Issues related to PR27849 have been addressed here. Comments are welcome.
Thanks,
Vivek

Changelog:

2006-06-15  Vivek Lakshmanan  <vivekl at redhat.com>

	* gnu/javax/crypto/jce/cipher/CipherAdapter.java
	(engineInit(int, Key, AlgorithmParameterSpec, SecureRandom)): When
	param is null, use random or default information when possible.
	(engineInit(int, Key, SecureRandom)): Seperate common initialization
	logic into engineInitHandler and reuse the code in
	engineInit(int, Key, AlgorithmSpec, SecureRandom). 
	(engineInitHandler): New method.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: classpath-gnu-javax-crypto-jce-CipherAdapter.patch
Type: text/x-patch
Size: 3454 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060615/fb777eed/classpath-gnu-javax-crypto-jce-CipherAdapter.bin


More information about the Classpath-patches mailing list