Searched refs:tfm (Results 101 - 125 of 470) sorted by relevance

1234567891011>>

/linux-master/drivers/crypto/gemini/
H A Dsl3516-ce-cipher.c27 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
28 struct sl3516_ce_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm);
105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
106 struct sl3516_ce_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm);
108 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
129 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
130 struct sl3516_ce_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm);
133 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
146 crypto_tfm_alg_name(areq->base.tfm),
148 rctx->op_dir, areq->iv, crypto_skcipher_ivsize(tfm),
280 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
298 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
314 sl3516_ce_cipher_init(struct crypto_tfm *tfm) argument
353 sl3516_ce_cipher_exit(struct crypto_tfm *tfm) argument
362 sl3516_ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
[all...]
/linux-master/drivers/crypto/inside-secure/
H A Dsafexcel_cipher.c374 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); local
375 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm);
405 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); local
406 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm);
682 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm);
923 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm);
1004 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1015 req->cryptlen + crypto_aead_authsize(tfm),
1025 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm);
1043 struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(req->base.tfm);
1075 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1094 safexcel_cipher_exit_inv(struct crypto_tfm *tfm, struct crypto_async_request *base, struct safexcel_cipher_req *sreq, struct crypto_wait *result) argument
1127 safexcel_skcipher_exit_inv(struct crypto_tfm *tfm) argument
1142 safexcel_aead_exit_inv(struct crypto_tfm *tfm) argument
1206 safexcel_skcipher_cra_init(struct crypto_tfm *tfm) argument
1225 safexcel_cipher_cra_exit(struct crypto_tfm *tfm) argument
1239 safexcel_skcipher_cra_exit(struct crypto_tfm *tfm) argument
1259 safexcel_aead_cra_exit(struct crypto_tfm *tfm) argument
1279 safexcel_skcipher_aes_ecb_cra_init(struct crypto_tfm *tfm) argument
1317 safexcel_skcipher_aes_cbc_cra_init(struct crypto_tfm *tfm) argument
1358 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); local
1391 safexcel_skcipher_aes_ctr_cra_init(struct crypto_tfm *tfm) argument
1452 safexcel_skcipher_des_cbc_cra_init(struct crypto_tfm *tfm) argument
1491 safexcel_skcipher_des_ecb_cra_init(struct crypto_tfm *tfm) argument
1551 safexcel_skcipher_des3_cbc_cra_init(struct crypto_tfm *tfm) argument
1590 safexcel_skcipher_des3_ecb_cra_init(struct crypto_tfm *tfm) argument
1642 safexcel_aead_cra_init(struct crypto_tfm *tfm) argument
1665 safexcel_aead_sha1_cra_init(struct crypto_tfm *tfm) argument
1701 safexcel_aead_sha256_cra_init(struct crypto_tfm *tfm) argument
1737 safexcel_aead_sha224_cra_init(struct crypto_tfm *tfm) argument
1773 safexcel_aead_sha512_cra_init(struct crypto_tfm *tfm) argument
1809 safexcel_aead_sha384_cra_init(struct crypto_tfm *tfm) argument
1845 safexcel_aead_sha1_des3_cra_init(struct crypto_tfm *tfm) argument
1882 safexcel_aead_sha256_des3_cra_init(struct crypto_tfm *tfm) argument
1919 safexcel_aead_sha224_des3_cra_init(struct crypto_tfm *tfm) argument
1956 safexcel_aead_sha512_des3_cra_init(struct crypto_tfm *tfm) argument
1993 safexcel_aead_sha384_des3_cra_init(struct crypto_tfm *tfm) argument
2030 safexcel_aead_sha1_des_cra_init(struct crypto_tfm *tfm) argument
2067 safexcel_aead_sha256_des_cra_init(struct crypto_tfm *tfm) argument
2104 safexcel_aead_sha224_des_cra_init(struct crypto_tfm *tfm) argument
2141 safexcel_aead_sha512_des_cra_init(struct crypto_tfm *tfm) argument
2178 safexcel_aead_sha384_des_cra_init(struct crypto_tfm *tfm) argument
2215 safexcel_aead_sha1_ctr_cra_init(struct crypto_tfm *tfm) argument
2250 safexcel_aead_sha256_ctr_cra_init(struct crypto_tfm *tfm) argument
2285 safexcel_aead_sha224_ctr_cra_init(struct crypto_tfm *tfm) argument
2320 safexcel_aead_sha512_ctr_cra_init(struct crypto_tfm *tfm) argument
2355 safexcel_aead_sha384_ctr_cra_init(struct crypto_tfm *tfm) argument
2393 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); local
2448 safexcel_skcipher_aes_xts_cra_init(struct crypto_tfm *tfm) argument
2507 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); local
2555 safexcel_aead_gcm_cra_init(struct crypto_tfm *tfm) argument
2568 safexcel_aead_gcm_cra_exit(struct crypto_tfm *tfm) argument
2573 safexcel_aead_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
2609 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); local
2650 safexcel_aead_ccm_cra_init(struct crypto_tfm *tfm) argument
2663 safexcel_aead_ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
2756 safexcel_skcipher_chacha20_cra_init(struct crypto_tfm *tfm) argument
2813 safexcel_aead_chachapoly_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
2826 struct crypto_tfm *tfm = crypto_aead_tfm(aead); local
2884 safexcel_aead_fallback_cra_init(struct crypto_tfm *tfm) argument
2906 safexcel_aead_chachapoly_cra_init(struct crypto_tfm *tfm) argument
2920 safexcel_aead_fallback_cra_exit(struct crypto_tfm *tfm) argument
2957 safexcel_aead_chachapolyesp_cra_init(struct crypto_tfm *tfm) argument
3000 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); local
3037 safexcel_skcipher_sm4_ecb_cra_init(struct crypto_tfm *tfm) argument
3075 safexcel_skcipher_sm4_cbc_cra_init(struct crypto_tfm *tfm) argument
3116 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); local
3127 safexcel_skcipher_sm4_ctr_cra_init(struct crypto_tfm *tfm) argument
3178 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
3188 safexcel_aead_sm4cbc_sha1_cra_init(struct crypto_tfm *tfm) argument
3229 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); local
3240 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); local
3251 struct crypto_tfm *tfm = crypto_aead_tfm(aead); local
3284 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
3297 safexcel_aead_sm4cbc_sm3_cra_init(struct crypto_tfm *tfm) argument
3337 safexcel_aead_sm4ctr_sha1_cra_init(struct crypto_tfm *tfm) argument
3372 safexcel_aead_sm4ctr_sm3_cra_init(struct crypto_tfm *tfm) argument
3410 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); local
3420 safexcel_rfc4106_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
3438 safexcel_rfc4106_gcm_cra_init(struct crypto_tfm *tfm) argument
3475 safexcel_rfc4543_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
3484 safexcel_rfc4543_gcm_cra_init(struct crypto_tfm *tfm) argument
3523 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); local
3537 safexcel_rfc4309_ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
3575 safexcel_rfc4309_ccm_cra_init(struct crypto_tfm *tfm) argument
[all...]
/linux-master/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-cipher.c17 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
18 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm);
20 unsigned int ivsize = crypto_skcipher_ivsize(tfm);
38 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
150 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
151 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm);
154 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
178 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
179 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm);
184 unsigned int ivsize = crypto_skcipher_ivsize(tfm);
399 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
410 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
422 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
433 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
445 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
456 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
468 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
479 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
491 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
502 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
514 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
525 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
534 sun4i_ss_cipher_init(struct crypto_tfm *tfm) argument
568 sun4i_ss_cipher_exit(struct crypto_tfm *tfm) argument
577 sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
607 sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
627 sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
[all...]
H A Dsun4i-ss-prng.c4 int sun4i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, argument
8 struct rng_alg *alg = crypto_rng_alg(tfm);
16 int sun4i_ss_prng_generate(struct crypto_rng *tfm, const u8 *src, argument
20 struct rng_alg *alg = crypto_rng_alg(tfm);
/linux-master/arch/x86/crypto/
H A Ddes3_ede_glue.c56 static void des3_ede_x86_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
58 des3_ede_enc_blk(crypto_tfm_ctx(tfm), dst, src);
61 static void des3_ede_x86_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
63 des3_ede_dec_blk(crypto_tfm_ctx(tfm), dst, src);
112 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
113 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm);
120 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
121 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm);
151 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
152 struct des3_ede_x86_ctx *ctx = crypto_skcipher_ctx(tfm);
230 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
246 des3_ede_x86_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument
280 des3_ede_x86_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
[all...]
/linux-master/crypto/
H A Dxcbc.c21 * | <parent tfm>
74 int bs = crypto_shash_blocksize(pdesc->tfm);
86 struct crypto_shash *parent = pdesc->tfm;
89 struct crypto_cipher *tfm = tctx->child; local
107 crypto_cipher_encrypt_one(tfm, prev, prev);
115 crypto_cipher_encrypt_one(tfm, prev, prev);
131 struct crypto_shash *parent = pdesc->tfm;
134 struct crypto_cipher *tfm = tctx->child; local
157 crypto_cipher_encrypt_one(tfm, out, prev);
162 static int xcbc_init_tfm(struct crypto_tfm *tfm) argument
178 xcbc_exit_tfm(struct crypto_tfm *tfm) argument
[all...]
H A Dalgif_aead.c51 struct crypto_aead *tfm = aeadc->aead; local
52 unsigned int as = crypto_aead_authsize(tfm);
68 struct crypto_aead *tfm = aeadc->aead; local
69 unsigned int ivsize = crypto_aead_ivsize(tfm);
97 struct crypto_aead *tfm = aeadc->aead; local
99 unsigned int i, as = crypto_aead_authsize(tfm);
154 crypto_aead_reqsize(tfm));
285 aead_request_set_tfm(&areq->cra_u.aead_req, tfm);
382 struct aead_tfm *tfm; local
392 tfm
457 struct aead_tfm *tfm; local
486 struct aead_tfm *tfm = private; local
495 struct aead_tfm *tfm = private; local
502 struct aead_tfm *tfm = private; local
514 struct crypto_aead *tfm = aeadc->aead; local
527 struct aead_tfm *tfm = private; local
557 struct aead_tfm *tfm = private; local
[all...]
H A Dskcipher.c469 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
470 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
487 walk->blocksize = crypto_skcipher_blocksize(tfm);
488 walk->ivsize = crypto_skcipher_ivsize(tfm);
489 walk->alignmask = crypto_skcipher_alignmask(tfm);
530 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
556 walk->blocksize = crypto_aead_blocksize(tfm);
557 walk->stride = crypto_aead_chunksize(tfm);
558 walk->ivsize = crypto_aead_ivsize(tfm);
559 walk->alignmask = crypto_aead_alignmask(tfm);
581 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
589 skcipher_set_needkey(struct crypto_skcipher *tfm) argument
595 skcipher_setkey_unaligned(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
616 crypto_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
655 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
679 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
703 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
716 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
739 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
750 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
759 crypto_skcipher_exit_tfm(struct crypto_tfm *tfm) argument
767 crypto_skcipher_init_tfm(struct crypto_tfm *tfm) argument
909 struct crypto_skcipher *tfm; local
1048 skcipher_setkey_simple(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
1059 skcipher_init_tfm_simple(struct crypto_skcipher *tfm) argument
1074 skcipher_exit_tfm_simple(struct crypto_skcipher *tfm) argument
[all...]
H A Dxxhash_generic.c20 static int xxhash64_setkey(struct crypto_shash *tfm, const u8 *key, argument
23 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(tfm);
33 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
63 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
H A Dtea.c42 static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument
45 struct tea_ctx *ctx = crypto_tfm_ctx(tfm);
57 static void tea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
61 struct tea_ctx *ctx = crypto_tfm_ctx(tfm);
85 static void tea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
89 struct tea_ctx *ctx = crypto_tfm_ctx(tfm);
115 static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument
118 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm);
130 static void xtea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
134 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm);
151 xtea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
174 xeta_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
195 xeta_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
[all...]
H A Dzstd.c106 static void *zstd_alloc_ctx(struct crypto_scomp *tfm) argument
124 static int zstd_init(struct crypto_tfm *tfm) argument
126 struct zstd_ctx *ctx = crypto_tfm_ctx(tfm);
137 static void zstd_free_ctx(struct crypto_scomp *tfm, void *ctx) argument
143 static void zstd_exit(struct crypto_tfm *tfm) argument
145 struct zstd_ctx *ctx = crypto_tfm_ctx(tfm);
164 static int zstd_compress(struct crypto_tfm *tfm, const u8 *src, argument
167 struct zstd_ctx *ctx = crypto_tfm_ctx(tfm);
172 static int zstd_scompress(struct crypto_scomp *tfm, const u8 *src, argument
192 static int zstd_decompress(struct crypto_tfm *tfm, cons argument
200 zstd_sdecompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument
[all...]
H A Dacompress.c31 static inline struct acomp_alg *crypto_acomp_alg(struct crypto_acomp *tfm) argument
33 return __crypto_acomp_alg(crypto_acomp_tfm(tfm)->__crt_alg);
56 static void crypto_acomp_exit_tfm(struct crypto_tfm *tfm) argument
58 struct crypto_acomp *acomp = __crypto_acomp_tfm(tfm);
64 static int crypto_acomp_init_tfm(struct crypto_tfm *tfm) argument
66 struct crypto_acomp *acomp = __crypto_acomp_tfm(tfm);
69 if (tfm->__crt_alg->cra_type != &crypto_acomp_type)
70 return crypto_init_scomp_ops_async(tfm);
157 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); local
161 if (req && (tfm
171 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); local
[all...]
H A Ddeflate.c17 * to configure on a per-tfm basis in the future.
19 * Currently, compression history is not maintained between tfm calls, as
115 static void *deflate_alloc_ctx(struct crypto_scomp *tfm) argument
133 static int deflate_init(struct crypto_tfm *tfm) argument
135 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm);
146 static void deflate_free_ctx(struct crypto_scomp *tfm, void *ctx) argument
152 static void deflate_exit(struct crypto_tfm *tfm) argument
154 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm);
188 static int deflate_compress(struct crypto_tfm *tfm, const u8 *src, argument
191 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm);
196 deflate_scompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument
244 deflate_decompress(struct crypto_tfm *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen) argument
252 deflate_sdecompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument
[all...]
/linux-master/include/crypto/internal/
H A Dhash.h76 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key,
132 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) argument
134 return crypto_tfm_ctx(crypto_ahash_tfm(tfm));
137 static inline void *crypto_ahash_ctx_dma(struct crypto_ahash *tfm) argument
139 return crypto_tfm_ctx_dma(crypto_ahash_tfm(tfm));
154 static inline void crypto_ahash_set_statesize(struct crypto_ahash *tfm, argument
157 tfm->statesize = size;
160 static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, argument
163 tfm->reqsize = reqsize;
234 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) argument
268 __crypto_shash_cast(struct crypto_tfm *tfm) argument
[all...]
/linux-master/drivers/crypto/
H A Dgeode-aes.c110 static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key, argument
113 struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm);
131 (tfm->crt_flags & CRYPTO_TFM_REQ_MASK);
136 static int geode_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, argument
139 struct geode_aes_tfm_ctx *tctx = crypto_skcipher_ctx(tfm);
158 crypto_skcipher_get_flags(tfm) &
164 geode_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
166 const struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm);
179 geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
181 const struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm);
192 fallback_init_cip(struct crypto_tfm *tfm) argument
208 fallback_exit_cip(struct crypto_tfm *tfm) argument
238 geode_init_skcipher(struct crypto_skcipher *tfm) argument
256 geode_exit_skcipher(struct crypto_skcipher *tfm) argument
265 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
[all...]
/linux-master/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-hash.c26 int sun8i_ce_hash_init_tfm(struct crypto_ahash *tfm) argument
28 struct sun8i_ce_hash_tfm_ctx *op = crypto_ahash_ctx(tfm);
29 struct ahash_alg *alg = crypto_ahash_alg(tfm);
37 op->fallback_tfm = crypto_alloc_ahash(crypto_ahash_alg_name(tfm), 0,
44 crypto_ahash_set_statesize(tfm,
47 crypto_ahash_set_reqsize(tfm,
64 void sun8i_ce_hash_exit_tfm(struct crypto_ahash *tfm) argument
66 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm);
75 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
76 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm);
89 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
101 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
113 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
138 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
153 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
181 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
208 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
241 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
333 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
[all...]
/linux-master/drivers/crypto/intel/ixp4xx/
H A Dixp4xx_crypto.c143 struct crypto_tfm *tfm; member in union:crypt_ctl::__anon176
247 static inline u32 cipher_cfg_enc(struct crypto_tfm *tfm) argument
249 return container_of(tfm->__crt_alg, struct ixp_alg, crypto.base)->cfg_enc;
252 static inline u32 cipher_cfg_dec(struct crypto_tfm *tfm) argument
254 return container_of(tfm->__crt_alg, struct ixp_alg, crypto.base)->cfg_dec;
257 static inline const struct ix_hash_algo *ix_hash(struct crypto_tfm *tfm) argument
259 return container_of(tfm->__crt_alg, struct ixp_alg, crypto.base)->hash;
355 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
356 int authsize = crypto_aead_authsize(tfm);
393 struct crypto_skcipher *tfm local
614 init_tfm(struct crypto_tfm *tfm) argument
630 init_tfm_ablk(struct crypto_skcipher *tfm) argument
652 init_tfm_aead(struct crypto_aead *tfm) argument
658 exit_tfm(struct crypto_tfm *tfm) argument
666 exit_tfm_ablk(struct crypto_skcipher *tfm) argument
675 exit_tfm_aead(struct crypto_aead *tfm) argument
680 register_chain_var(struct crypto_tfm *tfm, u8 xpad, u32 target, int init_len, u32 ctx_addr, const u8 *key, int key_len) argument
736 setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned int authsize, const u8 *key, int key_len, unsigned int digest_len) argument
783 gen_rev_aes_key(struct crypto_tfm *tfm) argument
811 setup_cipher(struct crypto_tfm *tfm, int encrypt, const u8 *key, int key_len) argument
901 ablk_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int key_len) argument
931 ablk_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int key_len) argument
938 ablk_rfc3686_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int key_len) argument
956 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
975 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1068 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1091 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1203 aead_setup(struct crypto_aead *tfm, unsigned int authsize) argument
1235 aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
1244 aead_setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) argument
1271 des3_aead_setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) argument
[all...]
/linux-master/drivers/crypto/qce/
H A Dsha.h61 static inline struct qce_alg_template *to_ahash_tmpl(struct crypto_tfm *tfm) argument
63 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm);
H A Daead.h47 static inline struct qce_alg_template *to_aead_tmpl(struct crypto_aead *tfm) argument
49 struct aead_alg *alg = crypto_aead_alg(tfm);
/linux-master/arch/arm/crypto/
H A Daes-neonbs-glue.c68 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument
71 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm);
92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
93 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm);
127 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument
130 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
151 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
152 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
166 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
167 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
192 cbc_init(struct crypto_skcipher *tfm) argument
209 cbc_exit(struct crypto_skcipher *tfm) argument
216 aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument
237 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
270 ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) argument
293 aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument
314 xts_init(struct crypto_skcipher *tfm) argument
329 xts_exit(struct crypto_skcipher *tfm) argument
341 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
[all...]
/linux-master/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-cipher.c25 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
26 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
91 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
92 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm);
97 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
122 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
123 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm);
129 unsigned int ivsize = crypto_skcipher_ivsize(tfm);
185 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
186 struct sun8i_cipher_tfm_ctx *op = crypto_skcipher_ctx(tfm);
347 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
368 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); local
387 sun8i_ss_cipher_init(struct crypto_tfm *tfm) argument
427 sun8i_ss_cipher_exit(struct crypto_tfm *tfm) argument
436 sun8i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
465 sun8i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
[all...]
/linux-master/include/crypto/
H A Dcast5.h19 int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
H A Dserpent.h23 int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
H A Dctr.h24 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
25 int blocksize = crypto_skcipher_chunksize(tfm);
50 fn(tfm, walk.iv, buf);
/linux-master/drivers/crypto/ccp/
H A Dccp-crypto-aes.c38 static int ccp_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
41 struct ccp_crypto_skcipher_alg *alg = ccp_crypto_skcipher_alg(tfm);
42 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm);
68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
69 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm);
120 static int ccp_aes_init_tfm(struct crypto_skcipher *tfm) argument
122 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm);
127 crypto_skcipher_set_reqsize(tfm, sizeof(struct ccp_aes_req_ctx));
144 static int ccp_aes_rfc3686_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
147 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm);
160 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
192 ccp_aes_rfc3686_init_tfm(struct crypto_skcipher *tfm) argument
[all...]

Completed in 267 milliseconds

1234567891011>>