Searched refs:tfm (Results 176 - 200 of 470) sorted by relevance

1234567891011>>

/linux-master/net/mac80211/
H A Dkey.h91 struct crypto_aead *tfm; member in struct:ieee80211_key::__anon3183::__anon3185
96 struct crypto_shash *tfm; member in struct:ieee80211_key::__anon3183::__anon3186
102 struct crypto_aead *tfm; member in struct:ieee80211_key::__anon3183::__anon3187
113 struct crypto_aead *tfm; member in struct:ieee80211_key::__anon3183::__anon3188
/linux-master/drivers/staging/rtl8192e/
H A Drtllib_crypt_ccmp.c43 struct crypto_aead *tfm; member in struct:rtllib_ccmp_data
59 priv->tfm = crypto_alloc_aead("ccm(aes)", 0, CRYPTO_ALG_ASYNC);
60 if (IS_ERR(priv->tfm)) {
62 priv->tfm = NULL;
69 if (priv->tfm)
70 crypto_free_aead(priv->tfm);
81 if (_priv && _priv->tfm)
82 crypto_free_aead(_priv->tfm);
193 req = aead_request_alloc(key->tfm, GFP_ATOMIC);
276 req = aead_request_alloc(key->tfm, GFP_ATOMI
316 struct crypto_aead *tfm = data->tfm; local
[all...]
/linux-master/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.c87 struct crypto_aead *tfm; local
90 tfm = crypto_aead_reqtfm(req);
94 crypto_aead_authsize(tfm)) != 0)
411 static int otx2_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, argument
414 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm);
419 ret = xts_verify_key(tfm, key, keylen);
443 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
446 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm);
460 static int cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
463 struct otx2_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm);
491 otx2_cpt_skcipher_cbc_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument
497 otx2_cpt_skcipher_ecb_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument
503 otx2_cpt_skcipher_cbc_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument
509 otx2_cpt_skcipher_ecb_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument
535 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); local
562 otx2_cpt_skcipher_exit(struct crypto_skcipher *tfm) argument
593 struct crypto_tfm *tfm = crypto_aead_tfm(atfm); local
665 otx2_cpt_aead_cbc_aes_sha1_init(struct crypto_aead *tfm) argument
670 otx2_cpt_aead_cbc_aes_sha256_init(struct crypto_aead *tfm) argument
675 otx2_cpt_aead_cbc_aes_sha384_init(struct crypto_aead *tfm) argument
680 otx2_cpt_aead_cbc_aes_sha512_init(struct crypto_aead *tfm) argument
685 otx2_cpt_aead_ecb_null_sha1_init(struct crypto_aead *tfm) argument
690 otx2_cpt_aead_ecb_null_sha256_init(struct crypto_aead *tfm) argument
695 otx2_cpt_aead_ecb_null_sha384_init(struct crypto_aead *tfm) argument
700 otx2_cpt_aead_ecb_null_sha512_init(struct crypto_aead *tfm) argument
705 otx2_cpt_aead_gcm_aes_init(struct crypto_aead *tfm) argument
710 otx2_cpt_aead_exit(struct crypto_aead *tfm) argument
727 otx2_cpt_aead_gcm_set_authsize(struct crypto_aead *tfm, unsigned int authsize) argument
743 otx2_cpt_aead_set_authsize(struct crypto_aead *tfm, unsigned int authsize) argument
751 otx2_cpt_aead_null_set_authsize(struct crypto_aead *tfm, unsigned int authsize) argument
1045 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1136 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1315 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
[all...]
/linux-master/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-hash.c95 int sun8i_ss_hash_init_tfm(struct crypto_ahash *tfm) argument
97 struct sun8i_ss_hash_tfm_ctx *op = crypto_ahash_ctx(tfm);
98 struct ahash_alg *alg = crypto_ahash_alg(tfm);
106 op->fallback_tfm = crypto_alloc_ahash(crypto_ahash_alg_name(tfm), 0,
113 crypto_ahash_set_statesize(tfm,
116 crypto_ahash_set_reqsize(tfm,
133 void sun8i_ss_hash_exit_tfm(struct crypto_ahash *tfm) argument
135 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm);
147 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
148 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm);
161 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
173 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
185 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
211 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
226 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
255 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
342 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
391 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
476 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
[all...]
/linux-master/net/ipv6/
H A Dseg6_hmac.c122 struct crypto_shash *tfm; local
130 tfm = *this_cpu_ptr(algo->tfms);
132 dgsize = crypto_shash_digestsize(tfm);
139 ret = crypto_shash_setkey(tfm, hinfo->secret, hinfo->slen);
146 shash->tfm = tfm;
356 struct crypto_shash *tfm; local
372 tfm = crypto_alloc_shash(algo->name, 0, 0);
373 if (IS_ERR(tfm))
374 return PTR_ERR(tfm);
421 struct crypto_shash *tfm; local
[all...]
/linux-master/drivers/block/zram/
H A Dzcomp.h11 /* The members ->buffer and ->tfm are protected by ->lock. */
15 struct crypto_comp *tfm; member in struct:zcomp_strm
/linux-master/arch/loongarch/crypto/
H A Dcrc32-loongarch.c113 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm);
125 static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, unsigned int keylen) argument
127 struct chksum_ctx *mctx = crypto_shash_ctx(tfm);
197 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm);
204 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm);
209 static int chksum_cra_init(struct crypto_tfm *tfm) argument
211 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm);
217 static int chksumc_cra_init(struct crypto_tfm *tfm) argument
219 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm);
/linux-master/arch/powerpc/crypto/
H A Daes-spe-glue.c92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument
95 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm);
119 static int ppc_aes_setkey_skcipher(struct crypto_skcipher *tfm, argument
122 return ppc_aes_setkey(crypto_skcipher_tfm(tfm), in_key, key_len);
125 static int ppc_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument
128 struct ppc_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
131 err = xts_verify_key(tfm, in_key, key_len);
162 static void ppc_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
164 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm);
171 static void ppc_aes_decrypt(struct crypto_tfm *tfm, u argument
182 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
221 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
262 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
288 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
322 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
360 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
[all...]
/linux-master/crypto/
H A Ddh.c42 static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm) argument
44 return kpp_tfm_ctx(tfm);
71 static int dh_set_secret(struct crypto_kpp *tfm, const void *buf, argument
74 struct dh_ctx *ctx = dh_get_ctx(tfm);
169 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); local
170 struct dh_ctx *ctx = dh_get_ctx(tfm);
251 static unsigned int dh_max_size(struct crypto_kpp *tfm) argument
253 struct dh_ctx *ctx = dh_get_ctx(tfm);
258 static void dh_exit_tfm(struct crypto_kpp *tfm) argument
260 struct dh_ctx *ctx = dh_get_ctx(tfm);
306 dh_safe_prime_instance_ctx( struct crypto_kpp *tfm) argument
312 dh_safe_prime_init_tfm(struct crypto_kpp *tfm) argument
328 dh_safe_prime_exit_tfm(struct crypto_kpp *tfm) argument
457 dh_safe_prime_set_secret(struct crypto_kpp *tfm, const void *buffer, unsigned int len) argument
544 dh_safe_prime_max_size(struct crypto_kpp *tfm) argument
[all...]
H A Dtestmgr.c844 /* Like setkey_f(tfm, key, ksize), but sometimes misalign the key */
845 #define do_setkey(setkey_f, tfm, key, ksize, cfg, alignmask) \
853 err = setkey_f((tfm), keyptr, (ksize)); \
1275 struct crypto_shash *tfm = desc->tfm; local
1276 const unsigned int digestsize = crypto_shash_digestsize(tfm);
1277 const unsigned int statesize = crypto_shash_statesize(tfm);
1278 const char *driver = crypto_shash_driver_name(tfm);
1286 err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize,
1293 crypto_shash_get_flags(tfm));
1458 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1736 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
1864 struct crypto_shash *tfm; local
2031 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
2257 struct crypto_aead *tfm; member in struct:aead_extra_tests_ctx
2310 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
2380 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
2486 struct crypto_aead *tfm = ctx->tfm; local
2667 struct crypto_aead *tfm; local
2717 test_cipher(struct crypto_cipher *tfm, int enc, const struct cipher_testvec *template, unsigned int tcount) argument
2810 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
3023 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
3077 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
3244 struct crypto_skcipher *tfm; local
3294 test_comp(struct crypto_comp *tfm, const struct comp_testvec *ctemplate, const struct comp_testvec *dtemplate, int ctcount, int dtcount) argument
3400 test_acomp(struct crypto_acomp *tfm, const struct comp_testvec *ctemplate, const struct comp_testvec *dtemplate, int ctcount, int dtcount) argument
3598 test_cprng(struct crypto_rng *tfm, const struct cprng_testvec *template, unsigned int tcount) argument
3664 struct crypto_cipher *tfm; local
3723 struct crypto_shash *tfm; local
3887 do_test_kpp(struct crypto_kpp *tfm, const struct kpp_testvec *vec, const char *alg) argument
4029 test_kpp(struct crypto_kpp *tfm, const char *alg, const struct kpp_testvec *vecs, unsigned int tcount) argument
4048 struct crypto_kpp *tfm; local
4071 test_akcipher_one(struct crypto_akcipher *tfm, const struct akcipher_testvec *vecs) argument
4253 test_akcipher(struct crypto_akcipher *tfm, const char *alg, const struct akcipher_testvec *vecs, unsigned int tcount) argument
4276 struct crypto_akcipher *tfm; local
[all...]
H A Dhctr2.c111 SHASH_DESC_ON_STACK(shash, tfm->polyval);
115 shash->tfm = tctx->polyval;
129 static int hctr2_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
132 struct hctr2_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
138 crypto_skcipher_get_flags(tfm) &
146 crypto_skcipher_get_flags(tfm) &
160 crypto_shash_set_flags(tctx->polyval, crypto_skcipher_get_flags(tfm) &
172 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
173 const struct hctr2_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
179 hash_desc->tfm
231 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
267 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
334 hctr2_init_tfm(struct crypto_skcipher *tfm) argument
385 hctr2_exit_tfm(struct crypto_skcipher *tfm) argument
[all...]
/linux-master/arch/riscv/crypto/
H A Daes-riscv64-glue.c89 static int riscv64_aes_setkey_cipher(struct crypto_tfm *tfm, argument
92 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
97 static int riscv64_aes_setkey_skcipher(struct crypto_skcipher *tfm, argument
100 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
107 static void riscv64_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
109 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
120 static void riscv64_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
122 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
137 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
138 const struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
175 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
215 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
279 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
344 riscv64_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
356 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
[all...]
/linux-master/drivers/crypto/caam/
H A Dcaampkc.c65 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
66 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
77 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
78 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
89 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
90 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
106 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
107 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
156 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
158 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
252 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
379 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
407 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
453 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
500 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
577 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
673 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
716 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
755 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
784 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
813 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
842 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
943 caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument
1048 caam_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument
1100 caam_rsa_max_size(struct crypto_akcipher *tfm) argument
1108 caam_rsa_init_tfm(struct crypto_akcipher *tfm) argument
1134 caam_rsa_exit_tfm(struct crypto_akcipher *tfm) argument
[all...]
/linux-master/drivers/crypto/ccree/
H A Dcc_cipher.c64 static inline enum cc_key_type cc_key_type(struct crypto_tfm *tfm) argument
66 struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm);
154 static int cc_cipher_init(struct crypto_tfm *tfm) argument
156 struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm);
158 container_of(tfm->__crt_alg, struct cc_crypto_alg,
165 crypto_tfm_alg_name(tfm));
172 const char *name = crypto_tfm_alg_name(tfm);
174 /* Alloc hash tfm for essiv */
177 dev_err(dev, "Error allocating hash tfm for ESSIV.\n");
182 /* Alloc fallabck tfm o
232 cc_cipher_exit(struct crypto_tfm *tfm) argument
304 struct crypto_tfm *tfm = crypto_skcipher_tfm(sktfm); local
404 struct crypto_tfm *tfm = crypto_skcipher_tfm(sktfm); local
510 cc_setup_readiv_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int ivsize, struct cc_hw_desc desc[], unsigned int *seq_size) argument
566 cc_setup_state_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int ivsize, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument
610 cc_setup_xex_state_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int ivsize, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument
688 cc_setup_key_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument
770 cc_setup_mlli_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, void *areq, struct cc_hw_desc desc[], unsigned int *seq_size) argument
797 cc_setup_flow_desc(struct crypto_tfm *tfm, struct cipher_req_ctx *req_ctx, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, struct cc_hw_desc desc[], unsigned int *seq_size) argument
881 struct crypto_tfm *tfm = crypto_skcipher_tfm(sk_tfm); local
[all...]
/linux-master/drivers/crypto/rockchip/
H A Drk3288_crypto_skcipher.c25 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
26 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
30 unsigned int bs = crypto_skcipher_blocksize(tfm);
70 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
71 struct rk_cipher_ctx *op = crypto_skcipher_ctx(tfm);
73 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
111 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); local
112 struct rk_cipher_ctx *ctx = crypto_tfm_ctx(tfm);
255 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); local
260 block = crypto_tfm_alg_blocksize(tfm);
302 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
434 rk_cipher_tfm_init(struct crypto_skcipher *tfm) argument
454 rk_cipher_tfm_exit(struct crypto_skcipher *tfm) argument
[all...]
/linux-master/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c102 struct crypto_aead *tfm; local
105 tfm = crypto_aead_reqtfm(req);
109 crypto_aead_authsize(tfm)) != 0)
238 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); local
239 struct otx_cpt_enc_ctx *ctx = crypto_tfm_ctx(tfm);
393 static int otx_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, argument
396 struct otx_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm);
401 ret = xts_verify_key(tfm, key, keylen);
422 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
425 struct otx_cpt_enc_ctx *ctx = crypto_skcipher_ctx(tfm);
438 cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen, u8 cipher_type) argument
464 otx_cpt_skcipher_cbc_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument
470 otx_cpt_skcipher_ecb_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument
476 otx_cpt_skcipher_cbc_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument
482 otx_cpt_skcipher_ecb_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, u32 keylen) argument
488 otx_cpt_enc_dec_init(struct crypto_skcipher *tfm) argument
505 cpt_aead_init(struct crypto_aead *tfm, u8 cipher_type, u8 mac_type) argument
554 otx_cpt_aead_cbc_aes_sha1_init(struct crypto_aead *tfm) argument
559 otx_cpt_aead_cbc_aes_sha256_init(struct crypto_aead *tfm) argument
564 otx_cpt_aead_cbc_aes_sha384_init(struct crypto_aead *tfm) argument
569 otx_cpt_aead_cbc_aes_sha512_init(struct crypto_aead *tfm) argument
574 otx_cpt_aead_ecb_null_sha1_init(struct crypto_aead *tfm) argument
579 otx_cpt_aead_ecb_null_sha256_init(struct crypto_aead *tfm) argument
584 otx_cpt_aead_ecb_null_sha384_init(struct crypto_aead *tfm) argument
589 otx_cpt_aead_ecb_null_sha512_init(struct crypto_aead *tfm) argument
594 otx_cpt_aead_gcm_aes_init(struct crypto_aead *tfm) argument
599 otx_cpt_aead_exit(struct crypto_aead *tfm) argument
614 otx_cpt_aead_set_authsize(struct crypto_aead *tfm, unsigned int authsize) argument
964 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1049 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1217 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
[all...]
/linux-master/net/ceph/
H A Dcrypto.c20 * Set ->key and ->tfm. The rest of the key should be filled in before
29 key->tfm = NULL;
51 key->tfm = crypto_alloc_sync_skcipher("cbc(aes)", 0, 0);
53 if (IS_ERR(key->tfm)) {
54 ret = PTR_ERR(key->tfm);
55 key->tfm = NULL;
59 ret = crypto_sync_skcipher_setkey(key->tfm, key->key, key->len);
140 if (key->tfm) {
141 crypto_free_sync_skcipher(key->tfm);
142 key->tfm
[all...]
/linux-master/arch/s390/crypto/
H A Dpaes_s390.c160 static int ecb_paes_init(struct crypto_skcipher *tfm) argument
162 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
170 static void ecb_paes_exit(struct crypto_skcipher *tfm) argument
172 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
197 static int ecb_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, argument
201 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
213 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
214 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
275 static int cbc_paes_init(struct crypto_skcipher *tfm) argument
277 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
285 cbc_paes_exit(struct crypto_skcipher *tfm) argument
312 cbc_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument
328 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
395 xts_paes_init(struct crypto_skcipher *tfm) argument
406 xts_paes_exit(struct crypto_skcipher *tfm) argument
454 xts_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int xts_key_len) argument
494 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
575 ctr_paes_init(struct crypto_skcipher *tfm) argument
585 ctr_paes_exit(struct crypto_skcipher *tfm) argument
613 ctr_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument
644 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
[all...]
/linux-master/drivers/crypto/ccp/
H A Dccp-crypto-sha.c30 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
32 unsigned int digest_size = crypto_ahash_digestsize(tfm);
61 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
62 struct ccp_ctx *ctx = crypto_ahash_ctx_dma(tfm);
66 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
184 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
185 struct ccp_ctx *ctx = crypto_ahash_ctx_dma(tfm);
188 ccp_crypto_ahash_alg(crypto_ahash_tfm(tfm));
190 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
272 static int ccp_sha_setkey(struct crypto_ahash *tfm, cons argument
314 ccp_sha_cra_init(struct crypto_tfm *tfm) argument
327 ccp_sha_cra_exit(struct crypto_tfm *tfm) argument
331 ccp_hmac_sha_cra_init(struct crypto_tfm *tfm) argument
349 ccp_hmac_sha_cra_exit(struct crypto_tfm *tfm) argument
[all...]
/linux-master/drivers/crypto/starfive/
H A Djh7110-rsa.c282 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
283 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm);
292 akcipher_request_set_tfm(req, tfm);
314 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
315 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm);
324 akcipher_request_set_tfm(req, tfm);
446 static int starfive_rsa_setkey(struct crypto_akcipher *tfm, const void *key, argument
449 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm);
497 static int starfive_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, argument
500 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm);
510 starfive_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument
523 starfive_rsa_max_size(struct crypto_akcipher *tfm) argument
533 starfive_rsa_init_tfm(struct crypto_akcipher *tfm) argument
553 starfive_rsa_exit_tfm(struct crypto_akcipher *tfm) argument
[all...]
/linux-master/arch/arm/crypto/
H A Dghash-ce-glue.c120 struct ghash_key *key = crypto_shash_ctx(desc->tfm);
150 struct ghash_key *key = crypto_shash_ctx(desc->tfm);
173 static int ghash_setkey(struct crypto_shash *tfm, argument
176 struct ghash_key *key = crypto_shash_ctx(tfm);
218 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
219 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm);
225 desc->tfm = child;
232 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
233 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm);
250 struct crypto_ahash *tfm local
267 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
289 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
306 ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument
318 ghash_async_init_tfm(struct crypto_tfm *tfm) argument
334 ghash_async_exit_tfm(struct crypto_tfm *tfm) argument
382 gcm_aes_setkey(struct crypto_aead *tfm, const u8 *inkey, unsigned int keylen) argument
416 gcm_aes_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
673 rfc4106_setkey(struct crypto_aead *tfm, const u8 *inkey, unsigned int keylen) argument
688 rfc4106_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
[all...]
/linux-master/fs/crypto/
H A Dkeysetup_v1.c55 struct crypto_skcipher *tfm = crypto_alloc_skcipher("ecb(aes)", 0, 0); local
57 if (IS_ERR(tfm)) {
58 res = PTR_ERR(tfm);
59 tfm = NULL;
62 crypto_skcipher_set_flags(tfm, CRYPTO_TFM_REQ_FORBID_WEAK_KEYS);
63 req = skcipher_request_alloc(tfm, GFP_KERNEL);
71 res = crypto_skcipher_setkey(tfm, nonce, FSCRYPT_FILE_NONCE_SIZE);
82 crypto_free_skcipher(tfm);
208 /* using existing tfm with same (descriptor, mode, raw_key) */
227 /* Is there already a tfm fo
[all...]
/linux-master/net/sunrpc/auth_gss/
H A Dgss_krb5_unseal.c74 struct crypto_ahash *tfm = ctx->initiate ? local
107 if (gss_krb5_checksum(tfm, ptr, GSS_KRB5_TOK_HDR_LEN,
/linux-master/drivers/crypto/chelsio/
H A Dchcr_algo.c174 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
175 int authsize = crypto_aead_authsize(tfm);
180 if ((get_aead_subtype(tfm) == CRYPTO_ALG_SUB_TYPE_AEAD_RFC4106) ||
181 (get_aead_subtype(tfm) == CRYPTO_ALG_SUB_TYPE_AEAD_GCM)) {
214 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
215 struct chcr_dev *dev = a_ctx(tfm)->dev;
364 static inline int is_hmac(struct crypto_tfm *tfm) argument
366 struct crypto_alg *alg = tfm->__crt_alg;
566 static inline int get_cryptoalg_subtype(struct crypto_skcipher *tfm) argument
568 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
713 struct crypto_tfm *tfm = req->tfm; local
800 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(wrparam->req); local
1057 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1098 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1132 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1160 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1248 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1364 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1409 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1466 chcr_init_tfm(struct crypto_skcipher *tfm) argument
1485 chcr_rfc3686_init(struct crypto_skcipher *tfm) argument
1506 chcr_exit_tfm(struct crypto_skcipher *tfm) argument
1564 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
2096 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
2152 struct crypto_tfm *tfm = req->tfm; local
2201 chcr_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument
2302 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
2314 chcr_sha_cra_init(struct crypto_tfm *tfm) argument
2345 chcr_hmac_cra_init(struct crypto_tfm *tfm) argument
2360 chcr_hmac_cra_exit(struct crypto_tfm *tfm) argument
2374 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
2382 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
2426 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
2444 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
2588 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
2649 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
2716 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
2762 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(wrparam->req); local
2944 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
2970 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
3045 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
3142 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
3256 chcr_aead_cra_init(struct crypto_aead *tfm) argument
3273 chcr_aead_cra_exit(struct crypto_aead *tfm) argument
3280 chcr_authenc_null_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
3289 chcr_authenc_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
3328 chcr_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
3364 chcr_4106_4309_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
3388 chcr_ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
3746 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
3796 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
3825 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
[all...]
/linux-master/drivers/crypto/
H A Dpadlock-aes.c97 static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm) argument
99 return aes_ctx_common(crypto_tfm_ctx(tfm));
102 static inline struct aes_ctx *skcipher_aes_ctx(struct crypto_skcipher *tfm) argument
104 return aes_ctx_common(crypto_skcipher_ctx(tfm));
107 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
110 struct aes_ctx *ctx = aes_ctx(tfm);
162 static int aes_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, argument
165 return aes_set_key(crypto_skcipher_tfm(tfm), in_key, key_len);
306 static void padlock_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
308 struct aes_ctx *ctx = aes_ctx(tfm);
315 padlock_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
346 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
371 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
411 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
438 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
[all...]

Completed in 203 milliseconds

1234567891011>>