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

SunJCE provider should throw exceptions for unsupported mode and padding combinations

XMLWordPrintable

    • b08
    • generic
    • generic

      SunJCE provider does not support CTR, CTS, and GCM modes with PKCS5Padding. However, the current implementation will silently ignore the specified PKCS5Padding and return implementations which use no padding. This should be fixed. When Cipher.getInstance(...) is called upon SunJCE provider with these unsupported mode and padding combination, an exception should be thrown.

      Proof of concept:

          Cipher.getInstance("AES/GCM/PKCS5Padding");

      does not fail.

            valeriep Valerie Peng
            valeriep Valerie Peng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: