Check whether the pubkey exists in ossl_ecx_key_dup