updated Doxyfile
[strongswan.git] / src / libstrongswan / plugins / gmp / gmp_rsa_public_key.h
1 /*
2 * Copyright (C) 2005-2008 Martin Willi
3 * Copyright (C) 2005 Jan Hutter
4 * Hochschule fuer Technik Rapperswil
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 *
16 * $Id$
17 */
18
19 /**
20 * @defgroup gmp_rsa_public_key gmp_rsa_public_key
21 * @{ @ingroup gmp_p
22 */
23
24 #ifndef GMP_RSA_PUBLIC_KEY_H_
25 #define GMP_RSA_PUBLIC_KEY_H_
26
27 typedef struct gmp_rsa_public_key_t gmp_rsa_public_key_t;
28
29 #include <credentials/keys/public_key.h>
30
31 /**
32 * public_key_t implementation of RSA algorithm using libgmp.
33 */
34 struct gmp_rsa_public_key_t {
35
36 /**
37 * Implements the public_key_t interface
38 */
39 public_key_t interface;
40 };
41
42 /**
43 * Create the builder for a public key.
44 *
45 * @param type type of the key, must be KEY_RSA
46 * @return builder instance
47 */
48 builder_t *gmp_rsa_public_key_builder(key_type_t type);
49
50 #endif /** GMP_RSA_PUBLIC_KEY_H_ @}*/