How do I get the Microsoft\'s CryptoAPI CryptImportKey function to import a PEM encoded key? It actually works but CryptDecrypt return
CryptImportKey
CryptDecrypt
You are using the wrong APIs. RSA_sign() signs a hash; use CryptVerifySignature() to verify it.
RSA_sign()
CryptVerifySignature()