messages.getDhConfig #

Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.

Layer 223

messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig;
messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig;
---functions---
messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig;

Parameters #

NameTypeDescription
versionintValue of the version parameter from messages.dhConfig, available at the client
random_lengthintLength of the required random sequence

Result #

messages.DhConfig

Only users can use this method #

Possible errors #

CodeTypeDescription
400RANDOM_LENGTH_INVALIDRandom length invalid.

messages.dhConfig #

New set of configuring parameters.