Jump to content
Tuts 4 You

WinCrypt API - RSA


Recommended Posts

Hi there,

I was trying to implement a simple RSA signature verification scheme.

Fortunately, Microsoft gives an example of using the crypto apis, which does precisely that:


This looks good, but doesnt actually work.

The second api call, CryptGetUserKey() fails. GetLastError() returns "0x8009000d", which is not defined to my knowledge.

am i missing something...?


Link to comment

The error code is:


The key requested by the dwKeySpec parameter does not exist.

It simply means there is no key in your container. Take a look at this sample:

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...