[xmlsec] extraction of DSA key value from XML?

Aleksey Sanin aleksey at aleksey.com
Fri Oct 7 18:10:20 PDT 2005


Try this

 > char * key_value_str =
 > "<ds:DSAKeyValue xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>
 > <ds:P>/X9TgR11EilS30qcLuzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F
 > 9bow9subVWzXgTuAHTRv8mZgt2uZUKWkn5/oBHsQIsJPu6nX/rfGG/g7V+fG
 > qKYVDwT7g/bTxR7DAjVUE1oWkTL2dfOuK2HXKu/yIgMZndFIAcc=</ds:P>
 > <ds:Q>l2BQjxUjC8yykrmCouuEC/BYHPU=</ds:Q>
 > <ds:G>9+GghdabPd7LvKtcNrhXuXmUr7v6OuqC+VdMCz0HgmdRWVeOutRZT+Z
 > xBxCBgLRJFnEj6EwoFhO3zwkyjMim4TwWeotUfI0o4KOuHiuzpnWRbqN/C/oh
 > NWLx+2J6ASQ7zKTxvqhRkImog9/hWuWfBpKLZl6Ae1UlZAFMO/7PSSo=</ds:G>
 > <ds:Y>nbnmFi2rWlqgvcV1uyYLf5a+kLEh+f6z7W2mUupoYvXs215txf78P8zRw
 > vq71i5Z3XeR37bimq3FusP8W7eOrSQw7DmbMYJcIBNLE1UHLczPzXhxVjuLhsz9
 > Mp8LaJTYJhzuh1osRtvQBDy/t7mrKTzw+vJpsRf3M7/9eW1M01A=</ds:Y>
 > </ds:DSAKeyValue>";

Aleksey



More information about the xmlsec mailing list