RSA. More...

Go to the source code of this file.
Functions | |
| 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) |
| Get the modulus length of the RSA key. | |
| int | crypto_rsa_exptmod (const u8 *in, size_t inlen, u8 *out, size_t *outlen, struct crypto_rsa_key *key, int use_private) |
| RSA modular exponentiation. | |
| void | crypto_rsa_free (struct crypto_rsa_key *key) |
| Free RSA key. | |
RSA.
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.
Definition in file rsa.h.
| int crypto_rsa_exptmod | ( | const u8 * | in, | |
| size_t | inlen, | |||
| u8 * | out, | |||
| size_t * | outlen, | |||
| struct crypto_rsa_key * | key, | |||
| int | use_private | |||
| ) |
RSA modular exponentiation.
| in | Input data | |
| inlen | Input data length | |
| out | Buffer for output data | |
| outlen | Maximum size of the output buffer and used size on success | |
| key | RSA key | |
| use_private | 1 = Use RSA private key, 0 = Use RSA public key |
Definition at line 256 of file rsa.c.

| void crypto_rsa_free | ( | struct crypto_rsa_key * | key | ) |
| size_t crypto_rsa_get_modulus_len | ( | struct crypto_rsa_key * | key | ) |
1.6.1