check ecdh pointer