wpa_supplicant / hostapd 2.0

dh_groups.h

Go to the documentation of this file.
00001 
00010 #ifndef DH_GROUPS_H
00011 #define DH_GROUPS_H
00012 
00013 struct dh_group {
00014         int id;
00015         const u8 *generator;
00016         size_t generator_len;
00017         const u8 *prime;
00018         size_t prime_len;
00019 };
00020 
00021 const struct dh_group * dh_groups_get(int id);
00022 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv);
00023 struct wpabuf * dh_derive_shared(const struct wpabuf *peer_public,
00024                                  const struct wpabuf *own_private,
00025                                  const struct dh_group *dh);
00026 
00027 #endif /* DH_GROUPS_H */
00028 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines