Another idea: Did you notice this bit on the COPP page?

The base64-encoded array is in big-endian order, whereas the CryptoAPI
expects the number in little-endian order, so you need to swap the
byte order of the array that is returned from CryptStringToBinary. The
modulus is 256 bytes, but the decoded byte array might be less than
256 bytes. If so, you will need to allocate a new array that is 256
bytes, copy the data into the new array, and pad the front of the
array with zeros. The exponent is a DWORD (4-byte) value.

After you have the modulus and exponent values, you can import the key
into the default cryptographic service provider (CSP), as shown in the
following code:


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to