Home
last modified time | relevance | path

Searched refs:rsa_key (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/crypto/
Drsa_helper.c24 struct rsa_key *key = context; in rsa_get_n()
45 struct rsa_key *key = context; in rsa_get_e()
58 struct rsa_key *key = context; in rsa_get_d()
76 static void free_mpis(struct rsa_key *key) in free_mpis()
91 void rsa_free_key(struct rsa_key *key) in rsa_free_key()
107 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument
112 free_mpis(rsa_key); in rsa_parse_pub_key()
113 ret = asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key()
119 free_mpis(rsa_key); in rsa_parse_pub_key()
134 int rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_priv_key() argument
[all …]
Drsa.c21 static int _rsa_enc(const struct rsa_key *key, MPI c, MPI m) in _rsa_enc()
35 static int _rsa_dec(const struct rsa_key *key, MPI m, MPI c) in _rsa_dec()
49 static int _rsa_sign(const struct rsa_key *key, MPI s, MPI m) in _rsa_sign()
63 static int _rsa_verify(const struct rsa_key *key, MPI m, MPI s) in _rsa_verify()
73 static inline struct rsa_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key()
81 const struct rsa_key *pkey = rsa_get_key(tfm); in rsa_enc()
126 const struct rsa_key *pkey = rsa_get_key(tfm); in rsa_dec()
170 const struct rsa_key *pkey = rsa_get_key(tfm); in rsa_sign()
215 const struct rsa_key *pkey = rsa_get_key(tfm); in rsa_verify()
277 struct rsa_key *pkey = akcipher_tfm_ctx(tfm); in rsa_set_pub_key()
[all …]
/linux-4.4.14/include/crypto/internal/
Drsa.h17 struct rsa_key { struct
23 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, argument
26 int rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key,
29 void rsa_free_key(struct rsa_key *rsa_key);