Yes, it is possible. If you know how to exchange symmetric (DES, HMAC, AES,...) keys between Alice and Bob then you can specify the key using <ds:KeyName> element of <ds:KeyInfo>. In particular, in XMLSec case, Alice should load the key into keys manager and add <ds:KeyName> node when you are signing/encrypting document. Bob simply loads this key into keys manager and XMLSec "magically" finds it when it decrypts/verifies the message.
Aleksey. [EMAIL PROTECTED] wrote: >Hi, > >I wonder if it's possible to use MAC algorithms (with >secret keys) instead of public key algorithms in XMLsec? > >In the keys.h-file I only see the key types "public", "private" >and the generic type "any". >Would it be possible to - for example - read a secret key >from a file and sign a XML file with this key and TripleDES? >How would that work? > >Any help appreciated >Hans-Juergen Heinrich > >---------------------------------- >Dr. Hans-J�rgen Heinrich >System engineer, 4TE3 >Giesecke & Devrient GmbH, Truderinger Stra�e 15, D-81607 M�nchen >Phone: +49 89 4119-2625, FAX: +49 89 4119-1629 >mailto:[EMAIL PROTECTED] >http://www.gieseckedevrient.com > >_______________________________________________ >xmlsec mailing list >[EMAIL PROTECTED] >http://www.aleksey.com/mailman/listinfo/xmlsec >
