wrong encryption with oxs_token_build_encrypted_data_element
------------------------------------------------------------

                 Key: RAMPARTC-74
                 URL: https://issues.apache.org/jira/browse/RAMPARTC-74
             Project: Rampart/C
          Issue Type: Bug
          Components: Rampart-core
            Reporter: Lukas JOSEFIK
            Assignee: Ruchith Udayanga Fernando


if you encrypt data and use oxs_token_build_encrypted_data_element, there can 
be problem with signed encrypted data verification. Problem is that 
oxs_token_build_encrypted_data_element calls axiom_element_create, which adds 
ecnrypteddata element to the end of children list. but if we consider element X 
and we want encrypt subelement B(<X>0x0a<B>0x0a<X>), encryption ends with 
<X>0x0a0x0a<EncryptedData...><X>. After decryption the data looks 
<X>0x0a0x0a<B><X> and verification fails...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to