13 crypto_rsa_import_public_key_parts(
const u8 *n,
size_t n_len,
14 const u8 *e,
size_t e_len);
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.
Definition: rsa.c:261
void crypto_rsa_free(struct crypto_rsa_key *key)
Free RSA key.
Definition: rsa.c:358
struct crypto_rsa_key * crypto_rsa_import_private_key(const u8 *buf, size_t len)
Import an RSA private key.
Definition: rsa.c:145
struct crypto_rsa_key * crypto_rsa_import_public_key(const u8 *buf, size_t len)
Import an RSA public key.
Definition: rsa.c:58
size_t crypto_rsa_get_modulus_len(struct crypto_rsa_key *key)
Get the modulus length of the RSA key.
Definition: rsa.c:245