/linux/crypto/ |
A D | algapi.c | 97 if (!spawn) in crypto_more_spawns() 107 if (!spawn->dead) in crypto_more_spawns() 151 if ((spawn->alg->cra_flags ^ new_type) & spawn->mask) in crypto_remove_spawns() 172 spawn->dead = !spawn->registered || &inst->alg != nalg; in crypto_remove_spawns() 211 if (!spawn->dead) in crypto_remove_spawns() 212 list_move(&spawn->list, &spawn->alg->cra_users); in crypto_remove_spawns() 619 for (spawn = inst->spawns; spawn;) { in crypto_register_instance() 622 if (spawn->dead) in crypto_register_instance() 631 spawn = next; in crypto_register_instance() 693 spawn->alg = alg; in crypto_grab_spawn() [all …]
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A D | cryptd.c | 46 struct crypto_spawn spawn; member 51 struct crypto_skcipher_spawn spawn; member 56 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() 364 crypto_drop_skcipher(&ctx->spawn); in cryptd_skcipher_free() 429 struct crypto_shash_spawn *spawn = &ictx->spawn; in cryptd_hash_init_tfm() local 433 hash = crypto_spawn_shash(spawn); in cryptd_hash_init_tfm() 631 crypto_drop_shash(&ctx->spawn); in cryptd_hash_free() 659 alg = crypto_spawn_shash_alg(&ctx->spawn); in cryptd_create_hash() [all …]
|
A 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()
|
A 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() 848 cipher = crypto_spawn_cipher(spawn); in cbcmac_init_tfm() 866 struct crypto_cipher_spawn *spawn; in cbcmac_create() local 878 spawn = shash_instance_ctx(inst); in cbcmac_create() [all …]
|
A 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()
|
A D | pcrypt.c | 25 struct crypto_aead_spawn spawn; member 186 cipher = crypto_spawn_aead(&ictx->spawn); in pcrypt_aead_init_tfm() 210 crypto_drop_aead(&ctx->spawn); in pcrypt_free() 256 err = crypto_grab_aead(&ctx->spawn, aead_crypto_instance(inst), in pcrypt_create_aead() 261 alg = crypto_spawn_aead_alg(&ctx->spawn); in pcrypt_create_aead()
|
A 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()
|
A 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()
|
A D | rsa-pkcs1pad.c | 97 struct crypto_akcipher_spawn spawn; member 574 child_tfm = crypto_spawn_akcipher(&ictx->spawn); in pkcs1pad_init_tfm() 592 struct crypto_akcipher_spawn *spawn = &ctx->spawn; in pkcs1pad_free() local 594 crypto_drop_akcipher(spawn); in pkcs1pad_free() 617 err = crypto_grab_akcipher(&ctx->spawn, akcipher_crypto_instance(inst), in pkcs1pad_create() 622 rsa_alg = crypto_spawn_akcipher_alg(&ctx->spawn); in pkcs1pad_create()
|
A 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()
|
A 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()
|
A 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()
|
/linux/include/crypto/internal/ |
A D | hash.h | 88 int crypto_grab_ahash(struct crypto_ahash_spawn *spawn, 94 crypto_drop_spawn(&spawn->base); in crypto_drop_ahash() 98 struct crypto_ahash_spawn *spawn) in crypto_spawn_ahash_alg() argument 100 return __crypto_hash_alg_common(spawn->base.alg); in crypto_spawn_ahash_alg() 117 crypto_drop_spawn(&spawn->base); in crypto_drop_shash() 121 struct crypto_shash_spawn *spawn) in crypto_spawn_shash_alg() argument 123 return __crypto_shash_alg(spawn->base.alg); in crypto_spawn_shash_alg() 183 struct crypto_ahash_spawn *spawn) in crypto_spawn_ahash() argument 185 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_ahash() 229 struct crypto_shash_spawn *spawn) in crypto_spawn_shash() argument [all …]
|
A D | skcipher.h | 92 int crypto_grab_skcipher(struct crypto_skcipher_spawn *spawn, 96 static inline void crypto_drop_skcipher(struct crypto_skcipher_spawn *spawn) in crypto_drop_skcipher() argument 98 crypto_drop_spawn(&spawn->base); in crypto_drop_skcipher() 102 struct crypto_skcipher_spawn *spawn) in crypto_skcipher_spawn_alg() argument 104 return container_of(spawn->base.alg, struct skcipher_alg, base); in crypto_skcipher_spawn_alg() 108 struct crypto_skcipher_spawn *spawn) in crypto_spawn_skcipher_alg() argument 110 return crypto_skcipher_spawn_alg(spawn); in crypto_spawn_skcipher_alg() 114 struct crypto_skcipher_spawn *spawn) in crypto_spawn_skcipher() argument 116 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_skcipher() 217 struct crypto_cipher_spawn *spawn = skcipher_instance_ctx(inst); in skcipher_ialg_simple() local [all …]
|
A D | cipher.h | 183 static inline int crypto_grab_cipher(struct crypto_cipher_spawn *spawn, in crypto_grab_cipher() argument 190 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_cipher() 193 static inline void crypto_drop_cipher(struct crypto_cipher_spawn *spawn) in crypto_drop_cipher() argument 195 crypto_drop_spawn(&spawn->base); in crypto_drop_cipher() 199 struct crypto_cipher_spawn *spawn) in crypto_spawn_cipher_alg() argument 201 return spawn->base.alg; in crypto_spawn_cipher_alg() 205 struct crypto_cipher_spawn *spawn) in crypto_spawn_cipher() argument 210 return __crypto_cipher_cast(crypto_spawn_tfm(&spawn->base, type, mask)); in crypto_spawn_cipher()
|
A D | akcipher.h | 81 int crypto_grab_akcipher(struct crypto_akcipher_spawn *spawn, 86 struct crypto_akcipher_spawn *spawn) in crypto_spawn_akcipher() argument 88 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_akcipher() 91 static inline void crypto_drop_akcipher(struct crypto_akcipher_spawn *spawn) in crypto_drop_akcipher() argument 93 crypto_drop_spawn(&spawn->base); in crypto_drop_akcipher() 97 struct crypto_akcipher_spawn *spawn) in crypto_spawn_akcipher_alg() argument 99 return container_of(spawn->base.alg, struct akcipher_alg, base); in crypto_spawn_akcipher_alg()
|
A D | aead.h | 84 int crypto_grab_aead(struct crypto_aead_spawn *spawn, 88 static inline void crypto_drop_aead(struct crypto_aead_spawn *spawn) in crypto_drop_aead() argument 90 crypto_drop_spawn(&spawn->base); in crypto_drop_aead() 94 struct crypto_aead_spawn *spawn) in crypto_spawn_aead_alg() argument 96 return container_of(spawn->base.alg, struct aead_alg, base); in crypto_spawn_aead_alg() 100 struct crypto_aead_spawn *spawn) in crypto_spawn_aead() argument 102 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_aead()
|
/linux/include/crypto/ |
A D | algapi.h | 120 int crypto_grab_spawn(struct crypto_spawn *spawn, struct crypto_instance *inst, 122 void crypto_drop_spawn(struct crypto_spawn *spawn); 123 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type, 125 void *crypto_spawn_tfm2(struct crypto_spawn *spawn);
|
/linux/tools/perf/arch/x86/tests/ |
A D | intel-cqm.c | 16 static pid_t spawn(void) in spawn() function 82 pid = spawn(); in test__intel_cqm_count_nmi_context()
|