1181834Sroberto/* 2181834Sroberto * RSA 3181834Sroberto * Copyright (c) 2006, Jouni Malinen <j@w1.fi> 4181834Sroberto * 5181834Sroberto * This software may be distributed under the terms of the BSD license. 6181834Sroberto * See README for more details. 7181834Sroberto */ 8181834Sroberto 9181834Sroberto#ifndef RSA_H 10181834Sroberto#define RSA_H 11181834Sroberto 12181834Srobertostruct crypto_rsa_key; 13181834Sroberto 14181834Srobertostruct crypto_rsa_key * 15181834Srobertocrypto_rsa_import_public_key(const u8 *buf, size_t len); 16181834Srobertostruct crypto_rsa_key * 17181834Srobertocrypto_rsa_import_public_key_parts(const u8 *n, size_t n_len, 18181834Sroberto const u8 *e, size_t e_len); 19181834Srobertostruct crypto_rsa_key * 20181834Srobertocrypto_rsa_import_private_key(const u8 *buf, size_t len); 21181834Srobertosize_t crypto_rsa_get_modulus_len(struct crypto_rsa_key *key); 22181834Srobertoint crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen, 23181834Sroberto struct crypto_rsa_key *key, int use_private); 24181834Srobertovoid crypto_rsa_free(struct crypto_rsa_key *key); 25181834Sroberto 26181834Sroberto#endif /* RSA_H */ 27