[xmlsec] detached encrypted key
varunsekhri at yahoo.co.uk
Fri Oct 29 12:09:39 PDT 2004
Please look at the xml file again.
1) Our cases are different. I encrypted a symmetric
using a public key in the EncryptedKey Element. So
after decryption what i get is key value(it is not
text they are some octets). I read the code of
xmlsec1.2.6. in function xmlSecEncCtxDecrypt, in both
of "content" and "element" xmlSecReplaceNodeBuffer is
( which might be correct too) . I get parser error.
( Reading the code and comments i can say that
xmlSecEncCtxDecrypt was written so that the node
passed in the function will be EncryptedData elment
2) If i tell the parser about those Ids on my own,
then when the xmlsec will read the EncryptedKey or
EncryptedData for decryption, it will also try to
register them, libxml2 would or should flash an error
in that case.
thanks and regards
--- Aleksey Sanin <aleksey at aleksey.com> wrote:
> > My questions are
> > 1. When i try to decrypt the encrypted data
> > in the key info element, the xmlsec tries to
> > the Xpointer expression for the URI attribute of
> > RetreivalMethod element and fails as "EK" is not
> > registered yet.
> Yes. You have to tell the parser that this is an ID
> > 2. When I try to decrypt the encrypted key
> > xmlsec tries to replace the encrypted key element,
> > calling xmlSecReplaceNodeBuffer, even though the
> > attribute says "content". I got the internal
> > error. ( there is no well formed xml data, it is
> > so supposedly fails).
> Which version of xmlsec are you using?
> xmlsec mailing list
> xmlsec at aleksey.com
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
More information about the xmlsec