diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2009-01-15 02:11:43 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2009-01-15 02:11:43 +0000 |
| commit | 17914a6ec9e4814998abdaec5a947b6a78709a19 (patch) | |
| tree | 8c3ad22857baac937ba8379bec2beeb9dc626139 /rsa.h | |
| parent | be6a4d63a5bc2be6043e1ea22d5ecf7105c5923c (diff) | |
Notes
Diffstat (limited to 'rsa.h')
| -rw-r--r-- | rsa.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/rsa.h b/rsa.h new file mode 100644 index 000000000000..ac50dfd69d3e --- /dev/null +++ b/rsa.h @@ -0,0 +1,29 @@ +/* + * RSA + * Copyright (c) 2006, Jouni Malinen <j@w1.fi> + * + * 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. + */ + +#ifndef RSA_H +#define RSA_H + +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_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, + struct crypto_rsa_key *key, int use_private); +void crypto_rsa_free(struct crypto_rsa_key *key); + +#endif /* RSA_H */ |
