[Bug crypto/23768] doFinal() methods in javax.crypto.Cipher incorrectly resetting cipher state

cvs-commit at developer dot classpath dot org gcc-bugzilla@gcc.gnu.org
Sat Mar 11 05:22:00 GMT 2006



------- Comment #2 from cvs-commit at developer dot classpath dot org  2006-03-11 05:21 -------
Subject: Bug 23768

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Branch:         jessie-nio
Changes by:     Casey Marshall <rsdio@savannah.gnu.org> 06/03/11 05:15:47

Modified files:
        .              : ChangeLog-jessie-nio 
        javax/crypto   : Cipher.java CipherSpi.java 

Log message:
        2006-03-10  Casey Marshall  <csm@gnu.org>

        Fixes PR 23768.
        * javax/crypto/Cipher.java (doFinal, doFinal, doFinal): don't
        reset `state.'
        (doFinal, update): new methods.
        (init, init, init, init): initialize `state' after trying the
        implementation, which can throw an exception.
        * javax/crypto/CipherSpi.java (engineDoFinal, engineUpdate): new
        methods.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog-jessie-nio.diff?only_with_tag=jessie-nio&tr1=1.1.2.2&tr2=1.1.2.3&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/crypto/Cipher.java.diff?only_with_tag=jessie-nio&tr1=1.4&tr2=1.4.6.1&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/crypto/CipherSpi.java.diff?only_with_tag=jessie-nio&tr1=1.2&tr2=1.2.6.1&r1=text&r2=text


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23768



More information about the Gcc-bugs mailing list