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

Use Integer.rotateLeft() and rotateRight() in crypto implementations

    XMLWordPrintable

Details

    • b07
    • generic
    • generic

    Description

      As part of 4495754, rotateLeft() and rotateRight() methods will be added to the Integer and Long classes. The intention is that these will eventually intrisified by the HotSpot compilers to generate more efficient code on platforms where this is possible (on x86, 1 instruction instead of typically 3).

      Our crypto implementations should be changed to use the new methods where we use hand-assembled rotate using shifts and or. These are mainly (or exclusively?) the various MessageDigest implementations.

      Attachments

        Issue Links

          Activity

            People

              mpowers Mark Powers
              andreas Andreas Sterbenz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: