Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-541

Encoded DSA public key does not contains the DSA parameters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.2
    • Fix Version/s: 6.0-milestone-1
    • Component/s: Crypto
    • Labels:
      None
    • Tests:
      Unit
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      org.xwiki.crypto.params.cipher.asymmetric.AsymmetricKeyParameters#getEncoded() does not encode the DSA parameters (p, q, g), only y is encoded. This make the DSA key almost useless in the current for of the API, so it is a bug.

      The easy fix is therefore to add these parameters in the encoding. On the long term, it should also be useful to not have them, but a way to add them from another source.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                softec Denis Gervalle
                Reporter:
                softec Denis Gervalle
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: