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

No need to embed an AlgorithmParameters in AlgorithmId

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 26
    • security-libs
    • None

      AlgorithmId is a pure data type including an OID and some optional parameter bytes. Putting an AlgorithmParameters object there means every time an AlgorithmId is parsed, the AlgorithmParameters::getInstance method is called even if most OIDs do not have accompanying AlgorithmParameters implementations. We can only store encodedParams and move any possible AlgorithmParameters initialization to the callers.

      We can also try to find a better solution to the NULL params.

            Unassigned Unassigned
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: