type github.com/gotd/td/internal/exchange.ClientExchangeResult

41 uses

	github.com/gotd/td/internal/exchange (current package)
		client.go#L22: type ClientExchangeResult struct {
		client_flow.go#L18: func (c ClientExchange) Run(ctx context.Context) (ClientExchangeResult, error) {
		client_flow.go#L22: 		return ClientExchangeResult{}, errors.Wrap(err, "client nonce generation")
		client_flow.go#L28: 		return ClientExchangeResult{}, errors.Wrap(err, "write ReqPqMultiRequest")
		client_flow.go#L35: 		return ClientExchangeResult{}, errors.Wrap(err, "read ResPQ response")
		client_flow.go#L39: 		return ClientExchangeResult{}, errors.New("ResPQ nonce mismatch")
		client_flow.go#L57: 		return ClientExchangeResult{}, ErrKeyFingerprintNotFound
		client_flow.go#L66: 		return ClientExchangeResult{}, errors.New("server provided bad pq")
		client_flow.go#L74: 		return ClientExchangeResult{}, errors.Wrap(err, "decompose pq")
		client_flow.go#L86: 		return ClientExchangeResult{}, errors.Wrap(err, "generate new nonce")
		client_flow.go#L101: 		return ClientExchangeResult{}, err
		client_flow.go#L107: 		return ClientExchangeResult{}, errors.Wrap(err, "encrypted_data generation")
		client_flow.go#L122: 		return ClientExchangeResult{}, errors.Wrap(err, "write ReqDHParamsRequest")
		client_flow.go#L127: 		return ClientExchangeResult{}, errors.Wrap(err, "read ServerDHParams message")
		client_flow.go#L133: 		return ClientExchangeResult{}, errors.Wrap(err, "decode ServerDHParams message")
		client_flow.go#L139: 		return ClientExchangeResult{}, err
		client_flow.go#L145: 			return ClientExchangeResult{}, errors.New("ServerDHParamsOk nonce mismatch")
		client_flow.go#L148: 			return ClientExchangeResult{}, errors.New("ServerDHParamsOk server nonce mismatch")
		client_flow.go#L155: 			return ClientExchangeResult{}, errors.Wrap(err, "exchange answer decrypt")
		client_flow.go#L161: 			return ClientExchangeResult{}, err
		client_flow.go#L164: 			return ClientExchangeResult{}, errors.New("ServerDHInnerData nonce mismatch")
		client_flow.go#L167: 			return ClientExchangeResult{}, errors.New("ServerDHInnerData server nonce mismatch")
		client_flow.go#L173: 			return ClientExchangeResult{}, errors.Wrap(err, "check DH params")
		client_flow.go#L181: 			return ClientExchangeResult{}, errors.Wrap(err, "number b generation")
		client_flow.go#L188: 			return ClientExchangeResult{}, errors.Wrap(err, "key exchange failed: invalid params")
		client_flow.go#L200: 			return ClientExchangeResult{}, err
		client_flow.go#L204: 			return ClientExchangeResult{}, errors.Wrap(err, "exchange answer encrypt")
		client_flow.go#L214: 			return ClientExchangeResult{}, errors.Wrap(err, "write SetClientDHParamsRequest")
		client_flow.go#L222: 			return ClientExchangeResult{}, errors.Wrap(err, "read DhGen message")
		client_flow.go#L227: 			return ClientExchangeResult{}, errors.Wrap(err, "decode DhGen message")
		client_flow.go#L232: 			return ClientExchangeResult{}, errors.Wrap(err, "decode DhGen answer")
		client_flow.go#L237: 				return ClientExchangeResult{}, errors.New("DhGenOk nonce mismatch")
		client_flow.go#L240: 				return ClientExchangeResult{}, errors.New("DhGenOk server nonce mismatch")
		client_flow.go#L252: 				return ClientExchangeResult{}, errors.New("key exchange verification failed: hash mismatch")
		client_flow.go#L258: 				return ClientExchangeResult{}, err
		client_flow.go#L261: 			return ClientExchangeResult{
		client_flow.go#L267: 			return ClientExchangeResult{}, errors.Errorf("retry required: %x", v.NewNonceHash2)
		client_flow.go#L269: 			return ClientExchangeResult{}, errors.Errorf("dh_hen_fail: %x", v.NewNonceHash3)
		client_flow.go#L271: 			return ClientExchangeResult{}, errors.Errorf("unexpected SetClientDHParamsRequest result %T", v)
		client_flow.go#L274: 		return ClientExchangeResult{}, errors.New("server respond with server_DH_params_fail")
		client_flow.go#L276: 		return ClientExchangeResult{}, errors.Errorf("unexpected ReqDHParamsRequest result %T", p)