2 * Copyright (C) 2009 Martin Willi
3 * Hochschule fuer Technik Rapperswil
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>.
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
17 * @defgroup gcrypt_rsa_public_key gcrypt_rsa_public_key
18 * @{ @ingroup gcrypt_p
21 #ifndef GCRYPT_RSA_PUBLIC_KEY_H_
22 #define GCRYPT_RSA_PUBLIC_KEY_H_
24 typedef struct gcrypt_rsa_public_key_t gcrypt_rsa_public_key_t
;
26 #include <credentials/keys/public_key.h>
29 * public_key_t implementation of RSA algorithm using libgcrypt.
31 struct gcrypt_rsa_public_key_t
{
34 * Implements the public_key_t interface
36 public_key_t interface
;
40 * Create the builder for a public key.
42 * @param type type of the key, must be KEY_RSA
43 * @return builder instance
45 builder_t
*gcrypt_rsa_public_key_builder(key_type_t type
);
47 #endif /** GCRYPT_RSA_PUBLIC_KEY_H_ @}*/