Hello, I am a bit confused when it comes to asymmetric encryption/decryption. Now I use PKCS7_encrypt() and PKCS7_decrypt() to encrypt using recipient public key and decrypt using the private key. My question is that if they the correct functions to encrypt and decrypt? Or they are supposed to be used for only PKCS7 enveloped Data Structure?
Thanks