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

DESKey constructor is parity-adjusting the parameters.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • security-libs
    • beta
    • generic
    • generic

      In the DESKey constructors, we're parity adjusting the data passed in, I believe
      we should be copying it out, then adjusting it.

              this.key = new byte[DESKeySpec.DES_KEY_LEN];
              DESKeyGenerator.setParityBit(key, offset);
              System.arraycopy(key, offset, this.key, 0, DESKeySpec.DES_KEY_LEN);

            wetmore Bradford Wetmore
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: