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

Use CounterMode intrinsic for AES/GCM

XMLWordPrintable

    • b166
    • Not verified

        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.

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

              ascarpino Anthony Scarpino
              apetcher Adam Petcher (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: