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

Use CounterMode intrinsic for AES/GCM

    Details

    • Subcomponent:
    • Resolved In Build:
      b166
    • Verification:
      Not verified

      Backports

        Description

        The GCM mode of operation is essentially CTR mode with an additional operation that provides authenticity. That means that we can reuse parts of the CTR mode code in GCM. The benefit of this arrangement is that there is an intrinsic for AES/CTR that significantly improves the performance of this operation on systems with AES instructions. The current GCM code has a loop that invoked the AES intrinsic one block at a time. It would be much more efficient to invoke the AES/CTR intrinsic on the entire buffer.

          Attachments

          1. gcm_improved.txt
            6 kB
          2. gcm_ctr_patch
            5 kB
          3. gcm_baseline.txt
            6 kB

            Issue Links

              Activity

                People

                • Assignee:
                  ascarpino Anthony Scarpino
                  Reporter:
                  apetcher Adam Petcher (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: