2019-05-03 21:10:09 +02:00
|
|
|
---
|
|
|
|
title: messages.dhConfig
|
2019-12-27 17:48:04 +01:00
|
|
|
description: New set of configuring parameters.
|
2019-05-03 21:10:09 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: messages.dhConfig
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
New set of configuring parameters.
|
2019-05-03 21:10:09 +02:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2019-12-27 17:48:04 +01:00
|
|
|
|g|[int](../types/int.md) | Yes|New value **prime**, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)|
|
|
|
|
|p|[bytes](../types/bytes.md) | Yes|New value **primitive root**, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)|
|
|
|
|
|version|[int](../types/int.md) | Yes|Vestion of set of parameters|
|
|
|
|
|random|[bytes](../types/bytes.md) | Yes|Random sequence of bytes of assigned length|
|
2019-05-03 21:10:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [messages\_DhConfig](../types/messages_DhConfig.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$messages_dhConfig = ['_' => 'messages.dhConfig', 'g' => int, 'p' => 'bytes', 'version' => int, 'random' => 'bytes'];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
messages_dhConfig={_='messages.dhConfig', g=int, p='bytes', version=int, random='bytes'}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|