In the code I often use OpenSSL resources: RSA, EC_KEY, EVP_PPKEY, so on. I know there are designated functions for creating and deleting them:
RSA_new()
RSA_free(RSA*)
However, are these functions enough to ensure the secrets don't remain in the memory - e.g. the memory is scrubbed/zeroed - if, say, an attacker would scan in?
In other words, what is the proper way in OpenSSL to remove secrets from memory?
(any documentation links would be awesome, I'm reading through the sources, but a somewhat official statement would help)