blob: abee8eaafbde399e220b806ad3df88c9c7a29448 [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * Diffie-Hellman group 5 operations
Dmitry Shmidt04949592012-07-19 12:16:46 -07003 * Copyright (c) 2009, 2012, Jouni Malinen <j@w1.fi>
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07004 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07007 */
8
9#ifndef DH_GROUP5_H
10#define DH_GROUP5_H
11
12void * dh5_init(struct wpabuf **priv, struct wpabuf **publ);
Dmitry Shmidt04949592012-07-19 12:16:46 -070013void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ);
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070014struct wpabuf * dh5_derive_shared(void *ctx, const struct wpabuf *peer_public,
15 const struct wpabuf *own_private);
16void dh5_free(void *ctx);
17
18#endif /* DH_GROUP5_H */