libssl: Eliminate as much use of EVP_PKEY_size() as possible