OK.  If i want to convert to binary in order to use 
<table class="variablelist" cellspacing="0" cellpadding="4" border="0">
<tbody>
<tr>
<td valign="top" align="left"><a name="AEN6201"><span style="WHITE-SPACE: nowrap"><var class="LITERAL">xmlSecKeyDataFormatBinary</var></span></a></td>
<td valign="top" align="left">
<p>the binary key data</p></td></tr></tbody></table>
<div>how should I go about doing this?</div>
<div>&nbsp;</div>
<div>Actually I converted to base64 and sent <a name="AEN6201"><span style="WHITE-SPACE: nowrap"><var class="LITERAL">xmlSecKeyDataFormatBinary</var></span></a>&nbsp;as the format but still i got the same error.</div>
<div>&nbsp;</div>
<div>When I used one of the other formats like xmlSecKeyDataFormatPEM, xmlSecKeyDataFormatDER while passing the base 64 encoded data, I got the following&nbsp; error</div>
<div>func=:file=..\src\openssl\app.c:line=244:obj=unknown:subj=PEM_read_bio_PrivateKey and PEM_read_bio_PUBKEY:error=4:crypto library function failed:<br>func=:file=..\src\openssl\app.c:line=194:obj=unknown:subj=xmlSecOpenSSLAppKeyLoa
<br>dBIO:error=1:xmlsec library function failed:</div>
<div>Regards</div>
<div>Yesh<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 12/18/06, <b class="gmail_sendername">Aleksey Sanin</b> &lt;<a href="mailto:aleksey@aleksey.com">aleksey@aleksey.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">OK, This is not compatible with any format directly supported by<br>xmlsec. Youll have to do conversion yourself.
<br><br>Aleksey<br><br>Yeshwanth C wrote:<br>&gt; typedef struct _CRYPT_BIT_BLOB {<br>&gt;&nbsp;&nbsp; DWORD cbData;<br>&gt;&nbsp;&nbsp; BYTE* pbData;<br>&gt;&nbsp;&nbsp; DWORD cUnusedBits;<br>&gt; } CRYPT_BIT_BLOB,<br>&gt; *PCRYPT_BIT_BLOB;<br>&gt; Thisis one of the structures that gives u the public key
<br>&gt; The public key is in pbData.<br>&gt; -yesh<br>&gt;<br>&gt;<br>&gt; On 12/18/06, *Aleksey Sanin* &lt;<a href="mailto:aleksey@aleksey.com">aleksey@aleksey.com</a><br>&gt; &lt;mailto:<a href="mailto:aleksey@aleksey.com">
aleksey@aleksey.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; What is the binary format you get from MS API?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Aleksey<br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; xmlsec mailing list<br>&gt; <a href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a><br>&gt; <a href="http://www.aleksey.com/mailman/listinfo/xmlsec">
http://www.aleksey.com/mailman/listinfo/xmlsec</a><br></blockquote></div><br>