No need to embed an AlgorithmParameters in AlgorithmId

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 26
    • Component/s: 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.

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

              Created:
              Updated: