aleksey at aleksey.com
Mon Jul 2 21:09:08 PDT 2007
Sorry, one more idea... If you have all nodes together under
the same parent:
Then you can encrypt the content of the <SomeNode> element
using "content" type encryption:
However, this works only if you want to encrypt the whole
content of the node <SomeNode>.
Aleksey Sanin wrote:
> Yes, I think this is the only way.
> Ed Shallow wrote:
>> Yes that is right.
>> Do I have to encrypt each target node (all have same name) by doing
>> repeated individual calls on each successive node ?
>> -----Original Message-----
>> From: Aleksey Sanin [mailto:aleksey at aleksey.com] Sent: Monday, July
>> 02, 2007 4:32 PM
>> To: Ed Shallow; xmlsec at aleksey.com
>> Subject: Re: [xmlsec] CipherReference
>> Oh, I see... Sorry, I don't think XMLEnc spec supports this. I believe
>> CipherReference lets you to get the encrypted data and put them in place
>> of the EncryptedData. And I believe you ask about "other way around".
>> Ed Shallow wrote:
>>> Hi Aleksey,
>>> I had a look at the test sub-directory. I guess I don't understand the
>>> use of CipherReference then ...
>>> What I need to do is select for encryption, "all" nodes with a
>>> particular name. For example <Salary>1,000,000</Salary> and replaced
>>> them "each" with their own <EncryptedData> element.
>>> Is this done with an Xpath expression and CipherReference ?
>>> Can I use a document and a template for this ?
>>> -----Original Message-----
>>> From: xmlsec-bounces at aleksey.com [mailto:xmlsec-bounces at aleksey.com]
>>> On Behalf Of Aleksey Sanin
>>> Sent: Sunday, July 01, 2007 8:44 PM
>>> To: ed.shallow at pwgsc.gc.ca
>>> Cc: xmlsec at aleksey.com
>>> Subject: Re: [xmlsec] CipherReference
>>>> Do you have an example of CipherReference usage with xmlsec ?
>>> Yes :) Search for CipherReference in the xmlsec folder. For example,
>>> tests\merlin-xmlenc-five\encrypt-element-aes192-cbc-ref uses it.
>>> xmlsec mailing list
>>> xmlsec at aleksey.com
> xmlsec mailing list
> xmlsec at aleksey.com
More information about the xmlsec