wpa_supplicant / hostapd 2.0
Data Structures | Functions

dh_groups.h File Reference

Diffie-Hellman groups. More...

Go to the source code of this file.

Data Structures

struct  dh_group

Functions

struct dh_groupdh_groups_get (int id)
struct wpabufdh_init (const struct dh_group *dh, struct wpabuf **priv)
 Initialize Diffie-Hellman handshake.
struct wpabufdh_derive_shared (const struct wpabuf *peer_public, const struct wpabuf *own_private, const struct dh_group *dh)
 Derive shared Diffie-Hellman key.

Detailed Description

Diffie-Hellman groups.

Copyright
Copyright (c) 2007, Jouni Malinen <j@w1.fi>

This software may be distributed under the terms of the BSD license. See README for more details.


Function Documentation

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.

Parameters:
peer_publicDiffie-Hellman public value from peer
own_privateDiffie-Hellman private key from dh_init()
dhSelected Diffie-Hellman group
Returns:
Diffie-Hellman shared key
struct wpabuf* dh_init ( const struct dh_group dh,
struct wpabuf **  priv 
) [read]

Initialize Diffie-Hellman handshake.

Parameters:
dhSelected Diffie-Hellman group
privPointer for returning Diffie-Hellman private key
Returns:
Diffie-Hellman public value
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines