4968d7caaf919623141f4604f4a48450b2ff152f
[strongswan.git] / src / libstrongswan / plugins / pgp / pgp_builder.h
1 /*
2 * Copyright (C) 2009 Martin Willi
3 * 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 pgp_public_key pgp_public_key
18 * @{ @ingroup pgp_p
19 */
20
21 #ifndef PGP_BUILDER_H_
22 #define PGP_BUILDER_H_
23
24 #include <credentials/keys/public_key.h>
25
26 /**
27 * Create the builder for a generic or an RSA public key using PGP decoding.
28 *
29 * @param type type of the key, either KEY_ANY or KEY_RSA
30 * @return builder instance
31 */
32 builder_t *pgp_public_key_builder(key_type_t type);
33
34 /**
35 * Create the builder for a generic or RSA private key using PGP decoding.
36 *
37 * @param type type of the key, either KEY_ANY or KEY_RSA
38 * @return builder instance
39 */
40 builder_t *pgp_private_key_builder(key_type_t type);
41
42 #endif /** PGP_BUILDER_H_ @}*/