Home
last modified time | relevance | path

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

/linux-6.12.1/include/crypto/
Dakcipher.h51 struct crypto_akcipher { struct
101 int (*set_pub_key)(struct crypto_akcipher *tfm, const void *key,
103 int (*set_priv_key)(struct crypto_akcipher *tfm, const void *key,
105 unsigned int (*max_size)(struct crypto_akcipher *tfm);
106 int (*init)(struct crypto_akcipher *tfm);
107 void (*exit)(struct crypto_akcipher *tfm);
133 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type,
137 struct crypto_akcipher *tfm) in crypto_akcipher_tfm()
147 static inline struct crypto_akcipher *__crypto_akcipher_tfm( in __crypto_akcipher_tfm()
150 return container_of(tfm, struct crypto_akcipher, base); in __crypto_akcipher_tfm()
[all …]
/linux-6.12.1/include/crypto/internal/
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()
/linux-6.12.1/crypto/
Dakcipher.c46 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()
86 .tfmsize = offsetof(struct crypto_akcipher, base),
98 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type, in crypto_alloc_akcipher()
119 static int akcipher_default_set_key(struct crypto_akcipher *tfm, in akcipher_default_set_key()
214 int crypto_akcipher_sync_encrypt(struct crypto_akcipher *tfm, in crypto_akcipher_sync_encrypt()
232 int crypto_akcipher_sync_decrypt(struct crypto_akcipher *tfm, in crypto_akcipher_sync_decrypt()
253 struct crypto_akcipher **ctx = crypto_tfm_ctx(tfm); in crypto_exit_akcipher_ops_sig()
260 struct crypto_akcipher **ctx = crypto_tfm_ctx(tfm); in crypto_init_akcipher_ops_sig()
262 struct crypto_akcipher *akcipher; in crypto_init_akcipher_ops_sig()
Dsig.c71 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_maxsize()
81 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_sign()
100 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_verify()
123 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_set_pubkey()
132 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_set_privkey()
Drsa-pkcs1pad.c115 struct crypto_akcipher *child;
130 static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_pub_key()
151 static int pkcs1pad_set_priv_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_priv_key()
172 static unsigned int pkcs1pad_get_max_size(struct crypto_akcipher *tfm) in pkcs1pad_get_max_size()
199 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt_sign_complete()
251 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt()
299 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt_complete()
366 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt()
399 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_sign()
456 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify_complete()
[all …]
Decdsa.c131 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in ecdsa_verify()
204 static int ecdsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) in ecdsa_set_pub_key()
240 static void ecdsa_exit_tfm(struct crypto_akcipher *tfm) in ecdsa_exit_tfm()
247 static unsigned int ecdsa_max_size(struct crypto_akcipher *tfm) in ecdsa_max_size()
254 static int ecdsa_nist_p521_init_tfm(struct crypto_akcipher *tfm) in ecdsa_nist_p521_init_tfm()
276 static int ecdsa_nist_p384_init_tfm(struct crypto_akcipher *tfm) in ecdsa_nist_p384_init_tfm()
298 static int ecdsa_nist_p256_init_tfm(struct crypto_akcipher *tfm) in ecdsa_nist_p256_init_tfm()
320 static int ecdsa_nist_p192_init_tfm(struct crypto_akcipher *tfm) in ecdsa_nist_p192_init_tfm()
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()
Decrdsa.c73 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()
Dinternal.h26 struct crypto_akcipher;
39 struct crypto_akcipher *tfm;
Dtestmgr.c4116 static int test_akcipher_one(struct crypto_akcipher *tfm, in test_akcipher_one()
4298 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher()
4321 struct crypto_akcipher *tfm; in alg_test_akcipher()
/linux-6.12.1/drivers/crypto/caam/
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.12.1/drivers/crypto/aspeed/
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()
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-6.12.1/drivers/crypto/ccp/
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.12.1/drivers/crypto/virtio/
Dvirtio_crypto_akcipher_algs.c29 struct crypto_akcipher *tfm;
328 struct crypto_akcipher *atfm = crypto_akcipher_reqtfm(req); in virtio_crypto_rsa_req()
365 static int virtio_crypto_rsa_set_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_set_key()
429 static int virtio_crypto_rsa_raw_set_priv_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_raw_set_priv_key()
439 static int virtio_crypto_p1pad_rsa_sha1_set_priv_key(struct crypto_akcipher *tfm, in virtio_crypto_p1pad_rsa_sha1_set_priv_key()
448 static int virtio_crypto_rsa_raw_set_pub_key(struct crypto_akcipher *tfm, in virtio_crypto_rsa_raw_set_pub_key()
457 static int virtio_crypto_p1pad_rsa_sha1_set_pub_key(struct crypto_akcipher *tfm, in virtio_crypto_p1pad_rsa_sha1_set_pub_key()
466 static unsigned int virtio_crypto_rsa_max_size(struct crypto_akcipher *tfm) in virtio_crypto_rsa_max_size()
474 static int virtio_crypto_rsa_init_tfm(struct crypto_akcipher *tfm) in virtio_crypto_rsa_init_tfm()
486 static void virtio_crypto_rsa_exit_tfm(struct crypto_akcipher *tfm) in virtio_crypto_rsa_exit_tfm()
/linux-6.12.1/drivers/crypto/starfive/
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()
Djh7110-cryp.h170 struct crypto_akcipher *akcipher_fbk;
/linux-6.12.1/drivers/crypto/intel/qat/qat_common/
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.12.1/crypto/asymmetric_keys/
Dpublic_key.c156 struct crypto_akcipher *tfm; in software_key_query()
286 struct crypto_akcipher *tfm; in software_key_eds_op()
/linux-6.12.1/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c78 struct crypto_akcipher *soft_tfm;
800 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_enc()
848 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_dec()
1136 static int hpre_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setpubkey()
1149 static int hpre_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setprivkey()
1162 static unsigned int hpre_rsa_max_size(struct crypto_akcipher *tfm) in hpre_rsa_max_size()
1174 static int hpre_rsa_init_tfm(struct crypto_akcipher *tfm) in hpre_rsa_init_tfm()
1195 static void hpre_rsa_exit_tfm(struct crypto_akcipher *tfm) in hpre_rsa_exit_tfm()