Lines Matching refs:ctr
27 struct crypto_skcipher_spawn ctr; member
32 struct crypto_ablkcipher *ctr; member
117 struct crypto_ablkcipher *ctr = ctx->ctr; in crypto_gcm_setkey() local
129 crypto_ablkcipher_clear_flags(ctr, CRYPTO_TFM_REQ_MASK); in crypto_gcm_setkey()
130 crypto_ablkcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_gcm_setkey()
132 err = crypto_ablkcipher_setkey(ctr, key, keylen); in crypto_gcm_setkey()
133 crypto_aead_set_flags(aead, crypto_ablkcipher_get_flags(ctr) & in crypto_gcm_setkey()
138 data = kzalloc(sizeof(*data) + crypto_ablkcipher_reqsize(ctr), in crypto_gcm_setkey()
145 ablkcipher_request_set_tfm(&data->req, ctr); in crypto_gcm_setkey()
231 ablkcipher_request_set_tfm(ablk_req, ctx->ctr); in crypto_gcm_init_crypt()
569 struct crypto_ablkcipher *ctr; in crypto_gcm_init_tfm() local
578 ctr = crypto_spawn_skcipher(&ictx->ctr); in crypto_gcm_init_tfm()
579 err = PTR_ERR(ctr); in crypto_gcm_init_tfm()
580 if (IS_ERR(ctr)) in crypto_gcm_init_tfm()
583 ctx->ctr = ctr; in crypto_gcm_init_tfm()
591 crypto_ablkcipher_reqsize(ctr), in crypto_gcm_init_tfm()
607 crypto_free_ablkcipher(ctx->ctr); in crypto_gcm_exit_tfm()
614 crypto_drop_skcipher(&ctx->ctr); in crypto_gcm_free()
627 struct crypto_alg *ctr; in crypto_gcm_create_common() local
663 crypto_set_skcipher_spawn(&ctx->ctr, aead_crypto_instance(inst)); in crypto_gcm_create_common()
664 err = crypto_grab_skcipher(&ctx->ctr, ctr_name, 0, in crypto_gcm_create_common()
670 ctr = crypto_skcipher_spawn_alg(&ctx->ctr); in crypto_gcm_create_common()
673 if (ctr->cra_ablkcipher.ivsize != 16) in crypto_gcm_create_common()
678 if (ctr->cra_blocksize != 1) in crypto_gcm_create_common()
683 "gcm_base(%s,%s)", ctr->cra_driver_name, in crypto_gcm_create_common()
690 inst->alg.base.cra_flags = (ghash->base.cra_flags | ctr->cra_flags) & in crypto_gcm_create_common()
693 ctr->cra_priority) / 2; in crypto_gcm_create_common()
696 ctr->cra_alignmask; in crypto_gcm_create_common()
718 crypto_drop_skcipher(&ctx->ctr); in crypto_gcm_create_common()