Crypto API and W2K problem
- From: "Frank Perry" <FrankPerry@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Jun 2005 17:59:02 -0700
I'm trying to send data between Pocket PCs and W2K and not having any success.
I need to exchange keys between the two. I have programs on both platforms
that creates key blobs. When I copy them from one platform to another, they
fail. The basic operation on both sides is:
CryptAcquireContext
CryptGenKey for the the exchange key
CryptGenKey for the session key
CryptExportKey for both - this is for testing. The real program will not
send both keys
Write the keys to a file
Use the session key to encrypt the data
Write the data to the file.
The other end:
Reads the exchange key blob
Reads the session key blob
CryptImportKey the exchange key
CryptImportKey the session key
Here it fails. I get a NTE_BAD_KEY error when I try it from one OS to the
other. The program continues and decrypts the data correctly on the same OS.
Any ideas? It's driving me batty. I'm using the Crypto API built in to
both. Is there a difference that the documentation doesn't mention about the
algorithyms they use?
Any thoughts will be appreciated.
--
Frank Perry
LavaLeaf Software
.
- Follow-Ups:
- RE: Crypto API and Not W2K problem
- From: Frank Perry
- RE: Crypto API and Not W2K problem
- Prev by Date: Re: Process viewer
- Next by Date: MAC Address of Pocket PC
- Previous by thread: Process viewer
- Next by thread: RE: Crypto API and Not W2K problem
- Index(es):
Relevant Pages
|