bug-classpath
[Top][All Lists]
Advanced

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

[Bug crypto/28104] New: Cipher.init(...) does not check if the passed pa


From: mwringe at redhat dot com
Subject: [Bug crypto/28104] New: Cipher.init(...) does not check if the passed parameters are valid
Date: 20 Jun 2006 18:30:53 -0000

Cipher.init(...) does not check if the passed parameters are valid or not.

For example:

        int blocksize = 8;     
        byte[] iv = new byte[blocksize -1];
        encrypt = Cipher.getInstance("DES/CBC/PKCS5Padding", "GNU-CRYPTO");
        encrypt.init(Cipher.ENCRYPT_MODE, key, new IvParameterSpec(iv));

According to the javadocs, a InvalidAlgorithmParameterException should be
thrown as the IV is too short. This is also the behaviour of BouncyCastle.


-- 
           Summary: Cipher.init(...) does not check if the passed parameters
                    are valid
           Product: classpath
           Version: 0.92
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: crypto
        AssignedTo: csm at gnu dot org
        ReportedBy: mwringe at redhat dot com


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





reply via email to

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