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

Document that ISO10126Padding pads with random bytes

XMLWordPrintable

    • Fix Understood
    • b05

      The JCA Standards Names documentation refer to W3C XML Encryption Standard 5.2 which does not mandate or suggest to use random padding. It allows any value. So a possible optimization would be to not use random bytes. If you think random bytes (and therefore non deterministic padding) is a desireable property I would suggest to actually document it in the SunJCE documentation, ex: "This implements padding as defined by the JCA Standard Names using random padding bytes."

            kdriver Kevin Driver
            apetcher Adam Petcher (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: