<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I need to load the hmac key to sign the XML document. I searched the mailing list, and I found the following question/response below. However, I still have some questions that I'm unclear about:</DIV>
<DIV> </DIV>
<DIV>(a) I looked at this function: </DIV>
<DIV> </DIV>
<DIV>int xmlSecOpenSSLKeyDataHmacSet(<A href="http://www.aleksey.com/xmlsec/api/xmlsec-keysdata.html#XMLSECKEYDATA">xmlSecKeyDataPtr</A> data, const <A href="http://www.aleksey.com/xmlsec/api/xmlsec-xmlsec.html#XMLSECBYTE">xmlSecByte</A> *buf, <A href="http://www.aleksey.com/xmlsec/api/xmlsec-xmlsec.html#XMLSECSIZE">xmlSecSize</A> bufSize);</DIV>
<DIV> </DIV>
<DIV>The API documentation mentioned that data is the pointer to the HMAC key data and buf is the pointer to the key value. I'm unclear about the difference between these two. So, buf stores the HMAC key? What is the xmlSecKeyDataPtr data?</DIV>
<DIV> </DIV>
<DIV>From the API documentation, xmlSecKeyData is the following structure. What is this "xmlSecKeyDataId" value? Do I need to set it?</DIV>
<DIV> </DIV>
<DIV>struct xmlSecKeyData {<BR> xmlSecKeyDataId                        id;<BR> void*                                reserved0;<BR> void*                                reserved1;<BR>};</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks for your help,</DIV>
<DIV>Monica</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>>Probably you need this function:<BR><BR>><A href="http://www.aleksey.com/xmlsec/api/xmlsec-openssl->crypto.html#XMLSECOPENSSLKEYDATAHMACSET">http://www.aleksey.com/xmlsec/api/xmlsec-openssl->crypto.html#XMLSECOPENSSLKEYDATAHMACSET</A><BR><BR>>Aleksey<BR></DIV>
<DIV> </DIV>
<DIV>>Hi,<BR><BR>>I would like to sign a node with Hmac-sha1. With the key (already<BR>>computed from a shared secret) in a char array (not as xmlSecKey) I<BR>>construct the template I need before calling the signing function. My<BR>>problem is that I am not able to load that key to the dsigCtx after<BR>>creating the context and before calling xmlSecDSigCtxSign.<BR><BR>>This step might be easy but I haven't been able to do it after trying,<BR>>reading the API reference and searching in mail lists.<BR><BR>>Thanks,<BR> >- -Guillermo<BR></DIV><p>
                <hr size=1>Do you Yahoo!?<br><a
href="http://vote.yahoo.com">vote.yahoo.com</a> - Register online to vote today!