Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-301

Missing KeyInfo element when encrypting multiple elements

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Java 1.4.6, Java 1.5.1
    • Fix Version/s: Java 1.4.7, Java 1.5.2
    • Component/s: Java
    • Security Level: Public (Public issues, viewable by everyone)
    • Labels:
      None

      Description

      When encrypting multiple elements using the same XMLCipher, the KeyInfo that was attached to the EncryptedData only appears on the last encrypted element. This is because EncryptedDataImpl.toElement() calls getKeyInfo().getElement() which always returns the same KeyInfo Element. When the KeyInfo is added to the latest EncryptedData, it is reparented and therefore disappears from the previous EncryptedData.

        Attachments

        1. TestBug.java
          2 kB
          Clement Pellerin
        2. TestBug.java
          2 kB
          Clement Pellerin

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              clement_pellerin@ibi.com Clement Pellerin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: