Diffie-Hellman groups.
More...
#include "includes.h"
#include "common.h"
#include "crypto.h"
#include "random.h"
#include "dh_groups.h"
|
#define | DH_GROUP(id, safe) |
|
#define | NUM_DH_GROUPS ARRAY_SIZE(dh_groups) |
|
#define DH_GROUP |
( |
|
id, |
|
|
|
safe |
|
) |
| |
Value:
dh_group ##
id ## _order,
sizeof(
dh_group ##
id ## _order), safe }
Definition: dh_groups.h:8
struct wpabuf* dh_derive_shared |
( |
const struct wpabuf * |
peer_public, |
|
|
const struct wpabuf * |
own_private, |
|
|
const struct dh_group * |
dh |
|
) |
| |
Derive shared Diffie-Hellman key.
- Parameters
-
peer_public | Diffie-Hellman public value from peer |
own_private | Diffie-Hellman private key from dh_init() |
dh | Selected Diffie-Hellman group |
- Returns
- Diffie-Hellman shared key
Initialize Diffie-Hellman handshake.
- Parameters
-
dh | Selected Diffie-Hellman group |
priv | Pointer for returning Diffie-Hellman private key |
- Returns
- Diffie-Hellman public value