
User A executes messages.getDhConfig to obtain the Diffie-Hellman parameters: a prime p, and a high-order element g.Įxecuting this method before each new key generation procedure is of vital importance. Let us consider the following scenario: User A would like to initiate end-to-end encrypted communication with User B. Keys are generated using the Diffie-Hellman protocol.

See also: MTProto 2.0: Cloud Chats, server-client encryption Key Generation 12.1024 padding bytes are used instead of 0.15 padding bytes in v.1.0.

