Home
last modified time | relevance | path

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

/Linux-v4.19/include/crypto/
Dakcipher.h47 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 …]
/Linux-v4.19/include/crypto/internal/
Dakcipher.h41 static inline void akcipher_set_reqsize(struct crypto_akcipher *akcipher, in akcipher_set_reqsize()
47 static inline void *akcipher_tfm_ctx(struct crypto_akcipher *tfm) in akcipher_tfm_ctx()
58 static inline const char *akcipher_alg_name(struct crypto_akcipher *tfm) in akcipher_alg_name()
76 struct crypto_akcipher *akcipher) in akcipher_alg_instance()
96 static inline struct crypto_akcipher *crypto_spawn_akcipher( in crypto_spawn_akcipher()
/Linux-v4.19/crypto/
Drsa.c81 static inline struct rsa_mpi_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key()
88 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc()
127 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec()
165 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_sign()
204 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_verify()
267 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key()
301 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key()
339 static unsigned int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size()
346 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
Dakcipher.c60 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_exit_tfm()
68 struct crypto_akcipher *akcipher = __crypto_akcipher_tfm(tfm); in crypto_akcipher_init_tfm()
98 .tfmsize = offsetof(struct crypto_akcipher, base),
109 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type, in crypto_alloc_akcipher()
Drsa-pkcs1pad.c94 struct crypto_akcipher *child;
109 static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_pub_key()
130 static int pkcs1pad_set_priv_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_priv_key()
151 static unsigned int pkcs1pad_get_max_size(struct crypto_akcipher *tfm) in pkcs1pad_get_max_size()
178 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt_sign_complete()
233 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt()
290 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt_complete()
359 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt()
392 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_sign()
447 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify_complete()
[all …]
Dtestmgr.c2230 static int test_akcipher_one(struct crypto_akcipher *tfm, in test_akcipher_one()
2356 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher()
2379 struct crypto_akcipher *tfm; in alg_test_akcipher()
/Linux-v4.19/drivers/crypto/ccp/
Dccp-crypto-rsa.c61 static unsigned int ccp_rsa_maxsize(struct crypto_akcipher *tfm) in ccp_rsa_maxsize()
70 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in ccp_rsa_crypt()
130 static int ccp_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setkey()
185 static int ccp_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setprivkey()
191 static int ccp_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setpubkey()
197 static int ccp_rsa_init_tfm(struct crypto_akcipher *tfm) in ccp_rsa_init_tfm()
207 static void ccp_rsa_exit_tfm(struct crypto_akcipher *tfm) in ccp_rsa_exit_tfm()
/Linux-v4.19/drivers/crypto/caam/
Dcaampkc.c40 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_pub_unmap()
52 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f1_unmap()
64 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f2_unmap()
81 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_priv_f3_unmap()
215 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_edesc_alloc()
304 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_pub_pdb()
349 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f1_pdb()
393 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f2_pdb()
468 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in set_rsa_priv_f3_pdb()
558 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in caam_rsa_enc()
[all …]
/Linux-v4.19/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c688 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_enc()
822 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_dec()
1201 static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setkey()
1248 static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setpubkey()
1254 static int qat_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setprivkey()
1260 static unsigned int qat_rsa_max_size(struct crypto_akcipher *tfm) in qat_rsa_max_size()
1267 static int qat_rsa_init_tfm(struct crypto_akcipher *tfm) in qat_rsa_init_tfm()
1281 static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) in qat_rsa_exit_tfm()
/Linux-v4.19/crypto/asymmetric_keys/
Dpublic_key.c69 struct crypto_akcipher *tfm; in public_key_verify_signature()