Crypto APIs and CryptImportPublicKeyInfo API related question.

From: Nilesh Padbidri (nileshp_at_cybage.com)
Date: 12/22/03

  • Next message: Michel Gallant: "Re: Crypto APIs and CryptImportPublicKeyInfo API related question."
    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.


  • Next message: Michel Gallant: "Re: Crypto APIs and CryptImportPublicKeyInfo API related question."

    Relevant Pages

    • Re: [Alsa-devel] Re: [PATCH 2.6.13.1 1/1] CS5535 AUDIO ALSA driver
      ... I thought of creating an API for coherent SG-buffers, ... The question is whether mmap of non-coherent buffer may ...
      (Linux-Kernel)
    • Re: How to develop a random number generation device
      ... Many operating systens are by design, immune to buffer over-runs modifying unrelated code. ... randomising memory locations) rather than actually preventing the overrun. ... If you try to run a 5-year old Linux binary on a current distribution, ... Linux, and the API is very stable - new API's and system calls are added, but existing ones are seldom changed or removed, and never without very good reason. ...
      (sci.electronics.design)
    • [rfc][patch] fix buffered write deadlocks with extra copy (and a way out?)
      ... API fell on its face because it ended up breaking filesystems and the ... buffer, then a second from temp buffer to actual pagecache. ... I would like more input about this from filesystems people, ...
      (Linux-Kernel)
    • CE5: Accessing shared memory from a 2nd process
      ... I want to be able to access a buffer allocated in shared memory from 2 or + ... trying to read the buffer from the 2nd API the buffer has no data in it. ... What I have done is that my driver has a copy of the buffer pointer that is ... API that is not allocating the buffer cannot read it? ...
      (microsoft.public.windowsce.platbuilder)
    • Re: Socket API performance diff. between Sp2k2 and 2k3
      ... Do you mean the TCP buffer? ... package size and then the whole package size 7 kB when it is file data. ... API on the Sp2002. ... >> Socket API and WinInet API? ...
      (microsoft.public.pocketpc.developer.networking)