Lines Matching refs:ctr

20 	struct crypto_skcipher_spawn ctr;  member
26 struct crypto_skcipher *ctr; member
91 struct crypto_skcipher *ctr = ctx->ctr; in crypto_ccm_setkey() local
95 crypto_skcipher_clear_flags(ctr, CRYPTO_TFM_REQ_MASK); in crypto_ccm_setkey()
96 crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
98 err = crypto_skcipher_setkey(ctr, key, keylen); in crypto_ccm_setkey()
309 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_encrypt()
373 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_decrypt()
398 struct crypto_skcipher *ctr; in crypto_ccm_init_tfm() local
406 ctr = crypto_spawn_skcipher(&ictx->ctr); in crypto_ccm_init_tfm()
407 err = PTR_ERR(ctr); in crypto_ccm_init_tfm()
408 if (IS_ERR(ctr)) in crypto_ccm_init_tfm()
412 ctx->ctr = ctr; in crypto_ccm_init_tfm()
419 max(crypto_ahash_reqsize(mac), crypto_skcipher_reqsize(ctr))); in crypto_ccm_init_tfm()
433 crypto_free_skcipher(ctx->ctr); in crypto_ccm_exit_tfm()
441 crypto_drop_skcipher(&ctx->ctr); in crypto_ccm_free()
453 struct skcipher_alg *ctr; in crypto_ccm_create_common() local
477 err = crypto_grab_skcipher(&ictx->ctr, aead_crypto_instance(inst), in crypto_ccm_create_common()
481 ctr = crypto_spawn_skcipher_alg(&ictx->ctr); in crypto_ccm_create_common()
485 if (strncmp(ctr->base.cra_name, "ctr(", 4) != 0 || in crypto_ccm_create_common()
486 crypto_skcipher_alg_ivsize(ctr) != 16 || in crypto_ccm_create_common()
487 ctr->base.cra_blocksize != 1) in crypto_ccm_create_common()
491 if (strcmp(ctr->base.cra_name + 4, mac->base.cra_name + 7) != 0) in crypto_ccm_create_common()
496 "ccm(%s", ctr->base.cra_name + 4) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_create_common()
500 "ccm_base(%s,%s)", ctr->base.cra_driver_name, in crypto_ccm_create_common()
505 ctr->base.cra_priority) / 2; in crypto_ccm_create_common()
508 ctr->base.cra_alignmask; in crypto_ccm_create_common()
510 inst->alg.chunksize = crypto_skcipher_alg_chunksize(ctr); in crypto_ccm_create_common()