Closed gaminilesh closed 4 years ago
RSA_size(rsa_key)
is a size value, it can't return NULL
. malloc
allocates memory and return a pointer to allocated memory. That said, depends what's in rsa_key
, RSA_size() may return different value, see https://www.openssl.org/docs/man1.0.2/man3/RSA_size.html
I'm affraid that's all I can say here.
Hello, i develop RSA encryption with publicKey or decryption with privateKey using pod Universal-openssl. The problem is when i call RSA_public_encrypt method the result of " (unsigned char *) to " length is nill. iOS 13 or later RSA_size getting nill and Same Code working with iOS 12.3 earlier.