EVP & TLS: Add necessary EC_KEY data extraction functions, and use them