00001 /*00002 * RSA00003 * Copyright (c) 2006, Jouni Malinen <j@w1.fi>00004 *00005 * This program is free software; you can redistribute it and/or modify00006 * it under the terms of the GNU General Public License version 2 as00007 * published by the Free Software Foundation.00008 *00009 * Alternatively, this software may be distributed under the terms of BSD00010 * license.00011 *00012 * See README and COPYING for more details.00013 */00014
00015 #ifndef RSA_H00016 #define RSA_H00017
00018 struct crypto_rsa_key;
00019
00020 struct crypto_rsa_key *
00021 crypto_rsa_import_public_key(constu8 *buf, size_t len);
00022 struct crypto_rsa_key *
00023 crypto_rsa_import_private_key(constu8 *buf, size_t len);
00024 size_tcrypto_rsa_get_modulus_len(structcrypto_rsa_key *key);
00025 intcrypto_rsa_exptmod(constu8 *in, size_t inlen, u8 *out, size_t *outlen,
00026 structcrypto_rsa_key *key, int use_private);
00027 voidcrypto_rsa_free(structcrypto_rsa_key *key);
00028
00029 #endif /* RSA_H */