Searched refs:tfm (Results 1 - 25 of 477) sorted by relevance

1234567891011>>

/linux-master/include/crypto/
H A Dsig.h30 * crypto_alloc_sig() - allocate signature tfm handle
45 static inline struct crypto_tfm *crypto_sig_tfm(struct crypto_sig *tfm) argument
47 return &tfm->base;
51 * crypto_free_sig() - free signature tfm handle
53 * @tfm: signature tfm handle allocated with crypto_alloc_sig()
55 * If @tfm is a NULL or error pointer, this function does nothing.
57 static inline void crypto_free_sig(struct crypto_sig *tfm) argument
59 crypto_destroy_tfm(tfm, crypto_sig_tfm(tfm));
[all...]
H A Dskcipher.h152 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
158 int (*init)(struct crypto_skcipher *tfm);
159 void (*exit)(struct crypto_skcipher *tfm);
203 int (*setkey)(struct crypto_lskcipher *tfm, const u8 *key,
205 int (*encrypt)(struct crypto_lskcipher *tfm, const u8 *src,
207 int (*decrypt)(struct crypto_lskcipher *tfm, const u8 *src,
209 int (*init)(struct crypto_lskcipher *tfm);
210 void (*exit)(struct crypto_lskcipher *tfm);
217 * This performs a type-check against the "tfm" argument to make sure
218 * all users have the correct skcipher tfm fo
258 __crypto_skcipher_cast( struct crypto_tfm *tfm) argument
302 crypto_skcipher_tfm( struct crypto_skcipher *tfm) argument
308 crypto_lskcipher_tfm( struct crypto_lskcipher *tfm) argument
320 crypto_free_skcipher(struct crypto_skcipher *tfm) argument
325 crypto_free_sync_skcipher(struct crypto_sync_skcipher *tfm) argument
336 crypto_free_lskcipher(struct crypto_lskcipher *tfm) argument
353 crypto_skcipher_driver_name( struct crypto_skcipher *tfm) argument
359 crypto_lskcipher_driver_name( struct crypto_lskcipher *tfm) argument
365 crypto_skcipher_alg_common( struct crypto_skcipher *tfm) argument
372 crypto_skcipher_alg( struct crypto_skcipher *tfm) argument
379 crypto_lskcipher_alg( struct crypto_lskcipher *tfm) argument
395 crypto_skcipher_ivsize(struct crypto_skcipher *tfm) argument
400 crypto_sync_skcipher_ivsize( struct crypto_sync_skcipher *tfm) argument
415 crypto_lskcipher_ivsize( struct crypto_lskcipher *tfm) argument
431 crypto_skcipher_blocksize( struct crypto_skcipher *tfm) argument
447 crypto_lskcipher_blocksize( struct crypto_lskcipher *tfm) argument
464 crypto_skcipher_chunksize( struct crypto_skcipher *tfm) argument
481 crypto_lskcipher_chunksize( struct crypto_lskcipher *tfm) argument
498 crypto_skcipher_statesize( struct crypto_skcipher *tfm) argument
515 crypto_lskcipher_statesize( struct crypto_lskcipher *tfm) argument
521 crypto_sync_skcipher_blocksize( struct crypto_sync_skcipher *tfm) argument
527 crypto_skcipher_alignmask( struct crypto_skcipher *tfm) argument
533 crypto_lskcipher_alignmask( struct crypto_lskcipher *tfm) argument
539 crypto_skcipher_get_flags(struct crypto_skcipher *tfm) argument
544 crypto_skcipher_set_flags(struct crypto_skcipher *tfm, u32 flags) argument
550 crypto_skcipher_clear_flags(struct crypto_skcipher *tfm, u32 flags) argument
556 crypto_sync_skcipher_get_flags( struct crypto_sync_skcipher *tfm) argument
562 crypto_sync_skcipher_set_flags( struct crypto_sync_skcipher *tfm, u32 flags) argument
568 crypto_sync_skcipher_clear_flags( struct crypto_sync_skcipher *tfm, u32 flags) argument
574 crypto_lskcipher_get_flags(struct crypto_lskcipher *tfm) argument
579 crypto_lskcipher_set_flags(struct crypto_lskcipher *tfm, u32 flags) argument
585 crypto_lskcipher_clear_flags(struct crypto_lskcipher *tfm, u32 flags) argument
610 crypto_sync_skcipher_setkey(struct crypto_sync_skcipher *tfm, const u8 *key, unsigned int keylen) argument
635 crypto_skcipher_min_keysize( struct crypto_skcipher *tfm) argument
641 crypto_skcipher_max_keysize( struct crypto_skcipher *tfm) argument
647 crypto_lskcipher_min_keysize( struct crypto_lskcipher *tfm) argument
653 crypto_lskcipher_max_keysize( struct crypto_lskcipher *tfm) argument
677 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
797 crypto_skcipher_reqsize(struct crypto_skcipher *tfm) argument
810 skcipher_request_set_tfm(struct skcipher_request *req, struct crypto_skcipher *tfm) argument
816 skcipher_request_set_sync_tfm(struct skcipher_request *req, struct crypto_sync_skcipher *tfm) argument
839 skcipher_request_alloc( struct crypto_skcipher *tfm, gfp_t gfp) argument
864 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
[all...]
H A Drng.h44 int (*generate)(struct crypto_rng *tfm,
47 int (*seed)(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
48 void (*set_ent)(struct crypto_rng *tfm, const u8 *data,
94 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) argument
96 return &tfm->base;
106 * @tfm: cipher handle
112 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) argument
114 return __crypto_rng_alg(crypto_rng_tfm(tfm)->__crt_alg);
119 * @tfm: cipher handle to be freed
121 * If @tfm i
123 crypto_free_rng(struct crypto_rng *tfm) argument
142 crypto_rng_generate(struct crypto_rng *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int dlen) argument
160 crypto_rng_get_bytes(struct crypto_rng *tfm, u8 *rdata, unsigned int dlen) argument
198 crypto_rng_seedsize(struct crypto_rng *tfm) argument
[all...]
H A Dakcipher.h101 int (*set_pub_key)(struct crypto_akcipher *tfm, const void *key,
103 int (*set_priv_key)(struct crypto_akcipher *tfm, const void *key,
105 unsigned int (*max_size)(struct crypto_akcipher *tfm);
106 int (*init)(struct crypto_akcipher *tfm);
107 void (*exit)(struct crypto_akcipher *tfm);
120 * crypto_alloc_akcipher() - allocate AKCIPHER tfm handle
137 struct crypto_akcipher *tfm)
139 return &tfm->base;
148 struct crypto_tfm *tfm)
150 return container_of(tfm, struc
136 crypto_akcipher_tfm( struct crypto_akcipher *tfm) argument
147 __crypto_akcipher_tfm( struct crypto_tfm *tfm) argument
153 crypto_akcipher_alg( struct crypto_akcipher *tfm) argument
159 crypto_akcipher_reqsize(struct crypto_akcipher *tfm) argument
164 akcipher_request_set_tfm(struct akcipher_request *req, struct crypto_akcipher *tfm) argument
183 crypto_free_akcipher(struct crypto_akcipher *tfm) argument
196 akcipher_request_alloc( struct crypto_akcipher *tfm, gfp_t gfp) argument
273 crypto_akcipher_maxsize(struct crypto_akcipher *tfm) argument
292 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
309 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
362 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
383 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
401 crypto_akcipher_set_pub_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument
423 crypto_akcipher_set_priv_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument
[all...]
H A Daead.h140 int (*setkey)(struct crypto_aead *tfm, const u8 *key,
142 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize);
145 int (*init)(struct crypto_aead *tfm);
146 void (*exit)(struct crypto_aead *tfm);
162 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) argument
164 return container_of(tfm, struct crypto_aead, base);
183 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) argument
185 return &tfm->base;
190 * @tfm: cipher handle to be freed
192 * If @tfm i
194 crypto_free_aead(struct crypto_aead *tfm) argument
211 crypto_aead_driver_name(struct crypto_aead *tfm) argument
216 crypto_aead_alg(struct crypto_aead *tfm) argument
236 crypto_aead_ivsize(struct crypto_aead *tfm) argument
253 crypto_aead_authsize(struct crypto_aead *tfm) argument
278 crypto_aead_blocksize(struct crypto_aead *tfm) argument
283 crypto_aead_alignmask(struct crypto_aead *tfm) argument
288 crypto_aead_get_flags(struct crypto_aead *tfm) argument
293 crypto_aead_set_flags(struct crypto_aead *tfm, u32 flags) argument
298 crypto_aead_clear_flags(struct crypto_aead *tfm, u32 flags) argument
401 crypto_aead_reqsize(struct crypto_aead *tfm) argument
414 aead_request_set_tfm(struct aead_request *req, struct crypto_aead *tfm) argument
431 aead_request_alloc(struct crypto_aead *tfm, gfp_t gfp) argument
[all...]
H A Dhash.h145 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
147 int (*init_tfm)(struct crypto_ahash *tfm);
148 void (*exit_tfm)(struct crypto_ahash *tfm);
155 struct crypto_shash *tfm; member in struct:shash_desc
211 int (*setkey)(struct crypto_shash *tfm, const u8 *key,
213 int (*init_tfm)(struct crypto_shash *tfm);
214 void (*exit_tfm)(struct crypto_shash *tfm);
248 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) argument
250 return container_of(tfm, struct crypto_ahash, base);
270 struct crypto_ahash *crypto_clone_ahash(struct crypto_ahash *tfm);
272 crypto_ahash_tfm(struct crypto_ahash *tfm) argument
283 crypto_free_ahash(struct crypto_ahash *tfm) argument
300 crypto_ahash_alg_name(struct crypto_ahash *tfm) argument
305 crypto_ahash_driver_name(struct crypto_ahash *tfm) argument
319 crypto_ahash_blocksize(struct crypto_ahash *tfm) argument
330 crypto_hash_alg_common( struct crypto_ahash *tfm) argument
346 crypto_ahash_digestsize(struct crypto_ahash *tfm) argument
361 crypto_ahash_statesize(struct crypto_ahash *tfm) argument
366 crypto_ahash_get_flags(struct crypto_ahash *tfm) argument
371 crypto_ahash_set_flags(struct crypto_ahash *tfm, u32 flags) argument
376 crypto_ahash_clear_flags(struct crypto_ahash *tfm, u32 flags) argument
403 crypto_ahash_reqsize(struct crypto_ahash *tfm) argument
541 ahash_request_set_tfm(struct ahash_request *req, struct crypto_ahash *tfm) argument
559 ahash_request_alloc( struct crypto_ahash *tfm, gfp_t gfp) argument
685 crypto_shash_tfm(struct crypto_shash *tfm) argument
696 crypto_free_shash(struct crypto_shash *tfm) argument
701 crypto_shash_alg_name(struct crypto_shash *tfm) argument
706 crypto_shash_driver_name(struct crypto_shash *tfm) argument
720 crypto_shash_blocksize(struct crypto_shash *tfm) argument
730 crypto_shash_alg(struct crypto_shash *tfm) argument
744 crypto_shash_digestsize(struct crypto_shash *tfm) argument
749 crypto_shash_statesize(struct crypto_shash *tfm) argument
754 crypto_shash_get_flags(struct crypto_shash *tfm) argument
759 crypto_shash_set_flags(struct crypto_shash *tfm, u32 flags) argument
764 crypto_shash_clear_flags(struct crypto_shash *tfm, u32 flags) argument
784 crypto_shash_descsize(struct crypto_shash *tfm) argument
889 struct crypto_shash *tfm = desc->tfm; local
[all...]
H A Dkpp.h78 int (*set_secret)(struct crypto_kpp *tfm, const void *buffer,
83 unsigned int (*max_size)(struct crypto_kpp *tfm);
85 int (*init)(struct crypto_kpp *tfm);
86 void (*exit)(struct crypto_kpp *tfm);
99 * crypto_alloc_kpp() - allocate KPP tfm handle
114 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) argument
116 return &tfm->base;
124 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) argument
126 return container_of(tfm, struct crypto_kpp, base);
129 static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) argument
134 crypto_kpp_reqsize(struct crypto_kpp *tfm) argument
139 kpp_request_set_tfm(struct kpp_request *req, struct crypto_kpp *tfm) argument
150 crypto_kpp_get_flags(struct crypto_kpp *tfm) argument
155 crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags) argument
167 crypto_free_kpp(struct crypto_kpp *tfm) argument
180 kpp_request_alloc(struct crypto_kpp *tfm, gfp_t gfp) argument
290 crypto_kpp_set_secret(struct crypto_kpp *tfm, const void *buffer, unsigned int len) argument
311 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); local
328 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); local
343 crypto_kpp_maxsize(struct crypto_kpp *tfm) argument
[all...]
H A Dcryptd.h29 struct crypto_skcipher *cryptd_skcipher_child(struct cryptd_skcipher *tfm);
31 bool cryptd_skcipher_queued(struct cryptd_skcipher *tfm);
32 void cryptd_free_skcipher(struct cryptd_skcipher *tfm);
39 struct crypto_ahash *tfm)
41 return (struct cryptd_ahash *)tfm;
47 struct crypto_shash *cryptd_ahash_child(struct cryptd_ahash *tfm);
50 bool cryptd_ahash_queued(struct cryptd_ahash *tfm);
51 void cryptd_free_ahash(struct cryptd_ahash *tfm);
58 struct crypto_aead *tfm)
60 return (struct cryptd_aead *)tfm;
38 __cryptd_ahash_cast( struct crypto_ahash *tfm) argument
57 __cryptd_aead_cast( struct crypto_aead *tfm) argument
[all...]
H A Dacompress.h72 * crypto_alloc_acomp() -- allocate ACOMPRESS tfm handle
88 * crypto_alloc_acomp_node() -- allocate ACOMPRESS tfm handle with desired NUMA node
106 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) argument
108 return &tfm->base;
117 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) argument
119 return container_of(tfm, struct crypto_acomp, base);
123 struct crypto_acomp *tfm)
125 return __crypto_comp_alg_common(crypto_acomp_tfm(tfm)->__crt_alg);
128 static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm) argument
130 return tfm
122 crypto_comp_alg_common( struct crypto_acomp *tfm) argument
133 acomp_request_set_tfm(struct acomp_req *req, struct crypto_acomp *tfm) argument
139 acomp_is_async(struct crypto_acomp *tfm) argument
157 crypto_free_acomp(struct crypto_acomp *tfm) argument
[all...]
/linux-master/include/crypto/internal/
H A Dscompress.h34 void *(*alloc_ctx)(struct crypto_scomp *tfm);
35 void (*free_ctx)(struct crypto_scomp *tfm, void *ctx);
36 int (*compress)(struct crypto_scomp *tfm, const u8 *src,
39 int (*decompress)(struct crypto_scomp *tfm, const u8 *src,
54 static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) argument
56 return container_of(tfm, struct crypto_scomp, base);
59 static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) argument
61 return &tfm->base;
64 static inline void crypto_free_scomp(struct crypto_scomp *tfm) argument
66 crypto_destroy_tfm(tfm, crypto_scomp_tf
69 crypto_scomp_alg(struct crypto_scomp *tfm) argument
74 crypto_scomp_alloc_ctx(struct crypto_scomp *tfm) argument
79 crypto_scomp_free_ctx(struct crypto_scomp *tfm, void *ctx) argument
85 crypto_scomp_compress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument
92 crypto_scomp_decompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument
[all...]
H A Dsig.h13 static inline void *crypto_sig_ctx(struct crypto_sig *tfm) argument
15 return crypto_tfm_ctx(&tfm->base);
H A Dcipher.h37 static inline struct crypto_cipher *__crypto_cipher_cast(struct crypto_tfm *tfm) argument
39 return (struct crypto_cipher *)tfm;
66 static inline struct crypto_tfm *crypto_cipher_tfm(struct crypto_cipher *tfm) argument
68 return &tfm->base;
73 * @tfm: cipher handle to be freed
75 static inline void crypto_free_cipher(struct crypto_cipher *tfm) argument
77 crypto_free_tfm(crypto_cipher_tfm(tfm));
101 * @tfm: cipher handle
104 * tfm is returned. The caller may use that information to allocate appropriate
109 static inline unsigned int crypto_cipher_blocksize(struct crypto_cipher *tfm) argument
114 crypto_cipher_alignmask(struct crypto_cipher *tfm) argument
119 crypto_cipher_get_flags(struct crypto_cipher *tfm) argument
124 crypto_cipher_set_flags(struct crypto_cipher *tfm, u32 flags) argument
130 crypto_cipher_clear_flags(struct crypto_cipher *tfm, u32 flags) argument
215 crypto_cipher_alg(struct crypto_cipher *tfm) argument
[all...]
H A Drng.h29 static inline void *crypto_rng_ctx(struct crypto_rng *tfm) argument
31 return crypto_tfm_ctx(&tfm->base);
34 static inline void crypto_rng_set_entropy(struct crypto_rng *tfm, argument
37 crypto_rng_alg(tfm)->set_ent(tfm, data, len);
H A Dchacha.h15 static inline int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
18 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm);
31 static inline int chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
34 return chacha_setkey(tfm, key, keysize, 20);
37 static inline int chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
40 return chacha_setkey(tfm, key, keysize, 12);
/linux-master/net/bluetooth/
H A Decdh_helper.h26 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 pair_public_key[64],
28 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]);
29 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]);
30 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]);
/linux-master/include/linux/
H A Dbpf_crypto.h8 void (*free_tfm)(void *tfm);
10 int (*setkey)(void *tfm, const u8 *key, unsigned int keylen);
11 int (*setauthsize)(void *tfm, unsigned int authsize);
12 int (*encrypt)(void *tfm, const u8 *src, u8 *dst, unsigned int len, u8 *iv);
13 int (*decrypt)(void *tfm, const u8 *src, u8 *dst, unsigned int len, u8 *iv);
14 unsigned int (*ivsize)(void *tfm);
15 unsigned int (*statesize)(void *tfm);
16 u32 (*get_flags)(void *tfm);
H A Dcrypto.h174 struct crypto_tfm *tfm; member in struct:crypto_async_request
236 int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key,
238 void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
239 void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
254 int (*coa_compress)(struct crypto_tfm *tfm, const u8 *src,
256 int (*coa_decompress)(struct crypto_tfm *tfm, const u8 *src,
365 int (*cra_init)(struct crypto_tfm *tfm);
366 void (*cra_exit)(struct crypto_tfm *tfm);
429 void (*exit)(struct crypto_tfm *tfm);
445 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm);
447 crypto_free_tfm(struct crypto_tfm *tfm) argument
455 crypto_tfm_alg_name(struct crypto_tfm *tfm) argument
460 crypto_tfm_alg_driver_name(struct crypto_tfm *tfm) argument
465 crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) argument
470 crypto_tfm_alg_alignmask(struct crypto_tfm *tfm) argument
475 crypto_tfm_get_flags(struct crypto_tfm *tfm) argument
480 crypto_tfm_set_flags(struct crypto_tfm *tfm, u32 flags) argument
485 crypto_tfm_clear_flags(struct crypto_tfm *tfm, u32 flags) argument
492 struct crypto_tfm *tfm; local
496 __crypto_comp_cast(struct crypto_tfm *tfm) argument
511 crypto_comp_tfm(struct crypto_comp *tfm) argument
516 crypto_free_comp(struct crypto_comp *tfm) argument
530 crypto_comp_name(struct crypto_comp *tfm) argument
[all...]
/linux-master/drivers/crypto/cavium/zip/
H A Dzip_crypto.h60 int zip_alloc_comp_ctx_deflate(struct crypto_tfm *tfm);
61 int zip_alloc_comp_ctx_lzs(struct crypto_tfm *tfm);
62 void zip_free_comp_ctx(struct crypto_tfm *tfm);
63 int zip_comp_compress(struct crypto_tfm *tfm,
66 int zip_comp_decompress(struct crypto_tfm *tfm,
70 void *zip_alloc_scomp_ctx_deflate(struct crypto_scomp *tfm);
71 void *zip_alloc_scomp_ctx_lzs(struct crypto_scomp *tfm);
72 void zip_free_scomp_ctx(struct crypto_scomp *tfm, void *zip_ctx);
73 int zip_scomp_compress(struct crypto_scomp *tfm,
76 int zip_scomp_decompress(struct crypto_scomp *tfm,
[all...]
/linux-master/crypto/
H A Dbpf_crypto_skcipher.c13 static void bpf_crypto_lskcipher_free_tfm(void *tfm) argument
15 crypto_free_lskcipher(tfm);
23 static int bpf_crypto_lskcipher_setkey(void *tfm, const u8 *key, unsigned int keylen) argument
25 return crypto_lskcipher_setkey(tfm, key, keylen);
28 static u32 bpf_crypto_lskcipher_get_flags(void *tfm) argument
30 return crypto_lskcipher_get_flags(tfm);
33 static unsigned int bpf_crypto_lskcipher_ivsize(void *tfm) argument
35 return crypto_lskcipher_ivsize(tfm);
38 static unsigned int bpf_crypto_lskcipher_statesize(void *tfm) argument
40 return crypto_lskcipher_statesize(tfm);
43 bpf_crypto_lskcipher_encrypt(void *tfm, const u8 *src, u8 *dst, unsigned int len, u8 *siv) argument
49 bpf_crypto_lskcipher_decrypt(void *tfm, const u8 *src, u8 *dst, unsigned int len, u8 *siv) argument
[all...]
H A Dcompress.c16 struct crypto_tfm *tfm = crypto_comp_tfm(comp); local
18 return tfm->__crt_alg->cra_compress.coa_compress(tfm, src, slen, dst,
27 struct crypto_tfm *tfm = crypto_comp_tfm(comp); local
29 return tfm->__crt_alg->cra_compress.coa_decompress(tfm, src, slen, dst,
/linux-master/net/mac80211/
H A Daes_cmac.c25 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, argument
28 SHASH_DESC_ON_STACK(desc, tfm);
32 desc->tfm = tfm;
49 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, argument
52 SHASH_DESC_ON_STACK(desc, tfm);
55 desc->tfm = tfm;
74 struct crypto_shash *tfm; local
76 tfm
89 ieee80211_aes_cmac_key_free(struct crypto_shash *tfm) argument
[all...]
H A Daead_api.c18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, argument
21 size_t mic_len = crypto_aead_authsize(tfm);
24 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm);
40 aead_request_set_tfm(aead_req, tfm);
50 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, argument
53 size_t mic_len = crypto_aead_authsize(tfm);
56 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm);
75 aead_request_set_tfm(aead_req, tfm);
89 struct crypto_aead *tfm; local
92 tfm
110 aead_key_free(struct crypto_aead *tfm) argument
[all...]
H A Daes_gcm.h13 static inline int ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, argument
17 return aead_encrypt(tfm, j_0, aad + 2,
22 static inline int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, argument
26 return aead_decrypt(tfm, j_0, aad + 2,
38 static inline void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) argument
40 return aead_key_free(tfm);
H A Daes_ccm.h21 ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, argument
25 return aead_encrypt(tfm, b_0, aad + 2,
31 ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, argument
35 return aead_decrypt(tfm, b_0, aad + 2,
40 static inline void ieee80211_aes_key_free(struct crypto_aead *tfm) argument
42 return aead_key_free(tfm);
/linux-master/lib/
H A Dlibcrc32c.c36 static struct crypto_shash *tfm; variable in typeref:struct:crypto_shash
40 SHASH_DESC_ON_STACK(shash, tfm);
44 shash->tfm = tfm;
59 tfm = crypto_alloc_shash("crc32c", 0, 0);
60 return PTR_ERR_OR_ZERO(tfm);
65 crypto_free_shash(tfm);

Completed in 213 milliseconds

1234567891011>>