Diffie-Hellman groups. More...
#include "includes.h"
#include "common.h"
#include "crypto.h"
#include "dh_groups.h"
Go to the source code of this file.
Defines | |
#define | DH_GROUP(id) |
#define | NUM_DH_GROUPS (sizeof(dh_groups) / sizeof(dh_groups[0])) |
Functions | |
struct dh_group * | dh_groups_get (int id) |
struct wpabuf * | dh_init (const struct dh_group *dh, struct wpabuf **priv) |
Initialize Diffie-Hellman handshake. | |
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. |
Diffie-Hellman groups.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file dh_groups.c.
#define DH_GROUP | ( | id | ) |
struct wpabuf* dh_derive_shared | ( | const struct wpabuf * | peer_public, | |
const struct wpabuf * | own_private, | |||
const struct dh_group * | dh | |||
) | [read] |
Derive shared Diffie-Hellman key.
peer_public | Diffie-Hellman public value from peer | |
own_private | Diffie-Hellman private key from dh_init() | |
dh | Selected Diffie-Hellman group |
Definition at line 608 of file dh_groups.c.
Initialize Diffie-Hellman handshake.
dh | Selected Diffie-Hellman group | |
priv | Pointer for returning Diffie-Hellman private key |
Definition at line 556 of file dh_groups.c.