CryptoAPI: Using CryptVerifySignature to verify a signature from openssl with public key

耗尽温柔 提交于 2019-12-04 05:08:30

OK, I solved the problem after lots of trial-and-error.

Both the signature and the public key data, when in their pure byte string form, need to be reversed, i.e. first byte to last position, and so on. Then the above works.

Compile and link the OpenSSL libCrypto statically. It can be done, I've seen this at a former employer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!