Home
last modified time | relevance | path

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

/linux/include/crypto/
A Dakcipher.h48 struct crypto_akcipher { struct
101 unsigned int (*max_size)(struct crypto_akcipher *tfm);
102 int (*init)(struct crypto_akcipher *tfm);
103 void (*exit)(struct crypto_akcipher *tfm);
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()
151 struct crypto_akcipher *tfm) in crypto_akcipher_alg()
162 struct crypto_akcipher *tfm) in akcipher_request_set_tfm()
194 struct crypto_akcipher *tfm, gfp_t gfp) in akcipher_request_alloc()
[all …]
A Dsm2.h21 extern int sm2_compute_z_digest(struct crypto_akcipher *tfm,
/linux/include/crypto/internal/
A Dakcipher.h36 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/crypto/
A Drsa.c49 static inline struct rsa_mpi_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key()
56 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc()
95 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec()
156 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key()
190 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key()
228 static unsigned int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size()
235 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
A Drsa-pkcs1pad.c92 struct crypto_akcipher *child;
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()
534 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify()
567 static int pkcs1pad_init_tfm(struct crypto_akcipher *tfm) in pkcs1pad_init_tfm()
572 struct crypto_akcipher *child_tfm; in pkcs1pad_init_tfm()
[all …]
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()
A Dakcipher.c52 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()
A Dsm2.c261 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 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()
A Dtestmgr.c3915 static int test_akcipher_one(struct crypto_akcipher *tfm, in test_akcipher_one()
4097 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher()
4120 struct crypto_akcipher *tfm; in alg_test_akcipher()
/linux/drivers/crypto/caam/
A Dcaampkc.c59 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()
397 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_pub_pdb()
443 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f1_pdb()
490 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f2_pdb()
[all …]
/linux/drivers/crypto/ccp/
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()
/linux/crypto/asymmetric_keys/
A Dpublic_key.c110 struct crypto_akcipher *tfm; in software_key_query()
173 struct crypto_akcipher *tfm; in software_key_eds_op()
255 struct crypto_akcipher *tfm_pkey) in cert_sig_digest_update()
302 struct crypto_akcipher *tfm_pkey) in cert_sig_digest_update()
315 struct crypto_akcipher *tfm; in public_key_verify_signature()
A Dasym_tpm.c398 struct crypto_akcipher *tfm; in tpm_key_query()
448 struct crypto_akcipher *tfm; in tpm_key_encrypt()
736 struct crypto_akcipher *tfm; in tpm_key_verify_signature()
/linux/drivers/crypto/qat/qat_common/
A Dqat_asym_algs.c638 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_enc()
772 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_dec()
1151 static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setkey()
1198 static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setpubkey()
1204 static int qat_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setprivkey()
1210 static unsigned int qat_rsa_max_size(struct crypto_akcipher *tfm) in qat_rsa_max_size()
1217 static int qat_rsa_init_tfm(struct crypto_akcipher *tfm) in qat_rsa_init_tfm()
1231 static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) in qat_rsa_exit_tfm()
/linux/drivers/crypto/hisilicon/hpre/
A Dhpre_crypto.c69 struct crypto_akcipher *soft_tfm;
777 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_enc()
825 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_dec()
1113 static int hpre_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setpubkey()
1126 static int hpre_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setprivkey()
1139 static unsigned int hpre_rsa_max_size(struct crypto_akcipher *tfm) in hpre_rsa_max_size()
1151 static int hpre_rsa_init_tfm(struct crypto_akcipher *tfm) in hpre_rsa_init_tfm()
1169 static void hpre_rsa_exit_tfm(struct crypto_akcipher *tfm) in hpre_rsa_exit_tfm()

Completed in 35 milliseconds