Home
last modified time | relevance | path

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

12345678910>>...36

/kernel/linux/linux-5.10/include/crypto/
H A Dskcipher.h105 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
109 int (*init)(struct crypto_skcipher *tfm);
110 void (*exit)(struct crypto_skcipher *tfm);
123 * This performs a type-check against the "tfm" argument to make sure
124 * all users have the correct skcipher tfm for doing on-stack requests.
126 #define SYNC_SKCIPHER_REQUEST_ON_STACK(name, tfm) \
130 (typeof(tfm))1))) \
152 * For the symmetric key cipher API, the state is maintained with the tfm
153 * cipher handle. A single tfm can be used across multiple calls and in
165 struct crypto_tfm *tfm) in __crypto_skcipher_cast()
164 __crypto_skcipher_cast( struct crypto_tfm *tfm) __crypto_skcipher_cast() argument
190 crypto_skcipher_tfm( struct crypto_skcipher *tfm) crypto_skcipher_tfm() argument
202 crypto_free_skcipher(struct crypto_skcipher *tfm) crypto_free_skcipher() argument
207 crypto_free_sync_skcipher(struct crypto_sync_skcipher *tfm) crypto_free_sync_skcipher() argument
224 crypto_skcipher_driver_name( struct crypto_skcipher *tfm) crypto_skcipher_driver_name() argument
230 crypto_skcipher_alg( struct crypto_skcipher *tfm) crypto_skcipher_alg() argument
251 crypto_skcipher_ivsize(struct crypto_skcipher *tfm) crypto_skcipher_ivsize() argument
256 crypto_sync_skcipher_ivsize( struct crypto_sync_skcipher *tfm) crypto_sync_skcipher_ivsize() argument
272 crypto_skcipher_blocksize( struct crypto_skcipher *tfm) crypto_skcipher_blocksize() argument
295 crypto_skcipher_chunksize( struct crypto_skcipher *tfm) crypto_skcipher_chunksize() argument
301 crypto_sync_skcipher_blocksize( struct crypto_sync_skcipher *tfm) crypto_sync_skcipher_blocksize() argument
307 crypto_skcipher_alignmask( struct crypto_skcipher *tfm) crypto_skcipher_alignmask() argument
313 crypto_skcipher_get_flags(struct crypto_skcipher *tfm) crypto_skcipher_get_flags() argument
318 crypto_skcipher_set_flags(struct crypto_skcipher *tfm, u32 flags) crypto_skcipher_set_flags() argument
324 crypto_skcipher_clear_flags(struct crypto_skcipher *tfm, u32 flags) crypto_skcipher_clear_flags() argument
330 crypto_sync_skcipher_get_flags( struct crypto_sync_skcipher *tfm) crypto_sync_skcipher_get_flags() argument
336 crypto_sync_skcipher_set_flags( struct crypto_sync_skcipher *tfm, u32 flags) crypto_sync_skcipher_set_flags() argument
342 crypto_sync_skcipher_clear_flags( struct crypto_sync_skcipher *tfm, u32 flags) crypto_sync_skcipher_clear_flags() argument
367 crypto_sync_skcipher_setkey(struct crypto_sync_skcipher *tfm, const u8 *key, unsigned int keylen) crypto_sync_skcipher_setkey() argument
373 crypto_skcipher_min_keysize( struct crypto_skcipher *tfm) crypto_skcipher_min_keysize() argument
379 crypto_skcipher_max_keysize( struct crypto_skcipher *tfm) crypto_skcipher_max_keysize() argument
403 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); crypto_sync_skcipher_reqtfm() local
451 crypto_skcipher_reqsize(struct crypto_skcipher *tfm) crypto_skcipher_reqsize() argument
464 skcipher_request_set_tfm(struct skcipher_request *req, struct crypto_skcipher *tfm) skcipher_request_set_tfm() argument
470 skcipher_request_set_sync_tfm(struct skcipher_request *req, struct crypto_sync_skcipher *tfm) skcipher_request_set_sync_tfm() argument
493 skcipher_request_alloc( struct crypto_skcipher *tfm, gfp_t gfp) skcipher_request_alloc() argument
518 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); skcipher_request_zero() local
[all...]
H A Dhash.h142 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
144 int (*init_tfm)(struct crypto_ahash *tfm);
145 void (*exit_tfm)(struct crypto_ahash *tfm);
151 struct crypto_shash *tfm; member
209 int (*setkey)(struct crypto_shash *tfm, const u8 *key,
211 int (*init_tfm)(struct crypto_shash *tfm);
212 void (*exit_tfm)(struct crypto_shash *tfm);
232 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
254 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) in __crypto_ahash_cast() argument
256 return container_of(tfm, struc in __crypto_ahash_cast()
276 crypto_ahash_tfm(struct crypto_ahash *tfm) crypto_ahash_tfm() argument
287 crypto_free_ahash(struct crypto_ahash *tfm) crypto_free_ahash() argument
304 crypto_ahash_alg_name(struct crypto_ahash *tfm) crypto_ahash_alg_name() argument
309 crypto_ahash_driver_name(struct crypto_ahash *tfm) crypto_ahash_driver_name() argument
314 crypto_ahash_alignmask( struct crypto_ahash *tfm) crypto_ahash_alignmask() argument
329 crypto_ahash_blocksize(struct crypto_ahash *tfm) crypto_ahash_blocksize() argument
340 crypto_hash_alg_common( struct crypto_ahash *tfm) crypto_hash_alg_common() argument
356 crypto_ahash_digestsize(struct crypto_ahash *tfm) crypto_ahash_digestsize() argument
371 crypto_ahash_statesize(struct crypto_ahash *tfm) crypto_ahash_statesize() argument
376 crypto_ahash_get_flags(struct crypto_ahash *tfm) crypto_ahash_get_flags() argument
381 crypto_ahash_set_flags(struct crypto_ahash *tfm, u32 flags) crypto_ahash_set_flags() argument
386 crypto_ahash_clear_flags(struct crypto_ahash *tfm, u32 flags) crypto_ahash_clear_flags() argument
413 crypto_ahash_reqsize(struct crypto_ahash *tfm) crypto_ahash_reqsize() argument
509 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); crypto_ahash_import() local
530 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); crypto_ahash_init() local
551 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); crypto_ahash_update() local
581 ahash_request_set_tfm(struct ahash_request *req, struct crypto_ahash *tfm) ahash_request_set_tfm() argument
599 ahash_request_alloc( struct crypto_ahash *tfm, gfp_t gfp) ahash_request_alloc() argument
721 crypto_shash_tfm(struct crypto_shash *tfm) crypto_shash_tfm() argument
732 crypto_free_shash(struct crypto_shash *tfm) crypto_free_shash() argument
737 crypto_shash_alg_name(struct crypto_shash *tfm) crypto_shash_alg_name() argument
742 crypto_shash_driver_name(struct crypto_shash *tfm) crypto_shash_driver_name() argument
747 crypto_shash_alignmask( struct crypto_shash *tfm) crypto_shash_alignmask() argument
762 crypto_shash_blocksize(struct crypto_shash *tfm) crypto_shash_blocksize() argument
772 crypto_shash_alg(struct crypto_shash *tfm) crypto_shash_alg() argument
786 crypto_shash_digestsize(struct crypto_shash *tfm) crypto_shash_digestsize() argument
791 crypto_shash_statesize(struct crypto_shash *tfm) crypto_shash_statesize() argument
796 crypto_shash_get_flags(struct crypto_shash *tfm) crypto_shash_get_flags() argument
801 crypto_shash_set_flags(struct crypto_shash *tfm, u32 flags) crypto_shash_set_flags() argument
806 crypto_shash_clear_flags(struct crypto_shash *tfm, u32 flags) crypto_shash_clear_flags() argument
826 crypto_shash_descsize(struct crypto_shash *tfm) crypto_shash_descsize() argument
920 struct crypto_shash *tfm = desc->tfm; crypto_shash_import() local
942 struct crypto_shash *tfm = desc->tfm; crypto_shash_init() local
[all...]
H A Dkpp.h72 int (*set_secret)(struct crypto_kpp *tfm, const void *buffer,
77 unsigned int (*max_size)(struct crypto_kpp *tfm);
79 int (*init)(struct crypto_kpp *tfm);
80 void (*exit)(struct crypto_kpp *tfm);
94 * crypto_alloc_kpp() - allocate KPP tfm handle
107 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) in crypto_kpp_tfm() argument
109 return &tfm->base; in crypto_kpp_tfm()
117 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) in __crypto_kpp_tfm() argument
119 return container_of(tfm, struct crypto_kpp, base); in __crypto_kpp_tfm()
122 static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) in crypto_kpp_alg() argument
127 crypto_kpp_reqsize(struct crypto_kpp *tfm) crypto_kpp_reqsize() argument
132 kpp_request_set_tfm(struct kpp_request *req, struct crypto_kpp *tfm) kpp_request_set_tfm() argument
143 crypto_kpp_get_flags(struct crypto_kpp *tfm) crypto_kpp_get_flags() argument
148 crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags) crypto_kpp_set_flags() argument
160 crypto_free_kpp(struct crypto_kpp *tfm) crypto_free_kpp() argument
173 kpp_request_alloc(struct crypto_kpp *tfm, gfp_t gfp) kpp_request_alloc() argument
283 crypto_kpp_set_secret(struct crypto_kpp *tfm, const void *buffer, unsigned int len) crypto_kpp_set_secret() argument
311 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); crypto_kpp_generate_public_key() local
334 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); crypto_kpp_compute_shared_secret() local
355 crypto_kpp_maxsize(struct crypto_kpp *tfm) crypto_kpp_maxsize() argument
[all...]
H A Daead.h137 int (*setkey)(struct crypto_aead *tfm, const u8 *key,
139 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize);
142 int (*init)(struct crypto_aead *tfm);
143 void (*exit)(struct crypto_aead *tfm);
159 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast() argument
161 return container_of(tfm, struct crypto_aead, base); in __crypto_aead_cast()
180 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm() argument
182 return &tfm->base; in crypto_aead_tfm()
187 * @tfm: cipher handle to be freed
189 * If @tfm i
191 crypto_free_aead(struct crypto_aead *tfm) crypto_free_aead() argument
196 crypto_aead_alg(struct crypto_aead *tfm) crypto_aead_alg() argument
216 crypto_aead_ivsize(struct crypto_aead *tfm) crypto_aead_ivsize() argument
233 crypto_aead_authsize(struct crypto_aead *tfm) crypto_aead_authsize() argument
258 crypto_aead_blocksize(struct crypto_aead *tfm) crypto_aead_blocksize() argument
263 crypto_aead_alignmask(struct crypto_aead *tfm) crypto_aead_alignmask() argument
268 crypto_aead_get_flags(struct crypto_aead *tfm) crypto_aead_get_flags() argument
273 crypto_aead_set_flags(struct crypto_aead *tfm, u32 flags) crypto_aead_set_flags() argument
278 crypto_aead_clear_flags(struct crypto_aead *tfm, u32 flags) crypto_aead_clear_flags() argument
381 crypto_aead_reqsize(struct crypto_aead *tfm) crypto_aead_reqsize() argument
394 aead_request_set_tfm(struct aead_request *req, struct crypto_aead *tfm) aead_request_set_tfm() argument
411 aead_request_alloc(struct crypto_aead *tfm, gfp_t gfp) aead_request_alloc() argument
[all...]
H A Dakcipher.h97 int (*set_pub_key)(struct crypto_akcipher *tfm, const void *key,
99 int (*set_priv_key)(struct crypto_akcipher *tfm, const void *key,
101 unsigned int (*max_size)(struct crypto_akcipher *tfm);
102 int (*init)(struct crypto_akcipher *tfm);
103 void (*exit)(struct crypto_akcipher *tfm);
117 * crypto_alloc_akcipher() - allocate AKCIPHER tfm handle
134 struct crypto_akcipher *tfm) in crypto_akcipher_tfm()
136 return &tfm->base; in crypto_akcipher_tfm()
145 struct crypto_tfm *tfm) in __crypto_akcipher_tfm()
147 return container_of(tfm, struc in __crypto_akcipher_tfm()
133 crypto_akcipher_tfm( struct crypto_akcipher *tfm) crypto_akcipher_tfm() argument
144 __crypto_akcipher_tfm( struct crypto_tfm *tfm) __crypto_akcipher_tfm() argument
150 crypto_akcipher_alg( struct crypto_akcipher *tfm) crypto_akcipher_alg() argument
156 crypto_akcipher_reqsize(struct crypto_akcipher *tfm) crypto_akcipher_reqsize() argument
161 akcipher_request_set_tfm(struct akcipher_request *req, struct crypto_akcipher *tfm) akcipher_request_set_tfm() argument
180 crypto_free_akcipher(struct crypto_akcipher *tfm) crypto_free_akcipher() argument
193 akcipher_request_alloc( struct crypto_akcipher *tfm, gfp_t gfp) akcipher_request_alloc() argument
270 crypto_akcipher_maxsize(struct crypto_akcipher *tfm) crypto_akcipher_maxsize() argument
289 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); crypto_akcipher_encrypt() local
313 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); crypto_akcipher_decrypt() local
337 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); crypto_akcipher_sign() local
364 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); crypto_akcipher_verify() local
388 crypto_akcipher_set_pub_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) crypto_akcipher_set_pub_key() argument
410 crypto_akcipher_set_priv_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) crypto_akcipher_set_priv_key() argument
[all...]
H A Dacompress.h80 int (*init)(struct crypto_acomp *tfm);
81 void (*exit)(struct crypto_acomp *tfm);
94 * crypto_alloc_acomp() -- allocate ACOMPRESS tfm handle
110 * crypto_alloc_acomp_node() -- allocate ACOMPRESS tfm handle with desired NUMA node
128 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) in crypto_acomp_tfm() argument
130 return &tfm->base; in crypto_acomp_tfm()
138 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) in __crypto_acomp_tfm() argument
140 return container_of(tfm, struct crypto_acomp, base); in __crypto_acomp_tfm()
143 static inline struct acomp_alg *crypto_acomp_alg(struct crypto_acomp *tfm) in crypto_acomp_alg() argument
145 return __crypto_acomp_alg(crypto_acomp_tfm(tfm) in crypto_acomp_alg()
148 crypto_acomp_reqsize(struct crypto_acomp *tfm) crypto_acomp_reqsize() argument
153 acomp_request_set_tfm(struct acomp_req *req, struct crypto_acomp *tfm) acomp_request_set_tfm() argument
171 crypto_free_acomp(struct crypto_acomp *tfm) crypto_free_acomp() argument
263 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); crypto_acomp_compress() local
285 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); crypto_acomp_decompress() local
[all...]
H A Drng.h42 int (*generate)(struct crypto_rng *tfm,
45 int (*seed)(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
46 void (*set_ent)(struct crypto_rng *tfm, const u8 *data,
92 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm() argument
94 return &tfm->base; in crypto_rng_tfm()
99 * @tfm: cipher handle
105 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) in crypto_rng_alg() argument
107 return container_of(crypto_rng_tfm(tfm)->__crt_alg, in crypto_rng_alg()
113 * @tfm: cipher handle to be freed
115 * If @tfm i
117 crypto_free_rng(struct crypto_rng *tfm) crypto_free_rng() argument
136 crypto_rng_generate(struct crypto_rng *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int dlen) crypto_rng_generate() argument
160 crypto_rng_get_bytes(struct crypto_rng *tfm, u8 *rdata, unsigned int dlen) crypto_rng_get_bytes() argument
198 crypto_rng_seedsize(struct crypto_rng *tfm) crypto_rng_seedsize() argument
[all...]
/kernel/linux/linux-6.6/include/crypto/
H A Dskcipher.h127 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
131 int (*init)(struct crypto_skcipher *tfm);
132 void (*exit)(struct crypto_skcipher *tfm);
149 * This performs a type-check against the "tfm" argument to make sure
150 * all users have the correct skcipher tfm for doing on-stack requests.
152 #define SYNC_SKCIPHER_REQUEST_ON_STACK(name, tfm) \
156 (typeof(tfm))1))) \
178 * For the symmetric key cipher API, the state is maintained with the tfm
179 * cipher handle. A single tfm can be used across multiple calls and in
191 struct crypto_tfm *tfm) in __crypto_skcipher_cast()
190 __crypto_skcipher_cast( struct crypto_tfm *tfm) __crypto_skcipher_cast() argument
216 crypto_skcipher_tfm( struct crypto_skcipher *tfm) crypto_skcipher_tfm() argument
228 crypto_free_skcipher(struct crypto_skcipher *tfm) crypto_free_skcipher() argument
233 crypto_free_sync_skcipher(struct crypto_sync_skcipher *tfm) crypto_free_sync_skcipher() argument
250 crypto_skcipher_driver_name( struct crypto_skcipher *tfm) crypto_skcipher_driver_name() argument
256 crypto_skcipher_alg( struct crypto_skcipher *tfm) crypto_skcipher_alg() argument
277 crypto_skcipher_ivsize(struct crypto_skcipher *tfm) crypto_skcipher_ivsize() argument
282 crypto_sync_skcipher_ivsize( struct crypto_sync_skcipher *tfm) crypto_sync_skcipher_ivsize() argument
298 crypto_skcipher_blocksize( struct crypto_skcipher *tfm) crypto_skcipher_blocksize() argument
321 crypto_skcipher_chunksize( struct crypto_skcipher *tfm) crypto_skcipher_chunksize() argument
327 crypto_sync_skcipher_blocksize( struct crypto_sync_skcipher *tfm) crypto_sync_skcipher_blocksize() argument
333 crypto_skcipher_alignmask( struct crypto_skcipher *tfm) crypto_skcipher_alignmask() argument
339 crypto_skcipher_get_flags(struct crypto_skcipher *tfm) crypto_skcipher_get_flags() argument
344 crypto_skcipher_set_flags(struct crypto_skcipher *tfm, u32 flags) crypto_skcipher_set_flags() argument
350 crypto_skcipher_clear_flags(struct crypto_skcipher *tfm, u32 flags) crypto_skcipher_clear_flags() argument
356 crypto_sync_skcipher_get_flags( struct crypto_sync_skcipher *tfm) crypto_sync_skcipher_get_flags() argument
362 crypto_sync_skcipher_set_flags( struct crypto_sync_skcipher *tfm, u32 flags) crypto_sync_skcipher_set_flags() argument
368 crypto_sync_skcipher_clear_flags( struct crypto_sync_skcipher *tfm, u32 flags) crypto_sync_skcipher_clear_flags() argument
393 crypto_sync_skcipher_setkey(struct crypto_sync_skcipher *tfm, const u8 *key, unsigned int keylen) crypto_sync_skcipher_setkey() argument
399 crypto_skcipher_min_keysize( struct crypto_skcipher *tfm) crypto_skcipher_min_keysize() argument
405 crypto_skcipher_max_keysize( struct crypto_skcipher *tfm) crypto_skcipher_max_keysize() argument
429 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); crypto_sync_skcipher_reqtfm() local
477 crypto_skcipher_reqsize(struct crypto_skcipher *tfm) crypto_skcipher_reqsize() argument
490 skcipher_request_set_tfm(struct skcipher_request *req, struct crypto_skcipher *tfm) skcipher_request_set_tfm() argument
496 skcipher_request_set_sync_tfm(struct skcipher_request *req, struct crypto_sync_skcipher *tfm) skcipher_request_set_sync_tfm() argument
519 skcipher_request_alloc( struct crypto_skcipher *tfm, gfp_t gfp) skcipher_request_alloc() argument
544 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); skcipher_request_zero() local
[all...]
H A Dhash.h166 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
168 int (*init_tfm)(struct crypto_ahash *tfm);
169 void (*exit_tfm)(struct crypto_ahash *tfm);
176 struct crypto_shash *tfm; member
236 int (*setkey)(struct crypto_shash *tfm, const u8 *key,
238 int (*init_tfm)(struct crypto_shash *tfm);
239 void (*exit_tfm)(struct crypto_shash *tfm);
260 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
283 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) in __crypto_ahash_cast() argument
285 return container_of(tfm, struc in __crypto_ahash_cast()
307 crypto_ahash_tfm(struct crypto_ahash *tfm) crypto_ahash_tfm() argument
318 crypto_free_ahash(struct crypto_ahash *tfm) crypto_free_ahash() argument
335 crypto_ahash_alg_name(struct crypto_ahash *tfm) crypto_ahash_alg_name() argument
340 crypto_ahash_driver_name(struct crypto_ahash *tfm) crypto_ahash_driver_name() argument
345 crypto_ahash_alignmask( struct crypto_ahash *tfm) crypto_ahash_alignmask() argument
360 crypto_ahash_blocksize(struct crypto_ahash *tfm) crypto_ahash_blocksize() argument
371 crypto_hash_alg_common( struct crypto_ahash *tfm) crypto_hash_alg_common() argument
387 crypto_ahash_digestsize(struct crypto_ahash *tfm) crypto_ahash_digestsize() argument
402 crypto_ahash_statesize(struct crypto_ahash *tfm) crypto_ahash_statesize() argument
407 crypto_ahash_get_flags(struct crypto_ahash *tfm) crypto_ahash_get_flags() argument
412 crypto_ahash_set_flags(struct crypto_ahash *tfm, u32 flags) crypto_ahash_set_flags() argument
417 crypto_ahash_clear_flags(struct crypto_ahash *tfm, u32 flags) crypto_ahash_clear_flags() argument
444 crypto_ahash_reqsize(struct crypto_ahash *tfm) crypto_ahash_reqsize() argument
540 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); crypto_ahash_import() local
561 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); crypto_ahash_init() local
603 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); crypto_ahash_update() local
631 ahash_request_set_tfm(struct ahash_request *req, struct crypto_ahash *tfm) ahash_request_set_tfm() argument
649 ahash_request_alloc( struct crypto_ahash *tfm, gfp_t gfp) ahash_request_alloc() argument
775 crypto_shash_tfm(struct crypto_shash *tfm) crypto_shash_tfm() argument
786 crypto_free_shash(struct crypto_shash *tfm) crypto_free_shash() argument
791 crypto_shash_alg_name(struct crypto_shash *tfm) crypto_shash_alg_name() argument
796 crypto_shash_driver_name(struct crypto_shash *tfm) crypto_shash_driver_name() argument
801 crypto_shash_alignmask( struct crypto_shash *tfm) crypto_shash_alignmask() argument
816 crypto_shash_blocksize(struct crypto_shash *tfm) crypto_shash_blocksize() argument
826 crypto_shash_alg(struct crypto_shash *tfm) crypto_shash_alg() argument
840 crypto_shash_digestsize(struct crypto_shash *tfm) crypto_shash_digestsize() argument
845 crypto_shash_statesize(struct crypto_shash *tfm) crypto_shash_statesize() argument
850 crypto_shash_get_flags(struct crypto_shash *tfm) crypto_shash_get_flags() argument
855 crypto_shash_set_flags(struct crypto_shash *tfm, u32 flags) crypto_shash_set_flags() argument
860 crypto_shash_clear_flags(struct crypto_shash *tfm, u32 flags) crypto_shash_clear_flags() argument
880 crypto_shash_descsize(struct crypto_shash *tfm) crypto_shash_descsize() argument
974 struct crypto_shash *tfm = desc->tfm; crypto_shash_import() local
996 struct crypto_shash *tfm = desc->tfm; crypto_shash_init() local
[all...]
H A Daead.h157 int (*setkey)(struct crypto_aead *tfm, const u8 *key,
159 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize);
162 int (*init)(struct crypto_aead *tfm);
163 void (*exit)(struct crypto_aead *tfm);
183 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast() argument
185 return container_of(tfm, struct crypto_aead, base); in __crypto_aead_cast()
204 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm() argument
206 return &tfm->base; in crypto_aead_tfm()
211 * @tfm: cipher handle to be freed
213 * If @tfm i
215 crypto_free_aead(struct crypto_aead *tfm) crypto_free_aead() argument
220 crypto_aead_driver_name(struct crypto_aead *tfm) crypto_aead_driver_name() argument
225 crypto_aead_alg(struct crypto_aead *tfm) crypto_aead_alg() argument
245 crypto_aead_ivsize(struct crypto_aead *tfm) crypto_aead_ivsize() argument
262 crypto_aead_authsize(struct crypto_aead *tfm) crypto_aead_authsize() argument
287 crypto_aead_blocksize(struct crypto_aead *tfm) crypto_aead_blocksize() argument
292 crypto_aead_alignmask(struct crypto_aead *tfm) crypto_aead_alignmask() argument
297 crypto_aead_get_flags(struct crypto_aead *tfm) crypto_aead_get_flags() argument
302 crypto_aead_set_flags(struct crypto_aead *tfm, u32 flags) crypto_aead_set_flags() argument
307 crypto_aead_clear_flags(struct crypto_aead *tfm, u32 flags) crypto_aead_clear_flags() argument
410 crypto_aead_reqsize(struct crypto_aead *tfm) crypto_aead_reqsize() argument
423 aead_request_set_tfm(struct aead_request *req, struct crypto_aead *tfm) aead_request_set_tfm() argument
440 aead_request_alloc(struct crypto_aead *tfm, gfp_t gfp) aead_request_alloc() argument
[all...]
H A Dkpp.h93 int (*set_secret)(struct crypto_kpp *tfm, const void *buffer,
98 unsigned int (*max_size)(struct crypto_kpp *tfm);
100 int (*init)(struct crypto_kpp *tfm);
101 void (*exit)(struct crypto_kpp *tfm);
118 * crypto_alloc_kpp() - allocate KPP tfm handle
133 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) in crypto_kpp_tfm() argument
135 return &tfm->base; in crypto_kpp_tfm()
143 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) in __crypto_kpp_tfm() argument
145 return container_of(tfm, struct crypto_kpp, base); in __crypto_kpp_tfm()
148 static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) in crypto_kpp_alg() argument
153 crypto_kpp_reqsize(struct crypto_kpp *tfm) crypto_kpp_reqsize() argument
158 kpp_request_set_tfm(struct kpp_request *req, struct crypto_kpp *tfm) kpp_request_set_tfm() argument
169 crypto_kpp_get_flags(struct crypto_kpp *tfm) crypto_kpp_get_flags() argument
174 crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags) crypto_kpp_set_flags() argument
186 crypto_free_kpp(struct crypto_kpp *tfm) crypto_free_kpp() argument
199 kpp_request_alloc(struct crypto_kpp *tfm, gfp_t gfp) kpp_request_alloc() argument
329 crypto_kpp_set_secret(struct crypto_kpp *tfm, const void *buffer, unsigned int len) crypto_kpp_set_secret() argument
355 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); crypto_kpp_generate_public_key() local
376 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); crypto_kpp_compute_shared_secret() local
395 crypto_kpp_maxsize(struct crypto_kpp *tfm) crypto_kpp_maxsize() argument
[all...]
H A Dakcipher.h122 int (*set_pub_key)(struct crypto_akcipher *tfm, const void *key,
124 int (*set_priv_key)(struct crypto_akcipher *tfm, const void *key,
126 unsigned int (*max_size)(struct crypto_akcipher *tfm);
127 int (*init)(struct crypto_akcipher *tfm);
128 void (*exit)(struct crypto_akcipher *tfm);
145 * crypto_alloc_akcipher() - allocate AKCIPHER tfm handle
162 struct crypto_akcipher *tfm) in crypto_akcipher_tfm()
164 return &tfm->base; in crypto_akcipher_tfm()
173 struct crypto_tfm *tfm) in __crypto_akcipher_tfm()
175 return container_of(tfm, struc in __crypto_akcipher_tfm()
161 crypto_akcipher_tfm( struct crypto_akcipher *tfm) crypto_akcipher_tfm() argument
172 __crypto_akcipher_tfm( struct crypto_tfm *tfm) __crypto_akcipher_tfm() argument
178 crypto_akcipher_alg( struct crypto_akcipher *tfm) crypto_akcipher_alg() argument
184 crypto_akcipher_reqsize(struct crypto_akcipher *tfm) crypto_akcipher_reqsize() argument
189 akcipher_request_set_tfm(struct akcipher_request *req, struct crypto_akcipher *tfm) akcipher_request_set_tfm() argument
208 crypto_free_akcipher(struct crypto_akcipher *tfm) crypto_free_akcipher() argument
221 akcipher_request_alloc( struct crypto_akcipher *tfm, gfp_t gfp) akcipher_request_alloc() argument
298 crypto_akcipher_maxsize(struct crypto_akcipher *tfm) crypto_akcipher_maxsize() argument
338 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); crypto_akcipher_encrypt() local
363 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); crypto_akcipher_decrypt() local
424 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); crypto_akcipher_sign() local
449 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); crypto_akcipher_verify() local
471 crypto_akcipher_set_pub_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) crypto_akcipher_set_pub_key() argument
493 crypto_akcipher_set_priv_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) crypto_akcipher_set_priv_key() argument
[all...]
/kernel/linux/linux-5.10/include/crypto/internal/
H A Dscompress.h29 void *(*alloc_ctx)(struct crypto_scomp *tfm);
30 void (*free_ctx)(struct crypto_scomp *tfm, void *ctx);
31 int (*compress)(struct crypto_scomp *tfm, const u8 *src,
34 int (*decompress)(struct crypto_scomp *tfm, const u8 *src,
45 static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) in __crypto_scomp_tfm() argument
47 return container_of(tfm, struct crypto_scomp, base); in __crypto_scomp_tfm()
50 static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) in crypto_scomp_tfm() argument
52 return &tfm->base; in crypto_scomp_tfm()
55 static inline void crypto_free_scomp(struct crypto_scomp *tfm) in crypto_free_scomp() argument
57 crypto_destroy_tfm(tfm, crypto_scomp_tf in crypto_free_scomp()
60 crypto_scomp_alg(struct crypto_scomp *tfm) crypto_scomp_alg() argument
65 crypto_scomp_alloc_ctx(struct crypto_scomp *tfm) crypto_scomp_alloc_ctx() argument
70 crypto_scomp_free_ctx(struct crypto_scomp *tfm, void *ctx) crypto_scomp_free_ctx() argument
76 crypto_scomp_compress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) crypto_scomp_compress() argument
83 crypto_scomp_decompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) crypto_scomp_decompress() argument
[all...]
/kernel/linux/linux-5.10/security/integrity/ima/
H A Dima_crypto.c61 struct crypto_shash *tfm; member
93 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm() local
100 return tfm; in ima_alloc_tfm()
103 if (ima_algo_array[i].tfm && ima_algo_array[i].algo == algo) in ima_alloc_tfm()
104 return ima_algo_array[i].tfm; in ima_alloc_tfm()
106 tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0); in ima_alloc_tfm()
107 if (IS_ERR(tfm)) { in ima_alloc_tfm()
108 rc = PTR_ERR(tfm); in ima_alloc_tfm()
112 return tfm; in ima_alloc_tfm()
162 ima_algo_array[i].tfm in ima_init_crypto()
214 ima_free_tfm(struct crypto_shash *tfm) ima_free_tfm() argument
292 struct crypto_ahash *tfm = ima_ahash_tfm; ima_alloc_atfm() local
312 ima_free_atfm(struct crypto_ahash *tfm) ima_free_atfm() argument
329 ima_calc_file_hash_atfm(struct file *file, struct ima_digest_data *hash, struct crypto_ahash *tfm) ima_calc_file_hash_atfm() argument
442 struct crypto_ahash *tfm; ima_calc_file_ahash() local
456 ima_calc_file_hash_tfm(struct file *file, struct ima_digest_data *hash, struct crypto_shash *tfm) ima_calc_file_hash_tfm() argument
509 struct crypto_shash *tfm; ima_calc_file_shash() local
663 calc_buffer_ahash_atfm(const void *buf, loff_t len, struct ima_digest_data *hash, struct crypto_ahash *tfm) calc_buffer_ahash_atfm() argument
706 struct crypto_ahash *tfm; calc_buffer_ahash() local
720 calc_buffer_shash_tfm(const void *buf, loff_t size, struct ima_digest_data *hash, struct crypto_shash *tfm) calc_buffer_shash_tfm() argument
753 struct crypto_shash *tfm; calc_buffer_shash() local
800 ima_calc_boot_aggregate_tfm(char *digest, u16 alg_id, struct crypto_shash *tfm) ima_calc_boot_aggregate_tfm() argument
846 struct crypto_shash *tfm; ima_calc_boot_aggregate() local
[all...]
/kernel/linux/linux-6.6/security/integrity/ima/
H A Dima_crypto.c61 struct crypto_shash *tfm; member
93 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm() local
100 return tfm; in ima_alloc_tfm()
103 if (ima_algo_array[i].tfm && ima_algo_array[i].algo == algo) in ima_alloc_tfm()
104 return ima_algo_array[i].tfm; in ima_alloc_tfm()
106 tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0); in ima_alloc_tfm()
107 if (IS_ERR(tfm)) { in ima_alloc_tfm()
108 rc = PTR_ERR(tfm); in ima_alloc_tfm()
112 return tfm; in ima_alloc_tfm()
162 ima_algo_array[i].tfm in ima_init_crypto()
214 ima_free_tfm(struct crypto_shash *tfm) ima_free_tfm() argument
292 struct crypto_ahash *tfm = ima_ahash_tfm; ima_alloc_atfm() local
312 ima_free_atfm(struct crypto_ahash *tfm) ima_free_atfm() argument
329 ima_calc_file_hash_atfm(struct file *file, struct ima_digest_data *hash, struct crypto_ahash *tfm) ima_calc_file_hash_atfm() argument
442 struct crypto_ahash *tfm; ima_calc_file_ahash() local
456 ima_calc_file_hash_tfm(struct file *file, struct ima_digest_data *hash, struct crypto_shash *tfm) ima_calc_file_hash_tfm() argument
509 struct crypto_shash *tfm; ima_calc_file_shash() local
663 calc_buffer_ahash_atfm(const void *buf, loff_t len, struct ima_digest_data *hash, struct crypto_ahash *tfm) calc_buffer_ahash_atfm() argument
706 struct crypto_ahash *tfm; calc_buffer_ahash() local
720 calc_buffer_shash_tfm(const void *buf, loff_t size, struct ima_digest_data *hash, struct crypto_shash *tfm) calc_buffer_shash_tfm() argument
753 struct crypto_shash *tfm; calc_buffer_shash() local
800 ima_calc_boot_aggregate_tfm(char *digest, u16 alg_id, struct crypto_shash *tfm) ima_calc_boot_aggregate_tfm() argument
846 struct crypto_shash *tfm; ima_calc_boot_aggregate() local
[all...]
/kernel/linux/linux-6.6/include/crypto/internal/
H A Dscompress.h35 void *(*alloc_ctx)(struct crypto_scomp *tfm);
36 void (*free_ctx)(struct crypto_scomp *tfm, void *ctx);
37 int (*compress)(struct crypto_scomp *tfm, const u8 *src,
40 int (*decompress)(struct crypto_scomp *tfm, const u8 *src,
55 static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) in __crypto_scomp_tfm() argument
57 return container_of(tfm, struct crypto_scomp, base); in __crypto_scomp_tfm()
60 static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) in crypto_scomp_tfm() argument
62 return &tfm->base; in crypto_scomp_tfm()
65 static inline void crypto_free_scomp(struct crypto_scomp *tfm) in crypto_free_scomp() argument
67 crypto_destroy_tfm(tfm, crypto_scomp_tf in crypto_free_scomp()
70 crypto_scomp_alg(struct crypto_scomp *tfm) crypto_scomp_alg() argument
75 crypto_scomp_alloc_ctx(struct crypto_scomp *tfm) crypto_scomp_alloc_ctx() argument
80 crypto_scomp_free_ctx(struct crypto_scomp *tfm, void *ctx) crypto_scomp_free_ctx() argument
86 crypto_scomp_compress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) crypto_scomp_compress() argument
93 crypto_scomp_decompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) crypto_scomp_decompress() argument
[all...]
H A Dcipher.h37 static inline struct crypto_cipher *__crypto_cipher_cast(struct crypto_tfm *tfm) in __crypto_cipher_cast() argument
39 return (struct crypto_cipher *)tfm; in __crypto_cipher_cast()
66 static inline struct crypto_tfm *crypto_cipher_tfm(struct crypto_cipher *tfm) in crypto_cipher_tfm() argument
68 return &tfm->base; in crypto_cipher_tfm()
73 * @tfm: cipher handle to be freed
75 static inline void crypto_free_cipher(struct crypto_cipher *tfm) in crypto_free_cipher() argument
77 crypto_free_tfm(crypto_cipher_tfm(tfm)); in crypto_free_cipher()
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) in crypto_cipher_blocksize() argument
114 crypto_cipher_alignmask(struct crypto_cipher *tfm) crypto_cipher_alignmask() argument
119 crypto_cipher_get_flags(struct crypto_cipher *tfm) crypto_cipher_get_flags() argument
124 crypto_cipher_set_flags(struct crypto_cipher *tfm, u32 flags) crypto_cipher_set_flags() argument
130 crypto_cipher_clear_flags(struct crypto_cipher *tfm, u32 flags) crypto_cipher_clear_flags() argument
215 crypto_cipher_alg(struct crypto_cipher *tfm) crypto_cipher_alg() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dcrypto.h176 struct crypto_tfm *tfm; member
238 int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key,
240 void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
241 void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
256 int (*coa_compress)(struct crypto_tfm *tfm, const u8 *src,
258 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) crypto_free_tfm() argument
455 crypto_tfm_alg_name(struct crypto_tfm *tfm) crypto_tfm_alg_name() argument
460 crypto_tfm_alg_driver_name(struct crypto_tfm *tfm) crypto_tfm_alg_driver_name() argument
465 crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) crypto_tfm_alg_blocksize() argument
470 crypto_tfm_alg_alignmask(struct crypto_tfm *tfm) crypto_tfm_alg_alignmask() argument
475 crypto_tfm_get_flags(struct crypto_tfm *tfm) crypto_tfm_get_flags() argument
480 crypto_tfm_set_flags(struct crypto_tfm *tfm, u32 flags) crypto_tfm_set_flags() argument
485 crypto_tfm_clear_flags(struct crypto_tfm *tfm, u32 flags) crypto_tfm_clear_flags() argument
492 struct crypto_tfm *tfm; crypto_tfm_ctx_alignment() local
496 __crypto_comp_cast(struct crypto_tfm *tfm) __crypto_comp_cast() argument
511 crypto_comp_tfm(struct crypto_comp *tfm) crypto_comp_tfm() argument
516 crypto_free_comp(struct crypto_comp *tfm) crypto_free_comp() argument
530 crypto_comp_name(struct crypto_comp *tfm) crypto_comp_name() argument
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dcrypto.h183 struct crypto_tfm *tfm; member
245 int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key,
247 void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
248 void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
263 int (*coa_compress)(struct crypto_tfm *tfm, const u8 *src,
265 int (*coa_decompress)(struct crypto_tfm *tfm, const u8 *src,
491 int (*cra_init)(struct crypto_tfm *tfm);
492 void (*cra_exit)(struct crypto_tfm *tfm);
635 void (*exit)(struct crypto_tfm *tfm);
681 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm);
683 crypto_free_tfm(struct crypto_tfm *tfm) crypto_free_tfm() argument
693 crypto_tfm_alg_name(struct crypto_tfm *tfm) crypto_tfm_alg_name() argument
698 crypto_tfm_alg_driver_name(struct crypto_tfm *tfm) crypto_tfm_alg_driver_name() argument
703 crypto_tfm_alg_priority(struct crypto_tfm *tfm) crypto_tfm_alg_priority() argument
708 crypto_tfm_alg_type(struct crypto_tfm *tfm) crypto_tfm_alg_type() argument
713 crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) crypto_tfm_alg_blocksize() argument
718 crypto_tfm_alg_alignmask(struct crypto_tfm *tfm) crypto_tfm_alg_alignmask() argument
723 crypto_tfm_get_flags(struct crypto_tfm *tfm) crypto_tfm_get_flags() argument
728 crypto_tfm_set_flags(struct crypto_tfm *tfm, u32 flags) crypto_tfm_set_flags() argument
733 crypto_tfm_clear_flags(struct crypto_tfm *tfm, u32 flags) crypto_tfm_clear_flags() argument
738 crypto_tfm_ctx(struct crypto_tfm *tfm) crypto_tfm_ctx() argument
745 struct crypto_tfm *tfm; crypto_tfm_ctx_alignment() local
766 __crypto_cipher_cast(struct crypto_tfm *tfm) __crypto_cipher_cast() argument
795 crypto_cipher_tfm(struct crypto_cipher *tfm) crypto_cipher_tfm() argument
804 crypto_free_cipher(struct crypto_cipher *tfm) crypto_free_cipher() argument
838 crypto_cipher_blocksize(struct crypto_cipher *tfm) crypto_cipher_blocksize() argument
843 crypto_cipher_alignmask(struct crypto_cipher *tfm) crypto_cipher_alignmask() argument
848 crypto_cipher_get_flags(struct crypto_cipher *tfm) crypto_cipher_get_flags() argument
853 crypto_cipher_set_flags(struct crypto_cipher *tfm, u32 flags) crypto_cipher_set_flags() argument
859 crypto_cipher_clear_flags(struct crypto_cipher *tfm, u32 flags) crypto_cipher_clear_flags() argument
908 __crypto_comp_cast(struct crypto_tfm *tfm) __crypto_comp_cast() argument
923 crypto_comp_tfm(struct crypto_comp *tfm) crypto_comp_tfm() argument
928 crypto_free_comp(struct crypto_comp *tfm) crypto_free_comp() argument
942 crypto_comp_name(struct crypto_comp *tfm) crypto_comp_name() argument
[all...]
/kernel/linux/linux-6.6/crypto/
H A Dshash.c34 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey() argument
41 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned() argument
44 struct shash_alg *shash = crypto_shash_alg(tfm); in shash_setkey_unaligned()
45 unsigned long alignmask = crypto_shash_alignmask(tfm); in shash_setkey_unaligned()
57 err = shash->setkey(tfm, alignbuffer, keylen); in shash_setkey_unaligned()
62 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey() argument
65 crypto_shash_set_flags(tfm, CRYPTO_TFM_NEED_KEY); in shash_set_needkey()
68 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey() argument
71 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_setkey()
72 unsigned long alignmask = crypto_shash_alignmask(tfm); in crypto_shash_setkey()
93 struct crypto_shash *tfm = desc->tfm; shash_update_unaligned() local
123 struct crypto_shash *tfm = desc->tfm; crypto_shash_update() local
142 struct crypto_shash *tfm = desc->tfm; shash_final_unaligned() local
170 struct crypto_shash *tfm = desc->tfm; crypto_shash_final() local
197 struct crypto_shash *tfm = desc->tfm; crypto_shash_finup() local
230 struct crypto_shash *tfm = desc->tfm; crypto_shash_digest() local
253 crypto_shash_tfm_digest(struct crypto_shash *tfm, const u8 *data, unsigned int len, u8 *out) crypto_shash_tfm_digest() argument
281 shash_async_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) shash_async_setkey() argument
402 crypto_exit_shash_ops_async(struct crypto_tfm *tfm) crypto_exit_shash_ops_async() argument
409 crypto_init_shash_ops_async(struct crypto_tfm *tfm) crypto_init_shash_ops_async() argument
466 crypto_shash_exit_tfm(struct crypto_tfm *tfm) crypto_shash_exit_tfm() argument
474 crypto_shash_init_tfm(struct crypto_tfm *tfm) crypto_shash_init_tfm() argument
587 struct crypto_tfm *tfm = crypto_shash_tfm(hash); crypto_clone_shash() local
[all...]
H A Dcfb.c31 static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) in crypto_cfb_bsize() argument
33 return crypto_cipher_blocksize(skcipher_cipher_simple(tfm)); in crypto_cfb_bsize()
36 static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, in crypto_cfb_encrypt_one() argument
39 crypto_cipher_encrypt_one(skcipher_cipher_simple(tfm), dst, src); in crypto_cfb_encrypt_one()
44 struct crypto_skcipher *tfm) in crypto_cfb_final()
46 const unsigned long alignmask = crypto_skcipher_alignmask(tfm); in crypto_cfb_final()
54 crypto_cfb_encrypt_one(tfm, iv, stream); in crypto_cfb_final()
59 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_segment()
61 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_encrypt_segment()
68 crypto_cfb_encrypt_one(tfm, i in crypto_cfb_encrypt_segment()
43 crypto_cfb_final(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_final() argument
58 crypto_cfb_encrypt_segment(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_encrypt_segment() argument
81 crypto_cfb_encrypt_inplace(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_encrypt_inplace() argument
105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); crypto_cfb_encrypt() local
128 crypto_cfb_decrypt_segment(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_decrypt_segment() argument
151 crypto_cfb_decrypt_inplace(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_decrypt_inplace() argument
170 crypto_cfb_decrypt_blocks(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_decrypt_blocks() argument
181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); crypto_cfb_decrypt() local
[all...]
H A Dcipher.c20 static int setkey_unaligned(struct crypto_cipher *tfm, const u8 *key, in setkey_unaligned() argument
23 struct cipher_alg *cia = crypto_cipher_alg(tfm); in setkey_unaligned()
24 unsigned long alignmask = crypto_cipher_alignmask(tfm); in setkey_unaligned()
36 ret = cia->cia_setkey(crypto_cipher_tfm(tfm), alignbuffer, keylen); in setkey_unaligned()
43 int crypto_cipher_setkey(struct crypto_cipher *tfm, in crypto_cipher_setkey() argument
46 struct cipher_alg *cia = crypto_cipher_alg(tfm); in crypto_cipher_setkey()
47 unsigned long alignmask = crypto_cipher_alignmask(tfm); in crypto_cipher_setkey()
53 return setkey_unaligned(tfm, key, keylen); in crypto_cipher_setkey()
55 return cia->cia_setkey(crypto_cipher_tfm(tfm), key, keylen); in crypto_cipher_setkey()
59 static inline void cipher_crypt_one(struct crypto_cipher *tfm, in cipher_crypt_one() argument
80 crypto_cipher_encrypt_one(struct crypto_cipher *tfm, u8 *dst, const u8 *src) crypto_cipher_encrypt_one() argument
87 crypto_cipher_decrypt_one(struct crypto_cipher *tfm, u8 *dst, const u8 *src) crypto_cipher_decrypt_one() argument
96 struct crypto_tfm *tfm = crypto_cipher_tfm(cipher); crypto_clone_cipher() local
[all...]
/kernel/linux/linux-5.10/crypto/
H A Dcfb.c30 static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) in crypto_cfb_bsize() argument
32 return crypto_cipher_blocksize(skcipher_cipher_simple(tfm)); in crypto_cfb_bsize()
35 static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, in crypto_cfb_encrypt_one() argument
38 crypto_cipher_encrypt_one(skcipher_cipher_simple(tfm), dst, src); in crypto_cfb_encrypt_one()
43 struct crypto_skcipher *tfm) in crypto_cfb_final()
45 const unsigned long alignmask = crypto_skcipher_alignmask(tfm); in crypto_cfb_final()
53 crypto_cfb_encrypt_one(tfm, iv, stream); in crypto_cfb_final()
58 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_segment()
60 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_encrypt_segment()
67 crypto_cfb_encrypt_one(tfm, i in crypto_cfb_encrypt_segment()
42 crypto_cfb_final(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_final() argument
57 crypto_cfb_encrypt_segment(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_encrypt_segment() argument
80 crypto_cfb_encrypt_inplace(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_encrypt_inplace() argument
104 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); crypto_cfb_encrypt() local
127 crypto_cfb_decrypt_segment(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_decrypt_segment() argument
150 crypto_cfb_decrypt_inplace(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_decrypt_inplace() argument
169 crypto_cfb_decrypt_blocks(struct skcipher_walk *walk, struct crypto_skcipher *tfm) crypto_cfb_decrypt_blocks() argument
180 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); crypto_cfb_decrypt() local
[all...]
H A Dshash.c23 static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey() argument
42 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned() argument
45 struct shash_alg *shash = crypto_shash_alg(tfm); in shash_setkey_unaligned()
46 unsigned long alignmask = crypto_shash_alignmask(tfm); in shash_setkey_unaligned()
58 err = shash->setkey(tfm, alignbuffer, keylen); in shash_setkey_unaligned()
63 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey() argument
66 crypto_shash_set_flags(tfm, CRYPTO_TFM_NEED_KEY); in shash_set_needkey()
69 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey() argument
72 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_setkey()
73 unsigned long alignmask = crypto_shash_alignmask(tfm); in crypto_shash_setkey()
94 struct crypto_shash *tfm = desc->tfm; shash_update_unaligned() local
124 struct crypto_shash *tfm = desc->tfm; crypto_shash_update() local
137 struct crypto_shash *tfm = desc->tfm; shash_final_unaligned() local
165 struct crypto_shash *tfm = desc->tfm; crypto_shash_final() local
186 struct crypto_shash *tfm = desc->tfm; crypto_shash_finup() local
207 struct crypto_shash *tfm = desc->tfm; crypto_shash_digest() local
221 crypto_shash_tfm_digest(struct crypto_shash *tfm, const u8 *data, unsigned int len, u8 *out) crypto_shash_tfm_digest() argument
249 shash_async_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) shash_async_setkey() argument
370 crypto_exit_shash_ops_async(struct crypto_tfm *tfm) crypto_exit_shash_ops_async() argument
377 crypto_init_shash_ops_async(struct crypto_tfm *tfm) crypto_init_shash_ops_async() argument
416 crypto_shash_exit_tfm(struct crypto_tfm *tfm) crypto_shash_exit_tfm() argument
424 crypto_shash_init_tfm(struct crypto_tfm *tfm) crypto_shash_init_tfm() argument
[all...]
/kernel/linux/linux-6.6/net/mac80211/
H A Daes_cmac.c25 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() argument
28 SHASH_DESC_ON_STACK(desc, tfm); in ieee80211_aes_cmac()
32 desc->tfm = tfm; in ieee80211_aes_cmac()
49 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() argument
52 SHASH_DESC_ON_STACK(desc, tfm); in ieee80211_aes_cmac_256()
55 desc->tfm = tfm; in ieee80211_aes_cmac_256()
74 struct crypto_shash *tfm; in ieee80211_aes_cmac_key_setup() local
76 tfm in ieee80211_aes_cmac_key_setup()
89 ieee80211_aes_cmac_key_free(struct crypto_shash *tfm) ieee80211_aes_cmac_key_free() argument
[all...]

Completed in 16 milliseconds

12345678910>>...36