X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libeap%2Fsrc%2Ftls%2Frsa.h;fp=libeap%2Fsrc%2Ftls%2Frsa.h;h=b65818ee1546a4f94002ccceff61351c1fba971a;hb=f3746d009c6d7f50025af1f58a85e5fee9680be6;hp=ac50dfd69d3e67e93d7d128e85246c17e82f7fd9;hpb=244f18d04aaf29e68495b5ffeb40ef5cca50942f;p=mech_eap.git diff --git a/libeap/src/tls/rsa.h b/libeap/src/tls/rsa.h index ac50dfd..b65818e 100644 --- a/libeap/src/tls/rsa.h +++ b/libeap/src/tls/rsa.h @@ -2,14 +2,8 @@ * RSA * Copyright (c) 2006, Jouni Malinen * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Alternatively, this software may be distributed under the terms of BSD - * license. - * - * See README and COPYING for more details. + * This software may be distributed under the terms of the BSD license. + * See README for more details. */ #ifndef RSA_H @@ -20,6 +14,9 @@ struct crypto_rsa_key; struct crypto_rsa_key * crypto_rsa_import_public_key(const u8 *buf, size_t len); struct crypto_rsa_key * +crypto_rsa_import_public_key_parts(const u8 *n, size_t n_len, + const u8 *e, size_t e_len); +struct crypto_rsa_key * crypto_rsa_import_private_key(const u8 *buf, size_t len); size_t crypto_rsa_get_modulus_len(struct crypto_rsa_key *key); int crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen,