Searched refs:tfm (Results 51 - 75 of 470) sorted by relevance

1234567891011>>

/linux-master/include/crypto/internal/
H A Dkpp.h76 static inline void *kpp_tfm_ctx(struct crypto_kpp *tfm) argument
78 return crypto_tfm_ctx(&tfm->base);
81 static inline void *kpp_tfm_ctx_dma(struct crypto_kpp *tfm) argument
83 return crypto_tfm_ctx_dma(&tfm->base);
91 static inline const char *kpp_alg_name(struct crypto_kpp *tfm) argument
93 return crypto_kpp_tfm(tfm)->__crt_alg->cra_name;
H A Dakcipher.h59 static inline void *akcipher_tfm_ctx(struct crypto_akcipher *tfm) argument
61 return crypto_tfm_ctx(&tfm->base);
64 static inline void *akcipher_tfm_ctx_dma(struct crypto_akcipher *tfm) argument
66 return crypto_tfm_ctx_dma(&tfm->base);
75 static inline const char *akcipher_alg_name(struct crypto_akcipher *tfm) argument
77 return crypto_akcipher_tfm(tfm)->__crt_alg->cra_name;
/linux-master/arch/riscv/crypto/
H A Dsm4-riscv64-glue.c27 static int riscv64_sm4_setkey(struct crypto_tfm *tfm, const u8 *key, argument
30 struct sm4_ctx *ctx = crypto_tfm_ctx(tfm);
43 static void riscv64_sm4_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
45 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm);
56 static void riscv64_sm4_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
58 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm);
/linux-master/drivers/crypto/qce/
H A Dcipher.h48 static inline struct qce_alg_template *to_cipher_tmpl(struct crypto_skcipher *tfm) argument
50 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
/linux-master/fs/smb/server/
H A Dcrypto_ctx.c34 crypto_free_shash(shash->tfm);
41 struct crypto_aead *tfm = NULL; local
45 tfm = crypto_alloc_aead("gcm(aes)", 0, 0);
48 tfm = crypto_alloc_aead("ccm(aes)", 0, 0);
55 if (IS_ERR(tfm)) {
56 pr_err("Failed to alloc encrypt aead : %ld\n", PTR_ERR(tfm));
60 return tfm;
65 struct crypto_shash *tfm = NULL; local
70 tfm = crypto_alloc_shash("hmac(md5)", 0, 0);
73 tfm
[all...]
/linux-master/crypto/
H A Dcryptd.c141 refcnt = crypto_tfm_ctx(request->tfm);
187 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) argument
189 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm);
270 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
271 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm);
285 crypto_free_skcipher(tfm);
316 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
320 queue = cryptd_get_queue(crypto_skcipher_tfm(tfm));
339 static int cryptd_skcipher_init_tfm(struct crypto_skcipher *tfm) argument
341 struct skcipher_instance *inst = skcipher_alg_instance(tfm);
358 cryptd_skcipher_exit_tfm(struct crypto_skcipher *tfm) argument
430 cryptd_hash_init_tfm(struct crypto_ahash *tfm) argument
449 cryptd_hash_clone_tfm(struct crypto_ahash *ntfm, struct crypto_ahash *tfm) argument
464 cryptd_hash_exit_tfm(struct crypto_ahash *tfm) argument
487 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
516 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
534 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
610 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
641 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
745 struct crypto_aead *tfm; local
812 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
833 cryptd_aead_init_tfm(struct crypto_aead *tfm) argument
852 cryptd_aead_exit_tfm(struct crypto_aead *tfm) argument
954 struct crypto_skcipher *tfm; local
976 cryptd_skcipher_child(struct cryptd_skcipher *tfm) argument
984 cryptd_skcipher_queued(struct cryptd_skcipher *tfm) argument
992 cryptd_free_skcipher(struct cryptd_skcipher *tfm) argument
1006 struct crypto_ahash *tfm; local
1026 cryptd_ahash_child(struct cryptd_ahash *tfm) argument
1041 cryptd_ahash_queued(struct cryptd_ahash *tfm) argument
1049 cryptd_free_ahash(struct cryptd_ahash *tfm) argument
1063 struct crypto_aead *tfm; local
1083 cryptd_aead_child(struct cryptd_aead *tfm) argument
1091 cryptd_aead_queued(struct cryptd_aead *tfm) argument
1099 cryptd_free_aead(struct cryptd_aead *tfm) argument
[all...]
H A Dahash.c47 * For an ahash tfm that is using an shash algorithm (instead of an ahash
48 * algorithm), this returns the underlying shash tfm.
50 static inline struct crypto_shash *ahash_to_shash(struct crypto_ahash *tfm) argument
52 return *(struct crypto_shash **)crypto_ahash_ctx(tfm);
56 struct crypto_ahash *tfm)
60 desc->tfm = ahash_to_shash(tfm);
122 static void crypto_exit_ahash_using_shash(struct crypto_tfm *tfm) argument
124 struct crypto_shash **ctx = crypto_tfm_ctx(tfm);
129 static int crypto_init_ahash_using_shash(struct crypto_tfm *tfm) argument
55 prepare_shash_desc(struct ahash_request *req, struct crypto_ahash *tfm) argument
227 ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument
233 ahash_set_needkey(struct crypto_ahash *tfm, struct ahash_alg *alg) argument
240 crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument
271 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
284 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
346 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
361 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
376 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
395 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
470 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
486 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
496 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
506 crypto_ahash_exit_tfm(struct crypto_tfm *tfm) argument
514 crypto_ahash_init_tfm(struct crypto_tfm *tfm) argument
634 struct crypto_tfm *tfm = crypto_ahash_tfm(hash); local
[all...]
H A Dlz4hc.c18 static void *lz4hc_alloc_ctx(struct crypto_scomp *tfm) argument
29 static int lz4hc_init(struct crypto_tfm *tfm) argument
31 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm);
40 static void lz4hc_free_ctx(struct crypto_scomp *tfm, void *ctx) argument
45 static void lz4hc_exit(struct crypto_tfm *tfm) argument
47 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm);
65 static int lz4hc_scompress(struct crypto_scomp *tfm, const u8 *src, argument
72 static int lz4hc_compress_crypto(struct crypto_tfm *tfm, const u8 *src, argument
76 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm);
94 static int lz4hc_sdecompress(struct crypto_scomp *tfm, cons argument
101 lz4hc_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen) argument
[all...]
H A Dlz4.c19 static void *lz4_alloc_ctx(struct crypto_scomp *tfm) argument
30 static int lz4_init(struct crypto_tfm *tfm) argument
32 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm);
41 static void lz4_free_ctx(struct crypto_scomp *tfm, void *ctx) argument
46 static void lz4_exit(struct crypto_tfm *tfm) argument
48 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm);
66 static int lz4_scompress(struct crypto_scomp *tfm, const u8 *src, argument
73 static int lz4_compress_crypto(struct crypto_tfm *tfm, const u8 *src, argument
76 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm);
93 static int lz4_sdecompress(struct crypto_scomp *tfm, cons argument
100 lz4_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen) argument
[all...]
H A Dlzo-rle.c18 static void *lzorle_alloc_ctx(struct crypto_scomp *tfm) argument
29 static int lzorle_init(struct crypto_tfm *tfm) argument
31 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm);
40 static void lzorle_free_ctx(struct crypto_scomp *tfm, void *ctx) argument
45 static void lzorle_exit(struct crypto_tfm *tfm) argument
47 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm);
67 static int lzorle_compress(struct crypto_tfm *tfm, const u8 *src, argument
70 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm);
75 static int lzorle_scompress(struct crypto_scomp *tfm, const u8 *src, argument
97 static int lzorle_decompress(struct crypto_tfm *tfm, cons argument
103 lzorle_sdecompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument
[all...]
H A Dlzo.c18 static void *lzo_alloc_ctx(struct crypto_scomp *tfm) argument
29 static int lzo_init(struct crypto_tfm *tfm) argument
31 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm);
40 static void lzo_free_ctx(struct crypto_scomp *tfm, void *ctx) argument
45 static void lzo_exit(struct crypto_tfm *tfm) argument
47 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm);
67 static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, argument
70 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm);
75 static int lzo_scompress(struct crypto_scomp *tfm, const u8 *src, argument
97 static int lzo_decompress(struct crypto_tfm *tfm, cons argument
103 lzo_sdecompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument
[all...]
H A Daead.c32 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, argument
35 unsigned long alignmask = crypto_aead_alignmask(tfm);
47 ret = crypto_aead_alg(tfm)->setkey(tfm, alignbuffer, keylen);
53 int crypto_aead_setkey(struct crypto_aead *tfm, argument
56 unsigned long alignmask = crypto_aead_alignmask(tfm);
60 err = setkey_unaligned(tfm, key, keylen);
62 err = crypto_aead_alg(tfm)->setkey(tfm, key, keylen);
65 crypto_aead_set_flags(tfm, CRYPTO_TFM_NEED_KE
74 crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
152 crypto_aead_exit_tfm(struct crypto_tfm *tfm) argument
160 crypto_aead_init_tfm(struct crypto_tfm *tfm) argument
[all...]
H A Dansi_cprng.c47 struct crypto_cipher *tfm; member in struct:prng_context
156 crypto_cipher_encrypt_one(ctx->tfm, output, tmp);
273 crypto_free_cipher(ctx->tfm);
306 ret = crypto_cipher_setkey(ctx->tfm, prng_key, klen);
309 crypto_cipher_get_flags(ctx->tfm));
320 static int cprng_init(struct crypto_tfm *tfm) argument
322 struct prng_context *ctx = crypto_tfm_ctx(tfm);
325 ctx->tfm = crypto_alloc_cipher("aes", 0, 0);
326 if (IS_ERR(ctx->tfm)) {
327 dbgprint(KERN_CRIT "Failed to alloc tfm fo
344 cprng_exit(struct crypto_tfm *tfm) argument
349 cprng_get_random(struct crypto_rng *tfm, const u8 *src, unsigned int slen, u8 *rdata, unsigned int dlen) argument
364 cprng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) argument
385 fips_cprng_get_random(struct crypto_rng *tfm, const u8 *src, unsigned int slen, u8 *rdata, unsigned int dlen) argument
394 fips_cprng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) argument
[all...]
H A Dcompress.h18 int crypto_init_scomp_ops_async(struct crypto_tfm *tfm);
H A Dskcipher.h25 int crypto_init_lskcipher_ops_sg(struct crypto_tfm *tfm);
H A Dcbc.c15 static int crypto_cbc_encrypt_segment(struct crypto_lskcipher *tfm, argument
19 unsigned int bsize = crypto_lskcipher_blocksize(tfm);
23 crypto_lskcipher_encrypt(tfm, iv, dst, bsize, NULL);
30 static int crypto_cbc_encrypt_inplace(struct crypto_lskcipher *tfm, argument
33 unsigned int bsize = crypto_lskcipher_blocksize(tfm);
41 crypto_lskcipher_encrypt(tfm, src, src, bsize, NULL);
53 static int crypto_cbc_encrypt(struct crypto_lskcipher *tfm, const u8 *src, argument
56 struct crypto_lskcipher **ctx = crypto_lskcipher_ctx(tfm);
69 static int crypto_cbc_decrypt_segment(struct crypto_lskcipher *tfm, argument
73 unsigned int bsize = crypto_lskcipher_blocksize(tfm);
94 crypto_cbc_decrypt_inplace(struct crypto_lskcipher *tfm, u8 *src, unsigned nbytes, u8 *iv) argument
122 crypto_cbc_decrypt(struct crypto_lskcipher *tfm, const u8 *src, u8 *dst, unsigned len, u8 *iv, u32 flags) argument
[all...]
H A Dpcbc.c22 struct crypto_cipher *tfm)
24 int bsize = crypto_cipher_blocksize(tfm);
32 crypto_cipher_encrypt_one(tfm, dst, iv);
44 struct crypto_cipher *tfm)
46 int bsize = crypto_cipher_blocksize(tfm);
55 crypto_cipher_encrypt_one(tfm, src, iv);
66 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
67 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm);
89 struct crypto_cipher *tfm)
91 int bsize = crypto_cipher_blocksize(tfm);
20 crypto_pcbc_encrypt_segment(struct skcipher_request *req, struct skcipher_walk *walk, struct crypto_cipher *tfm) argument
42 crypto_pcbc_encrypt_inplace(struct skcipher_request *req, struct skcipher_walk *walk, struct crypto_cipher *tfm) argument
87 crypto_pcbc_decrypt_segment(struct skcipher_request *req, struct skcipher_walk *walk, struct crypto_cipher *tfm) argument
109 crypto_pcbc_decrypt_inplace(struct skcipher_request *req, struct skcipher_walk *walk, struct crypto_cipher *tfm) argument
133 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
[all...]
H A Dsimd.c50 static int simd_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
53 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm);
57 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(tfm) &
64 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
65 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm);
85 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
86 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm);
104 static void simd_skcipher_exit(struct crypto_skcipher *tfm) argument
106 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm);
111 static int simd_skcipher_init(struct crypto_skcipher *tfm) argument
144 struct crypto_skcipher *tfm; local
290 simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, unsigned int key_len) argument
302 simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) argument
312 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
333 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
352 simd_aead_exit(struct crypto_aead *tfm) argument
359 simd_aead_init(struct crypto_aead *tfm) argument
391 struct crypto_aead *tfm; local
[all...]
/linux-master/arch/x86/crypto/
H A Dghash-clmulni-intel_glue.c54 static int ghash_setkey(struct crypto_shash *tfm, argument
57 struct ghash_ctx *ctx = crypto_shash_ctx(tfm);
99 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm);
152 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm);
181 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
182 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm);
188 desc->tfm = child;
195 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
196 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm);
213 struct crypto_ahash *tfm local
253 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
272 ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument
284 ghash_async_init_tfm(struct crypto_tfm *tfm) argument
302 ghash_async_exit_tfm(struct crypto_tfm *tfm) argument
[all...]
H A Dtwofish_glue.c54 static void twofish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
56 twofish_enc_blk(crypto_tfm_ctx(tfm), dst, src);
59 static void twofish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
61 twofish_dec_blk(crypto_tfm_ctx(tfm), dst, src);
/linux-master/include/crypto/
H A Dblowfish.h21 int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key,
H A Dtwofish.h23 int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len);
/linux-master/arch/arm/crypto/
H A Daes-cipher-glue.c16 static void aes_arm_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
18 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
24 static void aes_arm_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
26 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
/linux-master/arch/arm64/crypto/
H A Daes-cipher-glue.c15 static void aes_arm64_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
17 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
23 static void aes_arm64_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
25 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
/linux-master/drivers/crypto/rockchip/
H A Drk3288_crypto_ahash.c47 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
48 struct rk_ahash_ctx *tfmctx = crypto_ahash_ctx(tfm);
49 struct ahash_alg *alg = crypto_ahash_alg(tfm);
67 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
68 int rk_digest_size = crypto_ahash_digestsize(tfm);
123 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
124 struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm);
136 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
137 struct rk_ahash_ctx *ctx = crypto_ahash_ctx(tfm);
151 struct crypto_ahash *tfm local
165 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
182 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
195 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local
261 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); local
344 rk_hash_init_tfm(struct crypto_ahash *tfm) argument
366 rk_hash_exit_tfm(struct crypto_ahash *tfm) argument
[all...]

Completed in 233 milliseconds

1234567891011>>