wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rsa.h
Go to the documentation of this file.
1 
5 #ifndef RSA_H
6 #define RSA_H
7 
8 struct crypto_rsa_key;
9 
10 struct crypto_rsa_key *
11 crypto_rsa_import_public_key(const u8 *buf, size_t len);
12 struct crypto_rsa_key *
13 crypto_rsa_import_public_key_parts(const u8 *n, size_t n_len,
14  const u8 *e, size_t e_len);
15 struct crypto_rsa_key *
16 crypto_rsa_import_private_key(const u8 *buf, size_t len);
17 size_t crypto_rsa_get_modulus_len(struct crypto_rsa_key *key);
18 int crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen,
19  struct crypto_rsa_key *key, int use_private);
20 void crypto_rsa_free(struct crypto_rsa_key *key);
21 
22 #endif /* RSA_H */
Definition: rsa.c:13
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