/crypto/ |
D | algapi.c | 94 struct crypto_spawn *spawn, *n; in crypto_more_spawns() local 96 spawn = list_first_entry_or_null(stack, struct crypto_spawn, list); in crypto_more_spawns() 97 if (!spawn) in crypto_more_spawns() 100 n = list_prev_entry(spawn, list); in crypto_more_spawns() 101 list_move(&spawn->list, secondary_spawns); in crypto_more_spawns() 107 if (!spawn->dead) in crypto_more_spawns() 143 struct crypto_spawn *spawn, *n; in crypto_remove_spawns() local 150 list_for_each_entry_safe(spawn, n, spawns, list) { in crypto_remove_spawns() 151 if ((spawn->alg->cra_flags ^ new_type) & spawn->mask) in crypto_remove_spawns() 154 list_move(&spawn->list, &top); in crypto_remove_spawns() [all …]
|
D | ctr.c | 221 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in crypto_rfc3686_init_tfm() local 227 cipher = crypto_spawn_skcipher(spawn); in crypto_rfc3686_init_tfm() 251 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in crypto_rfc3686_free() local 253 crypto_drop_skcipher(spawn); in crypto_rfc3686_free() 262 struct crypto_skcipher_spawn *spawn; in crypto_rfc3686_create() local 270 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_rfc3686_create() 274 spawn = skcipher_instance_ctx(inst); in crypto_rfc3686_create() 276 err = crypto_grab_skcipher(spawn, skcipher_crypto_instance(inst), in crypto_rfc3686_create() 281 alg = crypto_spawn_skcipher_alg(spawn); in crypto_rfc3686_create()
|
D | geniv.c | 44 struct crypto_aead_spawn *spawn; in aead_geniv_alloc() local 56 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in aead_geniv_alloc() 60 spawn = aead_instance_ctx(inst); in aead_geniv_alloc() 62 err = crypto_grab_aead(spawn, aead_crypto_instance(inst), in aead_geniv_alloc() 67 alg = crypto_spawn_aead_alg(spawn); in aead_geniv_alloc()
|
D | hmac.c | 145 struct crypto_shash_spawn *spawn = shash_instance_ctx(inst); in hmac_init_tfm() local 148 hash = crypto_spawn_shash(spawn); in hmac_init_tfm() 168 struct crypto_shash_spawn *spawn; in hmac_create() local 180 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in hmac_create() 183 spawn = shash_instance_ctx(inst); in hmac_create() 185 err = crypto_grab_shash(spawn, shash_crypto_instance(inst), in hmac_create() 189 salg = crypto_spawn_shash_alg(spawn); in hmac_create()
|
D | xcbc.c | 171 struct crypto_cipher_spawn *spawn = crypto_instance_ctx(inst); in xcbc_init_tfm() local 174 cipher = crypto_spawn_cipher(spawn); in xcbc_init_tfm() 192 struct crypto_cipher_spawn *spawn; in xcbc_create() local 202 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in xcbc_create() 205 spawn = shash_instance_ctx(inst); in xcbc_create() 207 err = crypto_grab_cipher(spawn, shash_crypto_instance(inst), in xcbc_create() 211 alg = crypto_spawn_cipher_alg(spawn); in xcbc_create()
|
D | lrw.c | 268 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in lrw_init_tfm() local 272 cipher = crypto_spawn_skcipher(spawn); in lrw_init_tfm() 301 struct crypto_skcipher_spawn *spawn; in lrw_create() local 317 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in lrw_create() 321 spawn = skcipher_instance_ctx(inst); in lrw_create() 323 err = crypto_grab_skcipher(spawn, skcipher_crypto_instance(inst), in lrw_create() 331 err = crypto_grab_skcipher(spawn, in lrw_create() 339 alg = crypto_skcipher_spawn_alg(spawn); in lrw_create()
|
D | cmac.c | 205 struct crypto_cipher_spawn *spawn = crypto_instance_ctx(inst); in cmac_init_tfm() local 208 cipher = crypto_spawn_cipher(spawn); in cmac_init_tfm() 226 struct crypto_cipher_spawn *spawn; in cmac_create() local 236 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in cmac_create() 239 spawn = shash_instance_ctx(inst); in cmac_create() 241 err = crypto_grab_cipher(spawn, shash_crypto_instance(inst), in cmac_create() 245 alg = crypto_spawn_cipher_alg(spawn); in cmac_create()
|
D | cts.c | 286 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in crypto_cts_init_tfm() local 293 cipher = crypto_spawn_skcipher(spawn); in crypto_cts_init_tfm() 326 struct crypto_skcipher_spawn *spawn; in crypto_cts_create() local 336 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_cts_create() 340 spawn = skcipher_instance_ctx(inst); in crypto_cts_create() 342 err = crypto_grab_skcipher(spawn, skcipher_crypto_instance(inst), in crypto_cts_create() 347 alg = crypto_spawn_skcipher_alg(spawn); in crypto_cts_create()
|
D | cryptd.c | 50 struct crypto_spawn spawn; member 55 struct crypto_skcipher_spawn spawn; member 60 struct crypto_shash_spawn spawn; member 339 struct crypto_skcipher_spawn *spawn = &ictx->spawn; in cryptd_skcipher_init_tfm() local 343 cipher = crypto_spawn_skcipher(spawn); in cryptd_skcipher_init_tfm() 365 crypto_drop_skcipher(&ctx->spawn); in cryptd_skcipher_free() 390 err = crypto_grab_skcipher(&ctx->spawn, skcipher_crypto_instance(inst), in cryptd_create_skcipher() 395 alg = crypto_spawn_skcipher_alg(&ctx->spawn); in cryptd_create_skcipher() 430 struct crypto_shash_spawn *spawn = &ictx->spawn; in cryptd_hash_init_tfm() local 434 hash = crypto_spawn_shash(spawn); in cryptd_hash_init_tfm() [all …]
|
D | ccm.c | 671 struct crypto_aead_spawn *spawn = aead_instance_ctx(inst); in crypto_rfc4309_init_tfm() local 676 aead = crypto_spawn_aead(spawn); in crypto_rfc4309_init_tfm() 711 struct crypto_aead_spawn *spawn; in crypto_rfc4309_create() local 719 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_rfc4309_create() 723 spawn = aead_instance_ctx(inst); in crypto_rfc4309_create() 724 err = crypto_grab_aead(spawn, aead_crypto_instance(inst), in crypto_rfc4309_create() 729 alg = crypto_spawn_aead_alg(spawn); in crypto_rfc4309_create() 845 struct crypto_cipher_spawn *spawn = crypto_instance_ctx(inst); in cbcmac_init_tfm() local 848 cipher = crypto_spawn_cipher(spawn); in cbcmac_init_tfm() 866 struct crypto_cipher_spawn *spawn; in cbcmac_create() local [all …]
|
D | akcipher.c | 93 int crypto_grab_akcipher(struct crypto_akcipher_spawn *spawn, in crypto_grab_akcipher() argument 97 spawn->base.frontend = &crypto_akcipher_type; in crypto_grab_akcipher() 98 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_akcipher()
|
D | pcrypt.c | 25 struct crypto_aead_spawn spawn; member 190 cipher = crypto_spawn_aead(&ictx->spawn); in pcrypt_aead_init_tfm() 214 crypto_drop_aead(&ctx->spawn); in pcrypt_free() 260 err = crypto_grab_aead(&ctx->spawn, aead_crypto_instance(inst), in pcrypt_create_aead() 265 alg = crypto_spawn_aead_alg(&ctx->spawn); in pcrypt_create_aead()
|
D | xts.c | 30 struct crypto_skcipher_spawn spawn; member 303 child = crypto_spawn_skcipher(&ictx->spawn); in xts_init_tfm() 335 crypto_drop_skcipher(&ictx->spawn); in xts_free_instance() 362 err = crypto_grab_skcipher(&ctx->spawn, skcipher_crypto_instance(inst), in xts_create() 370 err = crypto_grab_skcipher(&ctx->spawn, in xts_create() 378 alg = crypto_skcipher_spawn_alg(&ctx->spawn); in xts_create()
|
D | rsa-pkcs1pad.c | 97 struct crypto_akcipher_spawn spawn; member 572 child_tfm = crypto_spawn_akcipher(&ictx->spawn); in pkcs1pad_init_tfm() 594 struct crypto_akcipher_spawn *spawn = &ctx->spawn; in pkcs1pad_free() local 596 crypto_drop_akcipher(spawn); in pkcs1pad_free() 619 err = crypto_grab_akcipher(&ctx->spawn, akcipher_crypto_instance(inst), in pkcs1pad_create() 624 rsa_alg = crypto_spawn_akcipher_alg(&ctx->spawn); in pkcs1pad_create()
|
D | skcipher.c | 744 int crypto_grab_skcipher(struct crypto_skcipher_spawn *spawn, in crypto_grab_skcipher() argument 748 spawn->base.frontend = &crypto_skcipher_type; in crypto_grab_skcipher() 749 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_skcipher() 888 struct crypto_cipher_spawn *spawn = skcipher_instance_ctx(inst); in skcipher_init_tfm_simple() local 892 cipher = crypto_spawn_cipher(spawn); in skcipher_init_tfm_simple() 934 struct crypto_cipher_spawn *spawn; in skcipher_alloc_instance_simple() local 942 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in skcipher_alloc_instance_simple() 945 spawn = skcipher_instance_ctx(inst); in skcipher_alloc_instance_simple() 947 err = crypto_grab_cipher(spawn, skcipher_crypto_instance(inst), in skcipher_alloc_instance_simple() 951 cipher_alg = crypto_spawn_cipher_alg(spawn); in skcipher_alloc_instance_simple()
|
D | aead.c | 205 int crypto_grab_aead(struct crypto_aead_spawn *spawn, in crypto_grab_aead() argument 209 spawn->base.frontend = &crypto_aead_type; in crypto_grab_aead() 210 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_aead()
|
D | vmac.c | 600 struct crypto_cipher_spawn *spawn = crypto_instance_ctx(inst); in vmac_init_tfm() local 604 cipher = crypto_spawn_cipher(spawn); in vmac_init_tfm() 622 struct crypto_cipher_spawn *spawn; in vmac_create() local 631 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in vmac_create() 634 spawn = shash_instance_ctx(inst); in vmac_create() 636 err = crypto_grab_cipher(spawn, shash_crypto_instance(inst), in vmac_create() 640 alg = crypto_spawn_cipher_alg(spawn); in vmac_create()
|
D | gcm.c | 792 struct crypto_aead_spawn *spawn = aead_instance_ctx(inst); in crypto_rfc4106_init_tfm() local 797 aead = crypto_spawn_aead(spawn); in crypto_rfc4106_init_tfm() 832 struct crypto_aead_spawn *spawn; in crypto_rfc4106_create() local 840 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_rfc4106_create() 844 spawn = aead_instance_ctx(inst); in crypto_rfc4106_create() 845 err = crypto_grab_aead(spawn, aead_crypto_instance(inst), in crypto_rfc4106_create() 850 alg = crypto_spawn_aead_alg(spawn); in crypto_rfc4106_create() 991 struct crypto_aead_spawn *spawn = &ictx->aead; in crypto_rfc4543_init_tfm() local 998 aead = crypto_spawn_aead(spawn); in crypto_rfc4543_init_tfm()
|
D | ahash.c | 546 int crypto_grab_ahash(struct crypto_ahash_spawn *spawn, in crypto_grab_ahash() argument 550 spawn->base.frontend = &crypto_ahash_type; in crypto_grab_ahash() 551 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_ahash()
|
D | shash.c | 508 int crypto_grab_shash(struct crypto_shash_spawn *spawn, in crypto_grab_shash() argument 512 spawn->base.frontend = &crypto_shash_type; in crypto_grab_shash() 513 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_shash()
|