Prototype implementation of IKE key exchange via NTRU encryption
[strongswan.git] / src / libstrongswan / plugins / ntru / ntru_plugin.h
1 /*
2 * Copyright (C) 2013 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 /**
17 * @defgroup ntru_p ntru
18 * @ingroup plugins
19 *
20 * @defgroup ntru_plugin ntru_plugin
21 * @{ @ingroup ntru_p
22 */
23
24 #ifndef NTRU_PLUGIN_H_
25 #define NTRU_PLUGIN_H_
26
27 #include <plugins/plugin.h>
28
29 #include "ntru_crypto/ntru_crypto_drbg.h"
30
31 typedef struct ntru_plugin_t ntru_plugin_t;
32
33 /**
34 * Plugin implementing NTRU-base key exchange
35 */
36 struct ntru_plugin_t {
37
38 /**
39 * implements plugin interface
40 */
41 plugin_t plugin;
42 };
43
44 /**
45 * Return true random bytes
46 *
47 * @param cmd command to be executed
48 * @param out output variable
49 * @result return code
50 */
51 bool ntru_plugin_get_entropy(ENTROPY_CMD cmd, uint8_t *out);
52
53 #endif /** NTRU_PLUGIN_H_ @}*/