]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/wpa/src/crypto/dh_group5.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / wpa / src / crypto / dh_group5.h
1 /*
2  * Diffie-Hellman group 5 operations
3  * Copyright (c) 2009, 2012, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8
9 #ifndef DH_GROUP5_H
10 #define DH_GROUP5_H
11
12 void * dh5_init(struct wpabuf **priv, struct wpabuf **publ);
13 void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ);
14 struct wpabuf * dh5_derive_shared(void *ctx, const struct wpabuf *peer_public,
15                                   const struct wpabuf *own_private);
16 void dh5_free(void *ctx);
17
18 #endif /* DH_GROUP5_H */