Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6832016

{DigestMD5Base,Des3DkCrypto}.setParityBit should use Integer.bitCount

XMLWordPrintable

    • b62
    • generic
    • generic

      DigestMD5Base.setParityBit and Des3DkCrypto.setParityBit should use the Integer.bitCount method, as e.g. DESKeyGenerator.setParityBit does. The implementation would be much cleaner and faster, especially with HS15 on newer CPUs that implement a population count instruction (see 6378821).

            weijun Weijun Wang
            twisti Christian Thalinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: