Home
last modified time | relevance | path

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

/crypto/
Dalgapi.c90 struct crypto_spawn *spawn, *n; in crypto_more_spawns() local
92 spawn = list_first_entry_or_null(stack, struct crypto_spawn, list); in crypto_more_spawns()
93 if (!spawn) in crypto_more_spawns()
96 n = list_next_entry(spawn, list); in crypto_more_spawns()
98 if (spawn->alg && &n->list != stack && !n->alg) in crypto_more_spawns()
102 list_move(&spawn->list, secondary_spawns); in crypto_more_spawns()
133 struct crypto_spawn *spawn, *n; in crypto_remove_spawns() local
140 list_for_each_entry_safe(spawn, n, spawns, list) { in crypto_remove_spawns()
141 if ((spawn->alg->cra_flags ^ new_type) & spawn->mask) in crypto_remove_spawns()
144 list_move(&spawn->list, &top); in crypto_remove_spawns()
[all …]
Dctr.c226 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in crypto_rfc3686_init_tfm() local
232 cipher = crypto_spawn_skcipher(spawn); in crypto_rfc3686_init_tfm()
256 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in crypto_rfc3686_free() local
258 crypto_drop_skcipher(spawn); in crypto_rfc3686_free()
268 struct crypto_skcipher_spawn *spawn; in crypto_rfc3686_create() local
285 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_rfc3686_create()
293 spawn = skcipher_instance_ctx(inst); in crypto_rfc3686_create()
295 crypto_set_skcipher_spawn(spawn, skcipher_crypto_instance(inst)); in crypto_rfc3686_create()
296 err = crypto_grab_skcipher(spawn, cipher_name, 0, mask); in crypto_rfc3686_create()
300 alg = crypto_spawn_skcipher_alg(spawn); in crypto_rfc3686_create()
[all …]
Dlrw.c267 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in init_tfm() local
271 cipher = crypto_spawn_skcipher(spawn); in init_tfm()
300 struct crypto_skcipher_spawn *spawn; in create() local
319 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in create()
323 spawn = skcipher_instance_ctx(inst); in create()
325 crypto_set_skcipher_spawn(spawn, skcipher_crypto_instance(inst)); in create()
326 err = crypto_grab_skcipher(spawn, cipher_name, 0, in create()
335 err = crypto_grab_skcipher(spawn, ecb_name, 0, in create()
343 alg = crypto_skcipher_spawn_alg(spawn); in create()
414 crypto_drop_skcipher(spawn); in create()
Daead.c235 struct crypto_aead_spawn *spawn; in aead_geniv_alloc() local
254 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in aead_geniv_alloc()
258 spawn = aead_instance_ctx(inst); in aead_geniv_alloc()
263 crypto_set_aead_spawn(spawn, aead_crypto_instance(inst)); in aead_geniv_alloc()
264 err = crypto_grab_aead(spawn, name, type, mask); in aead_geniv_alloc()
268 alg = crypto_spawn_aead_alg(spawn); in aead_geniv_alloc()
303 crypto_drop_aead(spawn); in aead_geniv_alloc()
371 int crypto_grab_aead(struct crypto_aead_spawn *spawn, const char *name, in crypto_grab_aead() argument
374 spawn->base.frontend = &crypto_aead_type; in crypto_grab_aead()
375 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_aead()
Dcts.c290 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in crypto_cts_init_tfm() local
297 cipher = crypto_spawn_skcipher(spawn); in crypto_cts_init_tfm()
330 struct crypto_skcipher_spawn *spawn; in crypto_cts_create() local
348 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_cts_create()
352 spawn = skcipher_instance_ctx(inst); in crypto_cts_create()
354 crypto_set_skcipher_spawn(spawn, skcipher_crypto_instance(inst)); in crypto_cts_create()
355 err = crypto_grab_skcipher(spawn, cipher_name, 0, in crypto_cts_create()
361 alg = crypto_spawn_skcipher_alg(spawn); in crypto_cts_create()
404 crypto_drop_skcipher(spawn); in crypto_cts_create()
Dcryptd.c46 struct crypto_spawn spawn; member
51 struct crypto_skcipher_spawn spawn; member
56 struct crypto_shash_spawn spawn; member
367 struct crypto_skcipher_spawn *spawn = &ictx->spawn; in cryptd_skcipher_init_tfm() local
371 cipher = crypto_spawn_skcipher(spawn); in cryptd_skcipher_init_tfm()
392 crypto_drop_skcipher(&ctx->spawn); in cryptd_skcipher_free()
424 crypto_set_skcipher_spawn(&ctx->spawn, skcipher_crypto_instance(inst)); in cryptd_create_skcipher()
425 err = crypto_grab_skcipher(&ctx->spawn, name, type, mask); in cryptd_create_skcipher()
429 alg = crypto_spawn_skcipher_alg(&ctx->spawn); in cryptd_create_skcipher()
456 crypto_drop_skcipher(&ctx->spawn); in cryptd_create_skcipher()
[all …]
Drsa-pkcs1pad.c96 struct crypto_akcipher_spawn spawn; member
573 child_tfm = crypto_spawn_akcipher(&ictx->spawn); in pkcs1pad_init_tfm()
591 struct crypto_akcipher_spawn *spawn = &ctx->spawn; in pkcs1pad_free() local
593 crypto_drop_akcipher(spawn); in pkcs1pad_free()
603 struct crypto_akcipher_spawn *spawn; in pkcs1pad_create() local
636 spawn = &ctx->spawn; in pkcs1pad_create()
639 crypto_set_spawn(&spawn->base, akcipher_crypto_instance(inst)); in pkcs1pad_create()
640 err = crypto_grab_akcipher(spawn, rsa_alg_name, 0, in pkcs1pad_create()
645 rsa_alg = crypto_spawn_akcipher_alg(spawn); in pkcs1pad_create()
698 crypto_drop_akcipher(spawn); in pkcs1pad_create()
Dpcrypt.c26 struct crypto_aead_spawn spawn; member
170 cipher = crypto_spawn_aead(&ictx->spawn); in pcrypt_aead_init_tfm()
194 crypto_drop_aead(&ctx->spawn); in pcrypt_free()
237 crypto_set_aead_spawn(&ctx->spawn, aead_crypto_instance(inst)); in pcrypt_create_aead()
239 err = crypto_grab_aead(&ctx->spawn, name, 0, 0); in pcrypt_create_aead()
243 alg = crypto_spawn_aead_alg(&ctx->spawn); in pcrypt_create_aead()
273 crypto_drop_aead(&ctx->spawn); in pcrypt_create_aead()
Dxts.c29 struct crypto_skcipher_spawn spawn; member
303 child = crypto_spawn_skcipher(&ictx->spawn); in init_tfm()
364 crypto_set_skcipher_spawn(&ctx->spawn, skcipher_crypto_instance(inst)); in create()
370 err = crypto_grab_skcipher(&ctx->spawn, cipher_name, 0, mask); in create()
377 err = crypto_grab_skcipher(&ctx->spawn, ctx->name, 0, mask); in create()
383 alg = crypto_skcipher_spawn_alg(&ctx->spawn); in create()
452 crypto_drop_skcipher(&ctx->spawn); in create()
Dakcipher.c93 int crypto_grab_akcipher(struct crypto_akcipher_spawn *spawn, const char *name, in crypto_grab_akcipher() argument
96 spawn->base.frontend = &crypto_akcipher_type; in crypto_grab_akcipher()
97 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_akcipher()
Dgcm.c831 struct crypto_aead_spawn *spawn = aead_instance_ctx(inst); in crypto_rfc4106_init_tfm() local
836 aead = crypto_spawn_aead(spawn); in crypto_rfc4106_init_tfm()
871 struct crypto_aead_spawn *spawn; in crypto_rfc4106_create() local
887 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_rfc4106_create()
891 spawn = aead_instance_ctx(inst); in crypto_rfc4106_create()
892 crypto_set_aead_spawn(spawn, aead_crypto_instance(inst)); in crypto_rfc4106_create()
893 err = crypto_grab_aead(spawn, ccm_name, 0, in crypto_rfc4106_create()
898 alg = crypto_spawn_aead_alg(spawn); in crypto_rfc4106_create()
948 crypto_drop_aead(spawn); in crypto_rfc4106_create()
1051 struct crypto_aead_spawn *spawn = &ictx->aead; in crypto_rfc4543_init_tfm() local
[all …]
Dccm.c709 struct crypto_aead_spawn *spawn = aead_instance_ctx(inst); in crypto_rfc4309_init_tfm() local
714 aead = crypto_spawn_aead(spawn); in crypto_rfc4309_init_tfm()
749 struct crypto_aead_spawn *spawn; in crypto_rfc4309_create() local
765 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_rfc4309_create()
769 spawn = aead_instance_ctx(inst); in crypto_rfc4309_create()
770 crypto_set_aead_spawn(spawn, aead_crypto_instance(inst)); in crypto_rfc4309_create()
771 err = crypto_grab_aead(spawn, ccm_name, 0, in crypto_rfc4309_create()
776 alg = crypto_spawn_aead_alg(spawn); in crypto_rfc4309_create()
826 crypto_drop_aead(spawn); in crypto_rfc4309_create()
899 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in cbcmac_init_tfm() local
[all …]
Dskcipher.c981 int crypto_grab_skcipher(struct crypto_skcipher_spawn *spawn, in crypto_grab_skcipher() argument
984 spawn->base.frontend = &crypto_skcipher_type2; in crypto_grab_skcipher()
985 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_skcipher()
1126 struct crypto_spawn *spawn = skcipher_instance_ctx(inst); in skcipher_init_tfm_simple() local
1130 cipher = crypto_spawn_cipher(spawn); in skcipher_init_tfm_simple()
1176 struct crypto_spawn *spawn; in skcipher_alloc_instance_simple() local
1195 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in skcipher_alloc_instance_simple()
1200 spawn = skcipher_instance_ctx(inst); in skcipher_alloc_instance_simple()
1207 err = crypto_init_spawn(spawn, cipher_alg, in skcipher_alloc_instance_simple()
Dhmac.c146 struct crypto_shash_spawn *spawn = crypto_instance_ctx(inst); in hmac_init_tfm() local
149 hash = crypto_spawn_shash(spawn); in hmac_init_tfm()
Dxcbc.c170 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in xcbc_init_tfm() local
173 cipher = crypto_spawn_cipher(spawn); in xcbc_init_tfm()
Dcmac.c204 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in cmac_init_tfm() local
207 cipher = crypto_spawn_cipher(spawn); in cmac_init_tfm()
Dshash.c560 int crypto_init_shash_spawn(struct crypto_shash_spawn *spawn, in crypto_init_shash_spawn() argument
564 return crypto_init_spawn2(&spawn->base, &alg->base, inst, in crypto_init_shash_spawn()
Dahash.c656 int crypto_init_ahash_spawn(struct crypto_ahash_spawn *spawn, in crypto_init_ahash_spawn() argument
660 return crypto_init_spawn2(&spawn->base, &alg->base, inst, in crypto_init_ahash_spawn()
Dvmac.c601 struct crypto_spawn *spawn = crypto_instance_ctx(inst); in vmac_init_tfm() local
605 cipher = crypto_spawn_cipher(spawn); in vmac_init_tfm()