ECDH_size
buflen = ECDH_size(ecdh);
int ECDH_size(const EC_KEY *ecdh);
if ((key_len = ECDH_size(ecdh)) <= 0)