Crypto APIs and CryptImportPublicKeyInfo API related question.
From: Nilesh Padbidri (nileshp_at_cybage.com)
Date: 12/22/03
- Previous message: Sekar: "Windows Credential Manager help"
- Next in thread: Michel Gallant: "Re: Crypto APIs and CryptImportPublicKeyInfo API related question."
- Reply: Michel Gallant: "Re: Crypto APIs and CryptImportPublicKeyInfo API related question."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 22 Dec 2003 17:30:28 +0530
Hi EB,
I am creating a simple chat application for academic purposes. This
application makes use of Crypto APIs.
Now the client side of the chat application exports its public key in a
buffer by calling the API CryptExportPublicKeyInfo (.., AT_KEYEXCHANGE, ...,
... ) and then sends this buffer to the server.
The server does a receive and tries to import this buffer by calling the API
CryptImportPublicKeyInfo. However the CryptImportPublicKeyInfo fails with
error code 0x8009310b - "ASN1 bad tag value met."
I guess the reason why this API fails is because there are references to
pointers in the CERT_PUBLIC_KEY_INFO structure which do not get transmitted.
How can I make my chat application work.
Thanks & Regards,
Nilesh Padbidri.
- Previous message: Sekar: "Windows Credential Manager help"
- Next in thread: Michel Gallant: "Re: Crypto APIs and CryptImportPublicKeyInfo API related question."
- Reply: Michel Gallant: "Re: Crypto APIs and CryptImportPublicKeyInfo API related question."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|