Lines Matching refs:enc
27 struct crypto_skcipher_spawn enc; member
33 struct crypto_skcipher *enc; member
63 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_setkey() local
77 crypto_skcipher_clear_flags(enc, CRYPTO_TFM_REQ_MASK); in crypto_authenc_esn_setkey()
78 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc_esn) & in crypto_authenc_esn_setkey()
80 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_esn_setkey()
186 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_encrypt() local
205 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_esn_encrypt()
251 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_esn_decrypt_tail()
325 struct crypto_skcipher *enc; in crypto_authenc_esn_init_tfm() local
333 enc = crypto_spawn_skcipher(&ictx->enc); in crypto_authenc_esn_init_tfm()
334 err = PTR_ERR(enc); in crypto_authenc_esn_init_tfm()
335 if (IS_ERR(enc)) in crypto_authenc_esn_init_tfm()
344 ctx->enc = enc; in crypto_authenc_esn_init_tfm()
358 crypto_skcipher_reqsize(enc))); in crypto_authenc_esn_init_tfm()
363 crypto_free_skcipher(enc); in crypto_authenc_esn_init_tfm()
374 crypto_free_skcipher(ctx->enc); in crypto_authenc_esn_exit_tfm()
382 crypto_drop_skcipher(&ctx->enc); in crypto_authenc_esn_free()
395 struct skcipher_alg *enc; in crypto_authenc_esn_create() local
414 err = crypto_grab_skcipher(&ctx->enc, aead_crypto_instance(inst), in crypto_authenc_esn_create()
418 enc = crypto_spawn_skcipher_alg(&ctx->enc); in crypto_authenc_esn_create()
423 enc->base.cra_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_esn_create()
428 enc->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_esn_create()
431 inst->alg.base.cra_priority = enc->base.cra_priority * 10 + in crypto_authenc_esn_create()
433 inst->alg.base.cra_blocksize = enc->base.cra_blocksize; in crypto_authenc_esn_create()
435 enc->base.cra_alignmask; in crypto_authenc_esn_create()
438 inst->alg.ivsize = crypto_skcipher_alg_ivsize(enc); in crypto_authenc_esn_create()
439 inst->alg.chunksize = crypto_skcipher_alg_chunksize(enc); in crypto_authenc_esn_create()