/linux-6.1.9/include/crypto/ |
D | akcipher.h | 48 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 unsigned 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 …]
|
D | sm2.h | 21 extern int sm2_compute_z_digest(struct crypto_akcipher *tfm,
|
/linux-6.1.9/include/crypto/internal/ |
D | akcipher.h | 36 static inline void akcipher_set_reqsize(struct crypto_akcipher *akcipher, in akcipher_set_reqsize() 42 static inline void *akcipher_tfm_ctx(struct crypto_akcipher *tfm) in akcipher_tfm_ctx() 53 static inline const char *akcipher_alg_name(struct crypto_akcipher *tfm) in akcipher_alg_name() 71 struct crypto_akcipher *akcipher) in akcipher_alg_instance() 85 static inline struct crypto_akcipher *crypto_spawn_akcipher( in crypto_spawn_akcipher()
|
/linux-6.1.9/crypto/ |
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()
|
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() 231 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt() 279 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt_complete() 348 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt() 381 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_sign() 438 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() 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()
|
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 | 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()
|
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 | testmgr.c | 3995 static int test_akcipher_one(struct crypto_akcipher *tfm, in test_akcipher_one() 4177 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher() 4200 struct crypto_akcipher *tfm; in alg_test_akcipher()
|
/linux-6.1.9/drivers/crypto/caam/ |
D | caampkc.c | 59 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_pub_unmap() 71 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f1_unmap() 83 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f2_unmap() 100 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f3_unmap() 150 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f_done() 244 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_edesc_alloc() 372 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in akcipher_do_one_req() 400 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_pub_pdb() 446 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f1_pdb() 493 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f2_pdb() [all …]
|
/linux-6.1.9/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-6.1.9/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-6.1.9/crypto/asymmetric_keys/ |
D | public_key.c | 154 struct crypto_akcipher *tfm; in software_key_query() 216 struct crypto_akcipher *tfm; in software_key_eds_op() 297 struct crypto_akcipher *tfm_pkey) in cert_sig_digest_update() 348 struct crypto_akcipher *tfm_pkey) in cert_sig_digest_update() 361 struct crypto_akcipher *tfm; in public_key_verify_signature()
|
/linux-6.1.9/drivers/crypto/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() 1238 static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) in qat_rsa_exit_tfm()
|
/linux-6.1.9/drivers/crypto/hisilicon/hpre/ |
D | hpre_crypto.c | 75 struct crypto_akcipher *soft_tfm; 783 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_enc() 831 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_dec() 1119 static int hpre_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setpubkey() 1132 static int hpre_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setprivkey() 1145 static unsigned int hpre_rsa_max_size(struct crypto_akcipher *tfm) in hpre_rsa_max_size() 1157 static int hpre_rsa_init_tfm(struct crypto_akcipher *tfm) in hpre_rsa_init_tfm() 1175 static void hpre_rsa_exit_tfm(struct crypto_akcipher *tfm) in hpre_rsa_exit_tfm()
|