Home
last modified time | relevance | path

Searched refs:spawn (Results 1 – 21 of 21) sorted by relevance

/crypto/
Dalgapi.c72 struct crypto_spawn *spawn, *n; in crypto_more_spawns() local
77 spawn = list_first_entry(stack, struct crypto_spawn, list); in crypto_more_spawns()
78 n = list_entry(spawn->list.next, struct crypto_spawn, list); in crypto_more_spawns()
80 if (spawn->alg && &n->list != stack && !n->alg) in crypto_more_spawns()
85 list_move(&spawn->list, secondary_spawns); in crypto_more_spawns()
90 static void crypto_remove_spawn(struct crypto_spawn *spawn, in crypto_remove_spawn() argument
93 struct crypto_instance *inst = spawn->inst; in crypto_remove_spawn()
118 struct crypto_spawn *spawn, *n; in crypto_remove_spawns() local
125 list_for_each_entry_safe(spawn, n, spawns, list) { in crypto_remove_spawns()
126 if ((spawn->alg->cra_flags ^ new_type) & spawn->mask) in crypto_remove_spawns()
[all …]
Dctr.c161 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in crypto_ctr_init_tfm() local
165 cipher = crypto_spawn_cipher(spawn); in crypto_ctr_init_tfm()
309 struct crypto_skcipher_spawn *spawn = crypto_instance_ctx(inst); in crypto_rfc3686_init_tfm() local
314 cipher = crypto_spawn_skcipher(spawn); in crypto_rfc3686_init_tfm()
341 struct crypto_skcipher_spawn *spawn; in crypto_rfc3686_alloc() local
356 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_rfc3686_alloc()
360 spawn = crypto_instance_ctx(inst); in crypto_rfc3686_alloc()
362 crypto_set_skcipher_spawn(spawn, inst); in crypto_rfc3686_alloc()
363 err = crypto_grab_skcipher(spawn, cipher_name, 0, in crypto_rfc3686_alloc()
369 alg = crypto_skcipher_spawn_alg(spawn); in crypto_rfc3686_alloc()
[all …]
Daead.c253 static int crypto_grab_nivaead(struct crypto_aead_spawn *spawn, in crypto_grab_nivaead() argument
267 err = crypto_init_spawn(&spawn->base, alg, spawn->base.inst, mask); in crypto_grab_nivaead()
277 struct crypto_aead_spawn *spawn; in aead_geniv_alloc() local
295 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in aead_geniv_alloc()
299 spawn = crypto_instance_ctx(inst); in aead_geniv_alloc()
304 crypto_set_aead_spawn(spawn, inst); in aead_geniv_alloc()
305 err = crypto_grab_nivaead(spawn, name, type, mask); in aead_geniv_alloc()
309 alg = crypto_aead_spawn_alg(spawn); in aead_geniv_alloc()
359 crypto_drop_aead(spawn); in aead_geniv_alloc()
504 int crypto_grab_aead(struct crypto_aead_spawn *spawn, const char *name, in crypto_grab_aead() argument
[all …]
Dcryptd.c46 struct crypto_spawn spawn; member
51 struct crypto_shash_spawn spawn; member
263 struct crypto_spawn *spawn = &ictx->spawn; in cryptd_blkcipher_init_tfm() local
267 cipher = crypto_spawn_blkcipher(spawn); in cryptd_blkcipher_init_tfm()
339 err = crypto_init_spawn(&ctx->spawn, alg, inst, in cryptd_create_blkcipher()
364 crypto_drop_spawn(&ctx->spawn); in cryptd_create_blkcipher()
378 struct crypto_shash_spawn *spawn = &ictx->spawn; in cryptd_hash_init_tfm() local
382 hash = crypto_spawn_shash(spawn); in cryptd_hash_init_tfm()
596 err = crypto_init_shash_spawn(&ctx->spawn, salg, in cryptd_create_hash()
620 crypto_drop_shash(&ctx->spawn); in cryptd_create_hash()
[all …]
Dgcm.c936 struct crypto_aead_spawn *spawn = crypto_instance_ctx(inst); in crypto_rfc4106_init_tfm() local
941 aead = crypto_spawn_aead(spawn); in crypto_rfc4106_init_tfm()
968 struct crypto_aead_spawn *spawn; in crypto_rfc4106_alloc() local
984 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_rfc4106_alloc()
988 spawn = crypto_instance_ctx(inst); in crypto_rfc4106_alloc()
989 crypto_set_aead_spawn(spawn, inst); in crypto_rfc4106_alloc()
990 err = crypto_grab_aead(spawn, ccm_name, 0, in crypto_rfc4106_alloc()
995 alg = crypto_aead_spawn_alg(spawn); in crypto_rfc4106_alloc()
1041 crypto_drop_aead(spawn); in crypto_rfc4106_alloc()
1238 struct crypto_aead_spawn *spawn = &ictx->aead; in crypto_rfc4543_init_tfm() local
[all …]
Dblkcipher.c562 static int crypto_grab_nivcipher(struct crypto_skcipher_spawn *spawn, in crypto_grab_nivcipher() argument
575 err = crypto_init_spawn(&spawn->base, alg, spawn->base.inst, mask); in crypto_grab_nivcipher()
597 struct crypto_skcipher_spawn *spawn; in skcipher_geniv_alloc() local
615 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in skcipher_geniv_alloc()
619 spawn = crypto_instance_ctx(inst); in skcipher_geniv_alloc()
624 crypto_set_skcipher_spawn(spawn, inst); in skcipher_geniv_alloc()
625 err = crypto_grab_nivcipher(spawn, name, type, mask); in skcipher_geniv_alloc()
629 alg = crypto_skcipher_spawn_alg(spawn); in skcipher_geniv_alloc()
705 crypto_drop_skcipher(spawn); in skcipher_geniv_alloc()
Dccm.c718 struct crypto_aead_spawn *spawn = crypto_instance_ctx(inst); in crypto_rfc4309_init_tfm() local
723 aead = crypto_spawn_aead(spawn); in crypto_rfc4309_init_tfm()
750 struct crypto_aead_spawn *spawn; in crypto_rfc4309_alloc() local
766 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_rfc4309_alloc()
770 spawn = crypto_instance_ctx(inst); in crypto_rfc4309_alloc()
771 crypto_set_aead_spawn(spawn, inst); in crypto_rfc4309_alloc()
772 err = crypto_grab_aead(spawn, ccm_name, 0, in crypto_rfc4309_alloc()
777 alg = crypto_aead_spawn_alg(spawn); in crypto_rfc4309_alloc()
823 crypto_drop_aead(spawn); in crypto_rfc4309_alloc()
Decb.c100 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in crypto_ecb_init_tfm() local
104 cipher = crypto_spawn_cipher(spawn); in crypto_ecb_init_tfm()
Dxts.c245 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in init_tfm() local
249 cipher = crypto_spawn_cipher(spawn); in init_tfm()
261 cipher = crypto_spawn_cipher(spawn); in init_tfm()
Dxcbc.c181 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in xcbc_init_tfm() local
184 cipher = crypto_spawn_cipher(spawn); in xcbc_init_tfm()
Dhmac.c164 struct crypto_shash_spawn *spawn = crypto_instance_ctx(inst); in hmac_init_tfm() local
167 hash = crypto_spawn_shash(spawn); in hmac_init_tfm()
Dcmac.c207 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in cmac_init_tfm() local
210 cipher = crypto_spawn_cipher(spawn); in cmac_init_tfm()
Dpcrypt.c63 struct crypto_spawn spawn; member
329 err = crypto_init_spawn(&ctx->spawn, alg, inst, in pcrypt_alloc_instance()
404 crypto_drop_spawn(&ctx->spawn); in pcrypt_free()
Dpcbc.c206 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in crypto_pcbc_init_tfm() local
210 cipher = crypto_spawn_cipher(spawn); in crypto_pcbc_init_tfm()
Dcbc.c196 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in crypto_cbc_init_tfm() local
200 cipher = crypto_spawn_cipher(spawn); in crypto_cbc_init_tfm()
Dcts.c255 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in crypto_cts_init_tfm() local
259 cipher = crypto_spawn_blkcipher(spawn); in crypto_cts_init_tfm()
Dlrw.c300 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in init_tfm() local
304 cipher = crypto_spawn_cipher(spawn); in init_tfm()
Dablkcipher.c656 int crypto_grab_skcipher(struct crypto_skcipher_spawn *spawn, const char *name, in crypto_grab_skcipher() argument
669 err = crypto_init_spawn(&spawn->base, alg, spawn->base.inst, mask); in crypto_grab_skcipher()
Dahash.c514 int crypto_init_ahash_spawn(struct crypto_ahash_spawn *spawn, in crypto_init_ahash_spawn() argument
518 return crypto_init_spawn2(&spawn->base, &alg->base, inst, in crypto_init_ahash_spawn()
Dshash.c689 int crypto_init_shash_spawn(struct crypto_shash_spawn *spawn, in crypto_init_shash_spawn() argument
693 return crypto_init_spawn2(&spawn->base, &alg->base, inst, in crypto_init_shash_spawn()
Dvmac.c626 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in vmac_init_tfm() local
629 cipher = crypto_spawn_cipher(spawn); in vmac_init_tfm()