/Linux-v6.6/include/crypto/ |
D | akcipher.h | 51 struct crypto_akcipher { struct 122 int (*set_pub_key)(struct crypto_akcipher *tfm, const void *key, 124 int (*set_priv_key)(struct crypto_akcipher *tfm, const void *key, 126 unsigned int (*max_size)(struct crypto_akcipher *tfm); 127 int (*init)(struct crypto_akcipher *tfm); 128 void (*exit)(struct crypto_akcipher *tfm); 158 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type, 162 struct crypto_akcipher *tfm) in crypto_akcipher_tfm() 172 static inline struct crypto_akcipher *__crypto_akcipher_tfm( in __crypto_akcipher_tfm() 175 return container_of(tfm, struct crypto_akcipher, base); in __crypto_akcipher_tfm() [all …]
|
/Linux-v6.6/include/crypto/internal/ |
D | akcipher.h | 46 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()
|
/Linux-v6.6/crypto/ |
D | akcipher.c | 46 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_exit_tfm() 54 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_init_tfm() 113 .tfmsize = offsetof(struct crypto_akcipher, base), 125 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type, in crypto_alloc_akcipher() 150 static int akcipher_default_set_key(struct crypto_akcipher *tfm, in akcipher_default_set_key() 245 int crypto_akcipher_sync_encrypt(struct crypto_akcipher *tfm, in crypto_akcipher_sync_encrypt() 263 int crypto_akcipher_sync_decrypt(struct crypto_akcipher *tfm, in crypto_akcipher_sync_decrypt() 284 struct crypto_akcipher **ctx = crypto_tfm_ctx(tfm); in crypto_exit_akcipher_ops_sig() 291 struct crypto_akcipher **ctx = crypto_tfm_ctx(tfm); in crypto_init_akcipher_ops_sig() 293 struct crypto_akcipher *akcipher; in crypto_init_akcipher_ops_sig()
|
D | sig.c | 84 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_maxsize() 94 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_sign() 113 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_verify() 136 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_set_pubkey() 145 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_set_privkey()
|
D | rsa-pkcs1pad.c | 92 struct crypto_akcipher *child; 107 static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_pub_key() 128 static int pkcs1pad_set_priv_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_priv_key() 149 static unsigned int pkcs1pad_get_max_size(struct crypto_akcipher *tfm) in pkcs1pad_get_max_size() 176 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt_sign_complete() 228 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt() 276 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt_complete() 343 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt() 376 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_sign() 433 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify_complete() [all …]
|
D | rsa.c | 88 static inline struct rsa_mpi_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key() 95 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc() 134 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec() 234 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key() 273 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key() 336 static unsigned int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size() 343 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
|
D | ecdsa.c | 139 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in ecdsa_verify() 222 static int ecdsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) in ecdsa_set_pub_key() 254 static void ecdsa_exit_tfm(struct crypto_akcipher *tfm) in ecdsa_exit_tfm() 261 static unsigned int ecdsa_max_size(struct crypto_akcipher *tfm) in ecdsa_max_size() 268 static int ecdsa_nist_p384_init_tfm(struct crypto_akcipher *tfm) in ecdsa_nist_p384_init_tfm() 290 static int ecdsa_nist_p256_init_tfm(struct crypto_akcipher *tfm) in ecdsa_nist_p256_init_tfm() 312 static int ecdsa_nist_p192_init_tfm(struct crypto_akcipher *tfm) in ecdsa_nist_p192_init_tfm()
|
D | ecrdsa.c | 73 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in ecrdsa_verify() 191 static int ecrdsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in ecrdsa_set_pub_key() 252 static unsigned int ecrdsa_max_size(struct crypto_akcipher *tfm) in ecrdsa_max_size() 263 static void ecrdsa_exit_tfm(struct crypto_akcipher *tfm) in ecrdsa_exit_tfm()
|
D | sm2.c | 380 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in sm2_verify() 420 static int sm2_set_pub_key(struct crypto_akcipher *tfm, in sm2_set_pub_key() 447 static unsigned int sm2_max_size(struct crypto_akcipher *tfm) in sm2_max_size() 453 static int sm2_init_tfm(struct crypto_akcipher *tfm) in sm2_init_tfm() 460 static void sm2_exit_tfm(struct crypto_akcipher *tfm) in sm2_exit_tfm()
|
D | internal.h | 26 struct crypto_akcipher; 39 struct crypto_akcipher *tfm;
|
D | testmgr.c | 4075 static int test_akcipher_one(struct crypto_akcipher *tfm, in test_akcipher_one() 4257 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher() 4280 struct crypto_akcipher *tfm; in alg_test_akcipher()
|
/Linux-v6.6/drivers/crypto/caam/ |
D | caampkc.c | 65 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-v6.6/drivers/crypto/aspeed/ |
D | aspeed-acry.c | 126 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() 485 static int aspeed_acry_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in aspeed_acry_rsa_setkey() 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() [all …]
|
/Linux-v6.6/drivers/crypto/ccp/ |
D | ccp-crypto-rsa.c | 57 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-v6.6/drivers/crypto/virtio/ |
D | virtio_crypto_akcipher_algs.c | 29 struct crypto_akcipher *tfm; 327 struct crypto_akcipher *atfm = crypto_akcipher_reqtfm(req); in virtio_crypto_rsa_req() 364 static int virtio_crypto_rsa_set_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_set_key() 428 static int virtio_crypto_rsa_raw_set_priv_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_raw_set_priv_key() 438 static int virtio_crypto_p1pad_rsa_sha1_set_priv_key(struct crypto_akcipher *tfm, in virtio_crypto_p1pad_rsa_sha1_set_priv_key() 447 static int virtio_crypto_rsa_raw_set_pub_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_raw_set_pub_key() 456 static int virtio_crypto_p1pad_rsa_sha1_set_pub_key(struct crypto_akcipher *tfm, in virtio_crypto_p1pad_rsa_sha1_set_pub_key() 465 static unsigned int virtio_crypto_rsa_max_size(struct crypto_akcipher *tfm) in virtio_crypto_rsa_max_size() 473 static int virtio_crypto_rsa_init_tfm(struct crypto_akcipher *tfm) in virtio_crypto_rsa_init_tfm() 485 static void virtio_crypto_rsa_exit_tfm(struct crypto_akcipher *tfm) in virtio_crypto_rsa_exit_tfm()
|
/Linux-v6.6/drivers/crypto/starfive/ |
D | jh7110-rsa.c | 308 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in starfive_rsa_enc() 340 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in starfive_rsa_dec() 472 static int starfive_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_setkey() 523 static int starfive_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_set_pub_key() 536 static int starfive_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_set_priv_key() 549 static unsigned int starfive_rsa_max_size(struct crypto_akcipher *tfm) in starfive_rsa_max_size() 559 static int starfive_rsa_init_tfm(struct crypto_akcipher *tfm) in starfive_rsa_init_tfm() 574 sizeof(struct crypto_akcipher) + 32); in starfive_rsa_init_tfm() 579 static void starfive_rsa_exit_tfm(struct crypto_akcipher *tfm) in starfive_rsa_exit_tfm()
|
D | jh7110-cryp.h | 161 struct crypto_akcipher *akcipher_fbk;
|
/Linux-v6.6/drivers/crypto/intel/qat/qat_common/ |
D | qat_asym_algs.c | 647 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_enc() 781 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_dec() 1158 static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setkey() 1205 static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setpubkey() 1211 static int qat_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setprivkey() 1217 static unsigned int qat_rsa_max_size(struct crypto_akcipher *tfm) in qat_rsa_max_size() 1224 static int qat_rsa_init_tfm(struct crypto_akcipher *tfm) in qat_rsa_init_tfm() 1240 static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) in qat_rsa_exit_tfm()
|
/Linux-v6.6/crypto/asymmetric_keys/ |
D | public_key.c | 160 struct crypto_akcipher *tfm; in software_key_query() 278 struct crypto_akcipher *tfm; in software_key_eds_op()
|
/Linux-v6.6/drivers/crypto/hisilicon/hpre/ |
D | hpre_crypto.c | 75 struct crypto_akcipher *soft_tfm; 795 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_enc() 843 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_dec() 1131 static int hpre_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setpubkey() 1144 static int hpre_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setprivkey() 1157 static unsigned int hpre_rsa_max_size(struct crypto_akcipher *tfm) in hpre_rsa_max_size() 1169 static int hpre_rsa_init_tfm(struct crypto_akcipher *tfm) in hpre_rsa_init_tfm() 1190 static void hpre_rsa_exit_tfm(struct crypto_akcipher *tfm) in hpre_rsa_exit_tfm()
|