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

Error in optimized ECC field arithmetic

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:
      None

      Description

      In ecl_gf_c in the ECC code, there is an error in functions ec_GFp_sub_5 and ec_GFp_sub_6. In the if (borrow) block, there should be (5,6) MP_ADD_CARRY operations for ec_GFp_sub_(5,6) (including the first MP_ADD_CARRY_ZERO). Each of these functions is missing one add/carry operation.

      These functions are optimizations that are currently unused. This error will need to be fixed before these functions can be used by new curves (e.g. Brainpool).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                apetcher Adam Petcher (Inactive)
                Reporter:
                apetcher Adam Petcher (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: