[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/43246] New: isParityAdjusted in DESKeySpec and DESedeKeyS
From: |
janda at ccs dot cz |
Subject: |
[Bug classpath/43246] New: isParityAdjusted in DESKeySpec and DESedeKeySpec returns always false |
Date: |
3 Mar 2010 12:39:27 -0000 |
I first met the error while using java-1.4.2-gcj-compat
javax.crypto.spec.DESKeySpec.
I checked in GNU-classpath 0.98 that the error is still here.
The following bad code is currently used in sParityAdjusted method -
/the initial value of parity has to be true; all oddbits values are ok/,
because add-ing false with anything gives always false:
boolean parity = false;
boolean oddbits = false;
...
parity &= oddbits;
...
return parity;
--
Summary: isParityAdjusted in DESKeySpec and DESedeKeySpec returns
always false
Product: classpath
Version: 0.98
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janda at ccs dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43246
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/43246] New: isParityAdjusted in DESKeySpec and DESedeKeySpec returns always false,
janda at ccs dot cz <=