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

Allocate BadPaddingException only if it will be thrown

    XMLWordPrintable

Backports

    Description

      The class RSAPadding always creates a BadPaddingException object even when it's not needed. Its callers, e.g. RSA Signature and Cipher impls, do not always propagate this BadPaddingException object upwards even when it’s thrown by the RSAPadding class. Thus, for efficiency purpose, we can update the RSAPadding class to indicate pass/fail of the padding operations. The callers can then check the returned status and proceed accordingly.

      Attachments

        Issue Links

          Activity

            People

              valeriep Valerie Peng
              cslucas Cesar Soares
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: