Home
last modified time | relevance | path

Searched refs:ictx (Results 1 – 12 of 12) sorted by relevance

/crypto/
Dessiv.c270 static int essiv_init_tfm(struct essiv_instance_ctx *ictx, in essiv_init_tfm() argument
277 essiv_cipher = crypto_alloc_cipher(ictx->essiv_cipher_name, 0, 0); in essiv_init_tfm()
281 hash = crypto_alloc_shash(ictx->shash_driver_name, 0, 0); in essiv_init_tfm()
300 struct essiv_instance_ctx *ictx = skcipher_instance_ctx(inst); in essiv_skcipher_init_tfm() local
305 skcipher = crypto_spawn_skcipher(&ictx->u.skcipher_spawn); in essiv_skcipher_init_tfm()
312 err = essiv_init_tfm(ictx, tctx); in essiv_skcipher_init_tfm()
325 struct essiv_instance_ctx *ictx = aead_instance_ctx(inst); in essiv_aead_init_tfm() local
334 aead = crypto_spawn_aead(&ictx->u.aead_spawn); in essiv_aead_init_tfm()
345 err = essiv_init_tfm(ictx, tctx); in essiv_aead_init_tfm()
375 struct essiv_instance_ctx *ictx = skcipher_instance_ctx(inst); in essiv_skcipher_free_instance() local
[all …]
Dhctr2.c338 struct hctr2_instance_ctx *ictx = skcipher_instance_ctx(inst); in hctr2_init_tfm() local
346 xctr = crypto_spawn_skcipher(&ictx->xctr_spawn); in hctr2_init_tfm()
350 blockcipher = crypto_spawn_cipher(&ictx->blockcipher_spawn); in hctr2_init_tfm()
356 polyval = crypto_spawn_shash(&ictx->polyval_spawn); in hctr2_init_tfm()
397 struct hctr2_instance_ctx *ictx = skcipher_instance_ctx(inst); in hctr2_free_instance() local
399 crypto_drop_cipher(&ictx->blockcipher_spawn); in hctr2_free_instance()
400 crypto_drop_skcipher(&ictx->xctr_spawn); in hctr2_free_instance()
401 crypto_drop_shash(&ictx->polyval_spawn); in hctr2_free_instance()
412 struct hctr2_instance_ctx *ictx; in hctr2_create_common() local
424 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in hctr2_create_common()
[all …]
Dadiantum.c400 struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); in adiantum_init_tfm() local
408 streamcipher = crypto_spawn_skcipher(&ictx->streamcipher_spawn); in adiantum_init_tfm()
412 blockcipher = crypto_spawn_cipher(&ictx->blockcipher_spawn); in adiantum_init_tfm()
418 hash = crypto_spawn_shash(&ictx->hash_spawn); in adiantum_init_tfm()
460 struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); in adiantum_free_instance() local
462 crypto_drop_skcipher(&ictx->streamcipher_spawn); in adiantum_free_instance()
463 crypto_drop_cipher(&ictx->blockcipher_spawn); in adiantum_free_instance()
464 crypto_drop_shash(&ictx->hash_spawn); in adiantum_free_instance()
497 struct adiantum_instance_ctx *ictx; in adiantum_create() local
507 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in adiantum_create()
[all …]
Dauthenc.c117 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in authenc_geniv_ahash_done() local
119 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_done()
137 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_genicv() local
140 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv()
197 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_encrypt() local
202 ictx->reqoff); in crypto_authenc_encrypt()
235 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_decrypt_tail() local
237 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_decrypt_tail()
239 ictx->reqoff); in crypto_authenc_decrypt_tail()
284 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_decrypt() local
[all …]
Dpcrypt.c101 struct pcrypt_instance_ctx *ictx; in pcrypt_aead_encrypt() local
103 ictx = pcrypt_tfm_ictx(aead); in pcrypt_aead_encrypt()
117 err = padata_do_parallel(ictx->psenc, padata, &ctx->cb_cpu); in pcrypt_aead_encrypt()
150 struct pcrypt_instance_ctx *ictx; in pcrypt_aead_decrypt() local
152 ictx = pcrypt_tfm_ictx(aead); in pcrypt_aead_decrypt()
166 err = padata_do_parallel(ictx->psdec, padata, &ctx->cb_cpu); in pcrypt_aead_decrypt()
179 struct pcrypt_instance_ctx *ictx = aead_instance_ctx(inst); in pcrypt_aead_init_tfm() local
183 cpu_index = (unsigned int)atomic_inc_return(&ictx->tfm_count) % in pcrypt_aead_init_tfm()
190 cipher = crypto_spawn_aead(&ictx->spawn); in pcrypt_aead_init_tfm()
Dccm.c396 struct ccm_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_ccm_init_tfm() local
403 mac = crypto_spawn_ahash(&ictx->mac); in crypto_ccm_init_tfm()
407 ctr = crypto_spawn_skcipher(&ictx->ctr); in crypto_ccm_init_tfm()
453 struct ccm_instance_ctx *ictx; in crypto_ccm_create_common() local
462 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in crypto_ccm_create_common()
465 ictx = aead_instance_ctx(inst); in crypto_ccm_create_common()
467 err = crypto_grab_ahash(&ictx->mac, aead_crypto_instance(inst), in crypto_ccm_create_common()
471 mac = crypto_spawn_ahash_alg(&ictx->mac); in crypto_ccm_create_common()
478 err = crypto_grab_skcipher(&ictx->ctr, aead_crypto_instance(inst), in crypto_ccm_create_common()
482 ctr = crypto_spawn_skcipher_alg(&ictx->ctr); in crypto_ccm_create_common()
Dxts.c298 struct xts_instance_ctx *ictx = skcipher_instance_ctx(inst); in xts_init_tfm() local
303 child = crypto_spawn_skcipher(&ictx->spawn); in xts_init_tfm()
309 tweak = crypto_alloc_cipher(ictx->name, 0, 0); in xts_init_tfm()
333 struct xts_instance_ctx *ictx = skcipher_instance_ctx(inst); in xts_free_instance() local
335 crypto_drop_skcipher(&ictx->spawn); in xts_free_instance()
Drsa-pkcs1pad.c382 struct pkcs1pad_inst_ctx *ictx = akcipher_instance_ctx(inst); in pkcs1pad_sign() local
383 const struct rsa_asn1_template *digest_info = ictx->digest_info; in pkcs1pad_sign()
439 struct pkcs1pad_inst_ctx *ictx = akcipher_instance_ctx(inst); in pkcs1pad_verify_complete() local
440 const struct rsa_asn1_template *digest_info = ictx->digest_info; in pkcs1pad_verify_complete()
568 struct pkcs1pad_inst_ctx *ictx = akcipher_instance_ctx(inst); in pkcs1pad_init_tfm() local
572 child_tfm = crypto_spawn_akcipher(&ictx->spawn); in pkcs1pad_init_tfm()
Dcryptd.c190 struct cryptd_instance_ctx *ictx = crypto_instance_ctx(inst); in cryptd_get_queue() local
191 return ictx->queue; in cryptd_get_queue()
338 struct skcipherd_instance_ctx *ictx = skcipher_instance_ctx(inst); in cryptd_skcipher_init_tfm() local
339 struct crypto_skcipher_spawn *spawn = &ictx->spawn; in cryptd_skcipher_init_tfm()
429 struct hashd_instance_ctx *ictx = crypto_instance_ctx(inst); in cryptd_hash_init_tfm() local
430 struct crypto_shash_spawn *spawn = &ictx->spawn; in cryptd_hash_init_tfm()
792 struct aead_instance_ctx *ictx = aead_instance_ctx(inst); in cryptd_aead_init_tfm() local
793 struct crypto_aead_spawn *spawn = &ictx->aead_spawn; in cryptd_aead_init_tfm()
Dauthencesn.c325 struct authenc_esn_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_esn_init_tfm() local
332 auth = crypto_spawn_ahash(&ictx->auth); in crypto_authenc_esn_init_tfm()
336 enc = crypto_spawn_skcipher(&ictx->enc); in crypto_authenc_esn_init_tfm()
Dchacha20poly1305.c503 struct chachapoly_instance_ctx *ictx = aead_instance_ctx(inst); in chachapoly_init() local
509 poly = crypto_spawn_ahash(&ictx->poly); in chachapoly_init()
513 chacha = crypto_spawn_skcipher(&ictx->chacha); in chachapoly_init()
521 ctx->saltlen = ictx->saltlen; in chachapoly_init()
Dgcm.c524 struct gcm_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_gcm_init_tfm() local
531 ghash = crypto_spawn_ahash(&ictx->ghash); in crypto_gcm_init_tfm()
535 ctr = crypto_spawn_skcipher(&ictx->ctr); in crypto_gcm_init_tfm()
990 struct crypto_rfc4543_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_rfc4543_init_tfm() local
991 struct crypto_aead_spawn *spawn = &ictx->aead; in crypto_rfc4543_init_tfm()