dh_group5.c

Go to the documentation of this file.
00001 
00016 #include "includes.h"
00017 
00018 #include "common.h"
00019 #include "dh_groups.h"
00020 #include "dh_group5.h"
00021 
00022 
00023 void * dh5_init(struct wpabuf **priv, struct wpabuf **publ)
00024 {
00025         *publ = dh_init(dh_groups_get(5), priv);
00026         if (*publ == 0)
00027                 return NULL;
00028         return (void *) 1;
00029 }
00030 
00031 
00032 struct wpabuf * dh5_derive_shared(void *ctx, const struct wpabuf *peer_public,
00033                                   const struct wpabuf *own_private)
00034 {
00035         return dh_derive_shared(peer_public, own_private, dh_groups_get(5));
00036 }
00037 
00038 
00039 void dh5_free(void *ctx)
00040 {
00041 }
00042 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:16:50 2009 for hostapd by  doxygen 1.6.1