2 * PKCS #1 (RSA Encryption)
3 * Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
12 int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key,
13 int use_private, const u8 *in, size_t inlen,
14 u8 *out, size_t *outlen);
15 int pkcs1_v15_private_key_decrypt(struct crypto_rsa_key *key,
16 const u8 *in, size_t inlen,
17 u8 *out, size_t *outlen);
18 int pkcs1_decrypt_public_key(struct crypto_rsa_key *key,
19 const u8 *crypt, size_t crypt_len,
20 u8 *plain, size_t *plain_len);