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