aquaticprime

Linking to libcrypto for Leopard?

蓝咒 提交于 2019-12-18 02:45:07
问题 I am using Mac OS X 10.6 SDK and my deployment target is set to Mac OS 10.5. I'm linking to libcrypto (AquaticPrime requires this) and found out that my app doesn't launch on Leopard. The error is dyld: Library not loaded: /usr/lib/libcrypto.0.9.8.dylib I've tried the following workarounds but none of them work: Linking directly to libcrypto.0.9.7.dylib (the 10.6 SDK refuses to link directly with libcrypto.0.9.7.dylib . Copying the 10.5 SDK's version of libcrypto.0.9.7.dylib to the 10.6 lib

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

痞子三分冷 提交于 2019-12-05 22:39:15
问题 I am trying to port the AquaticPrime framework for Mac to Windows. On the Mac, it uses the opensll library, and I try to understand how to port this to Windows, where I have to use the CryptoAPI, I guess. I mainly need the code for validation of the generated signature with a given public key. Here's how verification is done with openssl: inputs: license data, public key and signature, both 128 bytes long. A SHA1 digest is calculated from the license data. A RSA context is set up with the

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

耗尽温柔 提交于 2019-12-04 05:08:30
I am trying to port the AquaticPrime framework for Mac to Windows. On the Mac, it uses the opensll library, and I try to understand how to port this to Windows, where I have to use the CryptoAPI, I guess. I mainly need the code for validation of the generated signature with a given public key. Here's how verification is done with openssl: inputs: license data, public key and signature, both 128 bytes long. A SHA1 digest is calculated from the license data. A RSA context is set up with the public key data RSA_public_decrypt() is called, given the RSA key and the signature, which returns a 20