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
20 * @defgroup gmp_rsa_public_key gmp_rsa_public_key
24 #ifndef GMP_RSA_PUBLIC_KEY_H_
25 #define GMP_RSA_PUBLIC_KEY_H_
27 typedef struct gmp_rsa_public_key_t gmp_rsa_public_key_t
;
29 #include <credentials/keys/public_key.h>
32 * public_key_t implementation of RSA algorithm using libgmp.
34 struct gmp_rsa_public_key_t
{
37 * Implements the public_key_t interface
39 public_key_t interface
;
43 * Create the builder for a public key.
45 * @param type type of the key, must be KEY_RSA
46 * @return builder instance
48 builder_t
*gmp_rsa_public_key_builder(key_type_t type
);
50 #endif /*GMP_RSA_PUBLIC_KEY_H_ @}*/