Re: Importing a Symmetric Key into the Microsoft Base Smart Card Crypto Provider




"Milton Kuo" <milton.kuo@xxxxxxxxxxxxxxxxx> wrote in message
news:#OMWeSLaGHA.3408@xxxxxxxxxxxxxxxxxxxxxxx
I am having problems with getting Outlook Express to decrypt an e-mail
message using the Microsoft Base Smart Card Crypto Provider, which
communicates with smart cards using a card module I have written.

Using a utility to trace Crypto API calls made by Outlook Express, I
see that the call to CryptImportKey is failing with GetLastError()
returning 0x8009000A ("Invalid type specified."). The key being
imported into the CSP is a Triple-DES key that is encrypted with a
public RSA key. Here is the sequence of Crypto API calls made by
Outlook Express when decrypting the e-mail message:

Milton,

Are you sure that the "Microsoft Base Smart Card Crypto Provider" supports
3DES? If the Smart Card variety is anything like its cousin, then I know it
doesn't.

Is there an Enhanced Smart Card Provider? That should work.

hth,
tlviewer


.



Relevant Pages