pkcs1.c File Reference
#include "includes.h"
#include "common.h"
#include "rsa.h"
Go to the source code of this file.
Functions |
int | pkcs1_decrypt_public_key (struct crypto_rsa_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) |
int | pkcs1_encrypt (int block_type, struct crypto_rsa_key *key, int use_private, const u8 *in, size_t inlen, u8 *out, size_t *outlen) |
static int | pkcs1_generate_encryption_block (u8 block_type, size_t modlen, const u8 *in, size_t inlen, u8 *out, size_t *outlen) |
int | pkcs1_v15_private_key_decrypt (struct crypto_rsa_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) |
Function Documentation
int pkcs1_decrypt_public_key |
( |
struct crypto_rsa_key * |
key, |
|
|
const u8 * |
crypt, |
|
|
size_t |
crypt_len, |
|
|
u8 * |
plain, |
|
|
size_t * |
plain_len | |
|
) |
| | |
int pkcs1_encrypt |
( |
int |
block_type, |
|
|
struct crypto_rsa_key * |
key, |
|
|
int |
use_private, |
|
|
const u8 * |
in, |
|
|
size_t |
inlen, |
|
|
u8 * |
out, |
|
|
size_t * |
outlen | |
|
) |
| | |
static int pkcs1_generate_encryption_block |
( |
u8 |
block_type, |
|
|
size_t |
modlen, |
|
|
const u8 * |
in, |
|
|
size_t |
inlen, |
|
|
u8 * |
out, |
|
|
size_t * |
outlen | |
|
) |
| | [static] |
int pkcs1_v15_private_key_decrypt |
( |
struct crypto_rsa_key * |
key, |
|
|
const u8 * |
in, |
|
|
size_t |
inlen, |
|
|
u8 * |
out, |
|
|
size_t * |
outlen | |
|
) |
| | |