e471cd067a1903619b33d0757a9d6cf18863c3bb
[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
17 /**
18 * @defgroup gmp_rsa_public_key gmp_rsa_public_key
19 * @{ @ingroup gmp_p
20 */
21
22 #ifndef GMP_RSA_PUBLIC_KEY_H_
23 #define GMP_RSA_PUBLIC_KEY_H_
24
25 typedef struct gmp_rsa_public_key_t gmp_rsa_public_key_t;
26
27 #include <credentials/keys/public_key.h>
28
29 /**
30 * public_key_t implementation of RSA algorithm using libgmp.
31 */
32 struct gmp_rsa_public_key_t {
33
34 /**
35 * Implements the public_key_t interface
36 */
37 public_key_t interface;
38 };
39
40 /**
41 * Create the builder for a public key.
42 *
43 * @param type type of the key, must be KEY_RSA
44 * @return builder instance
45 */
46 builder_t *gmp_rsa_public_key_builder(key_type_t type);
47
48 #endif /*GMP_RSA_PUBLIC_KEY_H_ @}*/