Home
last modified time | relevance | path

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

/openbmc/linux/include/crypto/
H A Dakcipher.h51 struct crypto_akcipher { struct
126 unsigned int (*max_size)(struct crypto_akcipher *tfm);
127 int (*init)(struct crypto_akcipher *tfm);
128 void (*exit)(struct crypto_akcipher *tfm);
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()
179 struct crypto_akcipher *tfm) in crypto_akcipher_alg()
190 struct crypto_akcipher *tfm) in akcipher_request_set_tfm()
222 struct crypto_akcipher *tfm, gfp_t gfp) in akcipher_request_alloc()
[all …]
/openbmc/linux/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()
/openbmc/linux/crypto/
H A 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()
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()
H A Dsig.c84 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()
H A Drsa-pkcs1pad.c92 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 …]
H A Drsa.c88 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()
236 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key()
275 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key()
338 static unsigned int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size()
345 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
H A Decdsa.c139 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()
H A 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()
H A Dsm2.c380 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()
H A Dinternal.h26 struct crypto_akcipher;
39 struct crypto_akcipher *tfm;
H A Dtestmgr.c4075 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()
/openbmc/linux/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 …]
/openbmc/linux/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()
/openbmc/linux/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 …]
/openbmc/linux/drivers/crypto/virtio/
H A 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()
/openbmc/linux/drivers/crypto/starfive/
H A Djh7110-rsa.c308 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()
H A Djh7110-cryp.h161 struct crypto_akcipher *akcipher_fbk;
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_asym_algs.c647 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()
/openbmc/linux/crypto/asymmetric_keys/
H A Dpublic_key.c160 struct crypto_akcipher *tfm; in software_key_query()
278 struct crypto_akcipher *tfm; in software_key_eds_op()
/openbmc/linux/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c75 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()