importing javax.crypto patch from classpath

Marco Trudel mtrudel@gmx.ch
Fri Oct 27 14:58:00 GMT 2006


Hello all

My javax.crypto fix made it into the classpath trunk. I would like to 
see it in the GCJ trunk too. Without it, JCE is pretty useless.

A testlet is attached and here the suggested ChangeLog entry:

2006-10-23  Marco Trudel <mtrudel@gmx.ch>

* classpath/gnu/javax/crypto/pad/PKCS7.java (unpad): Removed an 
unnecessary test.
* classpath/javax/crypto/CipherOutputStream.java: Re-implemented.
* classpath/gnu/javax/crypto/jce/cipher/CipherAdapter.java
(engineUpdate(byte[], int, int)): Always keep data for unpadding in 
padded decryption mode and check if it is a complete block.
(engineUpdate(byte[], int, int, byte[], int)): Likewise.
(engineDoFinal(byte[], int, int)): In padded decryption mode, take 
partially processed data into account.


I hope someone can commit that for me although Tom is currently away...

thanks
Marco
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TestOfCipherOutputStream.java
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20061027/00b55928/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: crypto-patch4.txt
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20061027/00b55928/attachment.txt>


More information about the Java-patches mailing list