<DIV>Thanks much -- that worked great!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>Monica</DIV>
<DIV><BR><BR><B><I>Aleksey Sanin &lt;aleksey@aleksey.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Ops... Sorry for mistake. This is the correct function:<BR><BR>------------------------------------<BR>xmlSecKeyPtr CreateHmacKey(const xmlSecByte * buf, xmlSecSize size)<BR>{<BR>xmlSecKeyPtr key;<BR>xmlSecKeyDataPtr key_data;<BR>int ret;<BR><BR>key = xmlSecKeyCreate();<BR>if(!key) {<BR>return (NULL);<BR>}<BR><BR>key_data = xmlSecKeyDataCreate(xmlSecKeyDataHmacId);<BR>if(!key_data) {<BR>xmlSecKeyDestroy(key);<BR>return (NULL);<BR>}<BR><BR>ret = xmlSecKeySetValue(key, key_data);<BR>if(ret &lt; 0) {<BR>xmlSecKeyDataDestroy(key_data);<BR>xmlSecKeyDestroy(key);<BR>return (NULL);<BR>}<BR><BR>ret = xmlSecOpenSSLKeyDataHmacSet(key_data, buf, size);<BR>if(ret &lt; 0) {<BR>xmlSecKeyDestroy(key);<BR>return (NULL);<BR>}<BR><BR>return (key);<BR>}<BR><BR>------------------------------------<BR><BR><BR>Aleksey<BR><BR></BLOCKQUOTE><p>
                <hr size=1>Do you Yahoo!?<br><a
href="http://vote.yahoo.com">vote.yahoo.com</a> - Register online to vote today!