[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cryptoapi
Subject:    CryptExportPublicKeyInfo ??
From:       JOAG <joagaa () EMIRATES ! NET ! AE>
Date:       2000-01-22 14:09:02
[Download RAW message or body]


Hi,
The last two days I am struggling with exporting the public key (AT_KEYEXCHANGE) . I \
have tried  CryptExportKey and CryptExportPublicKeyInfo : BOOL WINAPI \
CryptExportPublicKeyInfo(  HCRYPTPROV hCryptProv, // in 
DWORD dwKeySpec, // in 
DWORD dwCertEncodingType, // in 
PCERT_PUBLIC_KEY_INFO pInfo, // out 
DWORD *pcbInfo // in, out);
I have used a pointer to a byte array for PCERT_PUBLIC_KEY_INFO and am writing to a \
binary file in VB. When I use the corresponding import statement to import the public \
key info I get errors in CryptVerifySignature. Is this the right way to do it or do I \
have to declare a UDT for PCERT_PUBLIC_KEY_INFO. Documentaion on the publickeyblob \
format also mentions structures such as  BLOBHEADER blobheader;
RSAPUBKEY rsapubkey;
BYTE modulus[rsapubkey.bitlen/8];
Any tips on how I should go ahead with this export / import scenario. Sincere Thanks \
and Regards, Joag.

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic