miniproto.auth.key_exchange.PQInnerDataDC
miniproto.auth.key_exchange.PQInnerDataDC
Section titled “miniproto.auth.key_exchange.PQInnerDataDC”PQInnerDataDC(pq: bytes, p: bytes, q: bytes, nonce: int, server_nonce: int, new_nonce: int, dc_id: int) -> NonePlaintext p_q_inner_data_dc encrypted into req_DH_params.
The random new_nonce binds every exchange and must stay secret until the
authorization key is established.
Parameters:
- pq (
bytes) – Original big-endian composite value returned by Telegram. - p (
bytes) – First factor ofpqin minimal big-endian form. - q (
bytes) – Second factor ofpqin minimal big-endian form. - nonce (
int) – Client nonce echoed by Telegram. - server_nonce (
int) – Server nonce returned inresPQ. - new_nonce (
int) – Fresh random nonce that binds this key exchange. - dc_id (
int) – Target Telegram DC ID, encoded for test mode when applicable.