xref: /dflybsd-src/contrib/wpa_supplicant/src/crypto/dh_group5.h (revision bcf9aa4feb4a2fdf8ceac276d271a57f4b27e13d)
1*3ff40c12SJohn Marino /*
2*3ff40c12SJohn Marino  * Diffie-Hellman group 5 operations
3*3ff40c12SJohn Marino  * Copyright (c) 2009, 2012, Jouni Malinen <j@w1.fi>
4*3ff40c12SJohn Marino  *
5*3ff40c12SJohn Marino  * This software may be distributed under the terms of the BSD license.
6*3ff40c12SJohn Marino  * See README for more details.
7*3ff40c12SJohn Marino  */
8*3ff40c12SJohn Marino 
9*3ff40c12SJohn Marino #ifndef DH_GROUP5_H
10*3ff40c12SJohn Marino #define DH_GROUP5_H
11*3ff40c12SJohn Marino 
12*3ff40c12SJohn Marino void * dh5_init(struct wpabuf **priv, struct wpabuf **publ);
13*3ff40c12SJohn Marino void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ);
14*3ff40c12SJohn Marino struct wpabuf * dh5_derive_shared(void *ctx, const struct wpabuf *peer_public,
15*3ff40c12SJohn Marino 				  const struct wpabuf *own_private);
16*3ff40c12SJohn Marino void dh5_free(void *ctx);
17*3ff40c12SJohn Marino 
18*3ff40c12SJohn Marino #endif /* DH_GROUP5_H */
19