/linux-6.3-rc2/include/crypto/ |
A D | akcipher.h | 49 struct crypto_akcipher { struct 103 unsigned int (*max_size)(struct crypto_akcipher *tfm); 104 int (*init)(struct crypto_akcipher *tfm); 105 void (*exit)(struct crypto_akcipher *tfm); 135 struct crypto_akcipher *tfm) in crypto_akcipher_tfm() 145 static inline struct crypto_akcipher *__crypto_akcipher_tfm( in __crypto_akcipher_tfm() 148 return container_of(tfm, struct crypto_akcipher, base); in __crypto_akcipher_tfm() 152 struct crypto_akcipher *tfm) in crypto_akcipher_alg() 163 struct crypto_akcipher *tfm) in akcipher_request_set_tfm() 195 struct crypto_akcipher *tfm, gfp_t gfp) in akcipher_request_alloc() [all …]
|
A D | sm2.h | 21 extern int sm2_compute_z_digest(struct crypto_akcipher *tfm,
|
/linux-6.3-rc2/include/crypto/internal/ |
A 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-6.3-rc2/crypto/ |
A D | rsa-pkcs1pad.c | 92 struct crypto_akcipher *child; 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() 530 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify() 563 static int pkcs1pad_init_tfm(struct crypto_akcipher *tfm) in pkcs1pad_init_tfm() 568 struct crypto_akcipher *child_tfm; in pkcs1pad_init_tfm() [all …]
|
A D | akcipher.c | 52 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_exit_tfm() 60 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_init_tfm() 90 .tfmsize = offsetof(struct crypto_akcipher, base), 102 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type, in crypto_alloc_akcipher() 123 static int akcipher_default_set_key(struct crypto_akcipher *tfm, in akcipher_default_set_key()
|
A 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() 208 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key() 242 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key() 300 static unsigned int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size() 307 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
|
A 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()
|
A D | sm2.c | 261 int sm2_compute_z_digest(struct crypto_akcipher *tfm, in sm2_compute_z_digest() 350 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in sm2_verify() 390 static int sm2_set_pub_key(struct crypto_akcipher *tfm, in sm2_set_pub_key() 409 static unsigned int sm2_max_size(struct crypto_akcipher *tfm) in sm2_max_size() 415 static int sm2_init_tfm(struct crypto_akcipher *tfm) in sm2_init_tfm() 422 static void sm2_exit_tfm(struct crypto_akcipher *tfm) in sm2_exit_tfm()
|
A 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()
|
A D | testmgr.c | 4003 static int test_akcipher_one(struct crypto_akcipher *tfm, in test_akcipher_one() 4185 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher() 4208 struct crypto_akcipher *tfm; in alg_test_akcipher()
|
/linux-6.3-rc2/drivers/crypto/caam/ |
A D | caampkc.c | 61 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_pub_unmap() 73 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f1_unmap() 85 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f2_unmap() 102 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f3_unmap() 152 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f_done() 246 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_edesc_alloc() 373 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in akcipher_do_one_req() 401 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_pub_pdb() 447 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f1_pdb() 494 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f2_pdb() [all …]
|
/linux-6.3-rc2/drivers/crypto/aspeed/ |
A D | aspeed-acry.c | 129 struct crypto_akcipher *fallback_tfm; 151 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_do_fallback() 169 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_need_fallback() 189 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_do_request() 353 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_rsa_trigger() 418 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_rsa_enc() 430 struct crypto_akcipher *cipher = crypto_akcipher_reqtfm(req); in aspeed_acry_rsa_dec() 535 static int aspeed_acry_rsa_set_pub_key(struct crypto_akcipher *tfm, in aspeed_acry_rsa_set_pub_key() 549 static int aspeed_acry_rsa_set_priv_key(struct crypto_akcipher *tfm, in aspeed_acry_rsa_set_priv_key() 573 static int aspeed_acry_rsa_init_tfm(struct crypto_akcipher *tfm) in aspeed_acry_rsa_init_tfm() [all …]
|
/linux-6.3-rc2/drivers/crypto/ccp/ |
A 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-6.3-rc2/drivers/crypto/virtio/ |
A 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() 488 static void virtio_crypto_rsa_exit_tfm(struct crypto_akcipher *tfm) in virtio_crypto_rsa_exit_tfm()
|
/linux-6.3-rc2/crypto/asymmetric_keys/ |
A D | public_key.c | 154 struct crypto_akcipher *tfm; in software_key_query() 236 struct crypto_akcipher *tfm; in software_key_eds_op() 317 struct crypto_akcipher *tfm_pkey) in cert_sig_digest_update() 368 struct crypto_akcipher *tfm_pkey) in cert_sig_digest_update() 381 struct crypto_akcipher *tfm; in public_key_verify_signature()
|
/linux-6.3-rc2/drivers/crypto/qat/qat_common/ |
A D | qat_asym_algs.c | 649 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_enc() 783 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_dec() 1160 static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setkey() 1207 static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setpubkey() 1213 static int qat_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setprivkey() 1219 static unsigned int qat_rsa_max_size(struct crypto_akcipher *tfm) in qat_rsa_max_size() 1226 static int qat_rsa_init_tfm(struct crypto_akcipher *tfm) in qat_rsa_init_tfm() 1242 static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) in qat_rsa_exit_tfm()
|
/linux-6.3-rc2/drivers/crypto/hisilicon/hpre/ |
A 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()
|