Annotation of embedaddon/strongswan/src/libstrongswan/plugins/gmp/gmp_rsa_public_key.h, revision 1.1
1.1 ! misho 1: /*
! 2: * Copyright (C) 2005-2008 Martin Willi
! 3: * Copyright (C) 2005 Jan Hutter
! 4: * HSR 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: #include <credentials/builder.h>
! 26: #include <credentials/keys/public_key.h>
! 27:
! 28: typedef struct gmp_rsa_public_key_t gmp_rsa_public_key_t;
! 29:
! 30: /**
! 31: * public_key_t implementation of RSA algorithm using libgmp.
! 32: */
! 33: struct gmp_rsa_public_key_t {
! 34:
! 35: /**
! 36: * Implements the public_key_t interface
! 37: */
! 38: public_key_t key;
! 39: };
! 40:
! 41: /**
! 42: * Load a RSA public key using libgmp.
! 43: *
! 44: * Accepts BUILD_RSA_* components.
! 45: *
! 46: * @param type type of the key, must be KEY_RSA
! 47: * @param args builder_part_t argument list
! 48: * @return loaded key, NULL on failure
! 49: */
! 50: gmp_rsa_public_key_t *gmp_rsa_public_key_load(key_type_t type, va_list args);
! 51:
! 52: #endif /** GMP_RSA_PUBLIC_KEY_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>