Home
last modified time | relevance | path

Searched refs:crypto_akcipher (Results 1 – 6 of 6) sorted by relevance

/linux-4.4.14/include/crypto/
Dakcipher.h47 struct crypto_akcipher { struct
97 int (*set_pub_key)(struct crypto_akcipher *tfm, const void *key,
99 int (*set_priv_key)(struct crypto_akcipher *tfm, const void *key,
101 int (*max_size)(struct crypto_akcipher *tfm);
102 int (*init)(struct crypto_akcipher *tfm);
103 void (*exit)(struct crypto_akcipher *tfm);
130 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type,
134 struct crypto_akcipher *tfm) in crypto_akcipher_tfm()
144 static inline struct crypto_akcipher *__crypto_akcipher_tfm( in __crypto_akcipher_tfm()
147 return container_of(tfm, struct crypto_akcipher, base); in __crypto_akcipher_tfm()
[all …]
/linux-4.4.14/crypto/
Drsa.c73 static inline struct rsa_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key()
80 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc()
125 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec()
169 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_sign()
214 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_verify()
274 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key()
291 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key()
308 static int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size()
315 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
Dakcipher.c58 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_exit_tfm()
66 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_init_tfm()
88 .tfmsize = offsetof(struct crypto_akcipher, base),
91 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type, in crypto_alloc_akcipher()
Dtestmgr.c1849 static int do_test_rsa(struct crypto_akcipher *tfm, in do_test_rsa()
1963 static int test_rsa(struct crypto_akcipher *tfm, struct akcipher_testvec *vecs, in test_rsa()
1979 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher()
1991 struct crypto_akcipher *tfm; in alg_test_akcipher()
/linux-4.4.14/include/crypto/internal/
Dakcipher.h25 static inline void *akcipher_tfm_ctx(struct crypto_akcipher *tfm) in akcipher_tfm_ctx()
36 static inline const char *akcipher_alg_name(struct crypto_akcipher *tfm) in akcipher_alg_name()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c242 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_enc()
373 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_dec()
604 static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setkey()
664 static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setpubkey()
670 static int qat_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setprivkey()
676 static int qat_rsa_max_size(struct crypto_akcipher *tfm) in qat_rsa_max_size()
683 static int qat_rsa_init_tfm(struct crypto_akcipher *tfm) in qat_rsa_init_tfm()
697 static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) in qat_rsa_exit_tfm()