bug-classpath
[Top][All Lists]
Advanced

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

[Bug crypto/28333] New: CBC Ciphers do not contain the correct Parameter


From: mwringe at redhat dot com
Subject: [Bug crypto/28333] New: CBC Ciphers do not contain the correct ParameterSpec
Date: 11 Jul 2006 02:40:42 -0000

CBC Ciphers do not have the correct ParameterSpec. It should contain an
javax.crypto.spec.IVParameterSpec, but its a
gnu.javax.crypto.jce.spec.BlockCipherParameterSpec instead.

For example, the following code fragment should pass but it fails with an
InvalidParameterSpecException: 

Cipher cipher = Cipher.getInstance("DESede/CBC/NoPadding");
AlgorithmParameters ap = cipher.getParameters();
AlgorithmParameterSpec aps = ap.getParameterSpec(IvParameterSpec.class);

I will write a proper mauve testlet for this tomorrow.


-- 
           Summary: CBC Ciphers do not contain the correct ParameterSpec
           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=28333





reply via email to

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