2 * Copyright (C) 2005-2008 Martin Willi
3 * Copyright (C) 2005 Jan Hutter
4 * Hochschule fuer Technik Rapperswil
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>.
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
18 * @defgroup gmp_rsa_public_key gmp_rsa_public_key
22 #ifndef GMP_RSA_PUBLIC_KEY_H_
23 #define GMP_RSA_PUBLIC_KEY_H_
25 typedef struct gmp_rsa_public_key_t gmp_rsa_public_key_t
;
27 #include <credentials/keys/public_key.h>
30 * public_key_t implementation of RSA algorithm using libgmp.
32 struct gmp_rsa_public_key_t
{
35 * Implements the public_key_t interface
37 public_key_t interface
;
41 * Create the builder for a public key.
43 * @param type type of the key, must be KEY_RSA
44 * @return builder instance
46 builder_t
*gmp_rsa_public_key_builder(key_type_t type
);
48 #endif /*GMP_RSA_PUBLIC_KEY_H_ @}*/