1189251Ssam/*
2189251Ssam * RSA
3189251Ssam * Copyright (c) 2006, Jouni Malinen <j@w1.fi>
4189251Ssam *
5252726Srpaulo * This software may be distributed under the terms of the BSD license.
6252726Srpaulo * See README for more details.
7189251Ssam */
8189251Ssam
9189251Ssam#ifndef RSA_H
10189251Ssam#define RSA_H
11189251Ssam
12189251Ssamstruct crypto_rsa_key;
13189251Ssam
14189251Ssamstruct crypto_rsa_key *
15189251Ssamcrypto_rsa_import_public_key(const u8 *buf, size_t len);
16189251Ssamstruct crypto_rsa_key *
17189251Ssamcrypto_rsa_import_private_key(const u8 *buf, size_t len);
18189251Ssamsize_t crypto_rsa_get_modulus_len(struct crypto_rsa_key *key);
19189251Ssamint crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen,
20189251Ssam		       struct crypto_rsa_key *key, int use_private);
21189251Ssamvoid crypto_rsa_free(struct crypto_rsa_key *key);
22189251Ssam
23189251Ssam#endif /* RSA_H */
24