OK. If i want to convert to binary in order to use
xmlSecKeyDataFormatBinary
the binary key data
how should I go about doing this?
Actually I converted to base64 and sent xmlSecKeyDataFormatBinary as the
format but still i got the same error.
When I used one of the other formats like xmlSecKeyDataFormatPEM,
xmlSecKeyDataFormatDER while passing the base 64 encoded data, I got the
following error
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:
func=:file=..\src\openssl\app.c:line=194:obj=unknown:subj=xmlSecOpenSSLAppKeyLoa
dBIO:error=1:xmlsec library function failed:
Regards
Yesh
On 12/18/06, Aleksey Sanin <[EMAIL PROTECTED]> wrote:
OK, This is not compatible with any format directly supported by
xmlsec. Youll have to do conversion yourself.
Aleksey
Yeshwanth C wrote:
> typedef struct _CRYPT_BIT_BLOB {
> DWORD cbData;
> BYTE* pbData;
> DWORD cUnusedBits;
> } CRYPT_BIT_BLOB,
> *PCRYPT_BIT_BLOB;
> Thisis one of the structures that gives u the public key
> The public key is in pbData.
> -yesh
>
>
> On 12/18/06, *Aleksey Sanin* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> What is the binary format you get from MS API?
>
> Aleksey
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> xmlsec mailing list
> [email protected]
> http://www.aleksey.com/mailman/listinfo/xmlsec
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec