Home
last modified time | relevance | path

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

/linux-6.15/include/crypto/
H A Dakcipher.h46 struct crypto_akcipher { struct
91 unsigned int (*max_size)(struct crypto_akcipher *tfm);
92 int (*init)(struct crypto_akcipher *tfm);
93 void (*exit)(struct crypto_akcipher *tfm);
123 struct crypto_akcipher *tfm) in crypto_akcipher_tfm()
133 static inline struct crypto_akcipher *__crypto_akcipher_tfm( in __crypto_akcipher_tfm()
136 return container_of(tfm, struct crypto_akcipher, base); in __crypto_akcipher_tfm()
140 struct crypto_akcipher *tfm) in crypto_akcipher_alg()
151 struct crypto_akcipher *tfm) in akcipher_request_set_tfm()
183 struct crypto_akcipher *tfm, gfp_t gfp) in akcipher_request_alloc()
[all …]
/linux-6.15/include/crypto/internal/
H A Dakcipher.h46 static inline void akcipher_set_reqsize(struct crypto_akcipher *akcipher, in akcipher_set_reqsize()
52 static inline void akcipher_set_reqsize_dma(struct crypto_akcipher *akcipher, in akcipher_set_reqsize_dma()
59 static inline void *akcipher_tfm_ctx(struct crypto_akcipher *tfm) in akcipher_tfm_ctx()
64 static inline void *akcipher_tfm_ctx_dma(struct crypto_akcipher *tfm) in akcipher_tfm_ctx_dma()
75 static inline const char *akcipher_alg_name(struct crypto_akcipher *tfm) in akcipher_alg_name()
93 struct crypto_akcipher *akcipher) in akcipher_alg_instance()
107 static inline struct crypto_akcipher *crypto_spawn_akcipher( in crypto_spawn_akcipher()
H A Drsa.h60 static inline int rsa_set_key(struct crypto_akcipher *child, in rsa_set_key()
/linux-6.15/crypto/
H A Drsa-pkcs1pad.c20 struct crypto_akcipher *child;
34 static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_pub_key()
42 static int pkcs1pad_set_priv_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_priv_key()
50 static unsigned int pkcs1pad_get_max_size(struct crypto_akcipher *tfm) in pkcs1pad_get_max_size()
77 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt_complete()
129 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt()
177 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt_complete()
244 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt()
275 static int pkcs1pad_init_tfm(struct crypto_akcipher *tfm) in pkcs1pad_init_tfm()
280 struct crypto_akcipher *child_tfm; in pkcs1pad_init_tfm()
[all …]
H A Dakcipher.c24 struct crypto_akcipher *tfm;
59 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_exit_tfm()
67 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_init_tfm()
99 .tfmsize = offsetof(struct crypto_akcipher, base),
111 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type, in crypto_alloc_akcipher()
132 static int akcipher_default_set_key(struct crypto_akcipher *tfm, in akcipher_default_set_key()
217 int crypto_akcipher_sync_encrypt(struct crypto_akcipher *tfm, in crypto_akcipher_sync_encrypt()
235 int crypto_akcipher_sync_decrypt(struct crypto_akcipher *tfm, in crypto_akcipher_sync_decrypt()
H A Drsa.c115 static inline struct rsa_mpi_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key()
122 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc()
161 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec()
269 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key()
308 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key()
371 static unsigned int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size()
378 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
H A Drsassa-pkcs1.c149 struct crypto_akcipher *child;
328 struct crypto_akcipher *child_tfm; in rsassa_pkcs1_init_tfm()
H A Dtestmgr.c3957 static int test_akcipher_one(struct crypto_akcipher *tfm, in test_akcipher_one()
4092 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher()
4115 struct crypto_akcipher *tfm; in alg_test_akcipher()
/linux-6.15/drivers/crypto/virtio/
H A Dvirtio_crypto_akcipher_algs.c214 struct crypto_akcipher *atfm = crypto_akcipher_reqtfm(req); in __virtio_crypto_akcipher_do_req()
275 struct crypto_akcipher *atfm = crypto_akcipher_reqtfm(req); in virtio_crypto_rsa_do_req()
312 struct crypto_akcipher *atfm = crypto_akcipher_reqtfm(req); in virtio_crypto_rsa_req()
337 static int virtio_crypto_rsa_set_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_set_key()
401 static int virtio_crypto_rsa_raw_set_priv_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_raw_set_priv_key()
411 static int virtio_crypto_p1pad_rsa_sha1_set_priv_key(struct crypto_akcipher *tfm, in virtio_crypto_p1pad_rsa_sha1_set_priv_key()
420 static int virtio_crypto_rsa_raw_set_pub_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_raw_set_pub_key()
429 static int virtio_crypto_p1pad_rsa_sha1_set_pub_key(struct crypto_akcipher *tfm, in virtio_crypto_p1pad_rsa_sha1_set_pub_key()
438 static unsigned int virtio_crypto_rsa_max_size(struct crypto_akcipher *tfm) in virtio_crypto_rsa_max_size()
446 static int virtio_crypto_rsa_init_tfm(struct crypto_akcipher *tfm) in virtio_crypto_rsa_init_tfm()
[all …]
/linux-6.15/drivers/crypto/caam/
H A Dcaampkc.c65 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_pub_unmap()
77 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f1_unmap()
89 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f2_unmap()
106 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f3_unmap()
156 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f_done()
252 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_edesc_alloc()
379 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in akcipher_do_one_req()
407 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_pub_pdb()
453 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f1_pdb()
500 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f2_pdb()
[all …]
/linux-6.15/drivers/crypto/aspeed/
H A Daspeed-acry.c126 struct crypto_akcipher *fallback_tfm;
148 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_do_fallback()
166 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_need_fallback()
186 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_do_request()
350 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_rsa_trigger()
415 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_rsa_enc()
427 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_rsa_dec()
532 static int aspeed_acry_rsa_set_pub_key(struct crypto_akcipher *tfm, in aspeed_acry_rsa_set_pub_key()
546 static int aspeed_acry_rsa_set_priv_key(struct crypto_akcipher *tfm, in aspeed_acry_rsa_set_priv_key()
570 static int aspeed_acry_rsa_init_tfm(struct crypto_akcipher *tfm) in aspeed_acry_rsa_init_tfm()
[all …]
/linux-6.15/drivers/crypto/ccp/
H A Dccp-crypto-rsa.c57 static unsigned int ccp_rsa_maxsize(struct crypto_akcipher *tfm) in ccp_rsa_maxsize()
66 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in ccp_rsa_crypt()
126 static int ccp_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setkey()
181 static int ccp_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setprivkey()
187 static int ccp_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setpubkey()
193 static int ccp_rsa_init_tfm(struct crypto_akcipher *tfm) in ccp_rsa_init_tfm()
203 static void ccp_rsa_exit_tfm(struct crypto_akcipher *tfm) in ccp_rsa_exit_tfm()
/linux-6.15/drivers/crypto/starfive/
H A Djh7110-rsa.c288 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in starfive_rsa_enc()
319 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in starfive_rsa_dec()
451 static int starfive_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_setkey()
502 static int starfive_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_set_pub_key()
515 static int starfive_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_set_priv_key()
528 static unsigned int starfive_rsa_max_size(struct crypto_akcipher *tfm) in starfive_rsa_max_size()
538 static int starfive_rsa_init_tfm(struct crypto_akcipher *tfm) in starfive_rsa_init_tfm()
551 sizeof(struct crypto_akcipher) + 32); in starfive_rsa_init_tfm()
556 static void starfive_rsa_exit_tfm(struct crypto_akcipher *tfm) in starfive_rsa_exit_tfm()
H A Djh7110-cryp.h170 struct crypto_akcipher *akcipher_fbk;
/linux-6.15/drivers/crypto/intel/qat/qat_common/
H A Dqat_asym_algs.c700 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_enc()
834 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_dec()
1211 static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setkey()
1258 static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setpubkey()
1264 static int qat_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setprivkey()
1270 static unsigned int qat_rsa_max_size(struct crypto_akcipher *tfm) in qat_rsa_max_size()
1277 static int qat_rsa_init_tfm(struct crypto_akcipher *tfm) in qat_rsa_init_tfm()
1293 static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) in qat_rsa_exit_tfm()
/linux-6.15/crypto/asymmetric_keys/
H A Dpublic_key.c166 struct crypto_akcipher *tfm; in software_key_query()
266 struct crypto_akcipher *tfm; in software_key_eds_op()
/linux-6.15/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c80 struct crypto_akcipher *soft_tfm;
804 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_enc()
852 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_dec()
1140 static int hpre_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setpubkey()
1153 static int hpre_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setprivkey()
1166 static unsigned int hpre_rsa_max_size(struct crypto_akcipher *tfm) in hpre_rsa_max_size()
1178 static int hpre_rsa_init_tfm(struct crypto_akcipher *tfm) in hpre_rsa_init_tfm()
1199 static void hpre_rsa_exit_tfm(struct crypto_akcipher *tfm) in hpre_rsa_exit_tfm()