How to use CAPI's CryptImportKey with PEM encode public key from OpenSSL?

前端 未结 1 1489
一生所求
一生所求 2021-01-21 06:52

How do I get the Microsoft\'s CryptoAPI CryptImportKey function to import a PEM encoded key? It actually works but CryptDecrypt return

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-21 07:46

    You are using the wrong APIs. RSA_sign() signs a hash; use CryptVerifySignature() to verify it.

    0 讨论(0)
提交回复
热议问题