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

Encoded DSA public key does not contains the DSA parameters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.0-milestone-1
    • 5.4.2
    • Crypto
    • None
    • Unit
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: