Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Diffie-Hellman group 5 operations |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 3 | * Copyright (c) 2009, 2012, Jouni Malinen <j@w1.fi> |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 4 | * |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 5 | * This software may be distributed under the terms of the BSD license. |
| 6 | * See README for more details. |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef DH_GROUP5_H |
| 10 | #define DH_GROUP5_H |
| 11 | |
| 12 | void * dh5_init(struct wpabuf **priv, struct wpabuf **publ); |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 13 | void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ); |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 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 */ |