blob: c236a9df44498bc127b073b051b43103b0c20549 [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * RSA
3 * Copyright (c) 2006, Jouni Malinen <j@w1.fi>
4 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07007 */
8
9#ifndef RSA_H
10#define RSA_H
11
12struct crypto_rsa_key;
13
14struct crypto_rsa_key *
15crypto_rsa_import_public_key(const u8 *buf, size_t len);
16struct crypto_rsa_key *
17crypto_rsa_import_private_key(const u8 *buf, size_t len);
18size_t crypto_rsa_get_modulus_len(struct crypto_rsa_key *key);
19int crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen,
20 struct crypto_rsa_key *key, int use_private);
21void crypto_rsa_free(struct crypto_rsa_key *key);
22
23#endif /* RSA_H */