This sample shows how to use PEM encoded RSA keys (both public and private) to perform cryptographic operations with Crypto API.
Here is the source: capi_pem.cpp
The Cryptology ePrint Archive provides rapid access to recent research in cryptology. It's hosted by the International Association for Cryptologic Research. The latest articles can be accessed by clicking here.