Lines Matching refs:enc
32 struct crypto_skcipher_spawn enc; member
38 struct crypto_skcipher *enc; member
68 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_setkey() local
85 crypto_skcipher_clear_flags(enc, CRYPTO_TFM_REQ_MASK); in crypto_authenc_esn_setkey()
86 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc_esn) & in crypto_authenc_esn_setkey()
88 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_esn_setkey()
89 crypto_aead_set_flags(authenc_esn, crypto_skcipher_get_flags(enc) & in crypto_authenc_esn_setkey()
203 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_encrypt() local
222 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_esn_encrypt()
268 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_esn_decrypt_tail()
343 struct crypto_skcipher *enc; in crypto_authenc_esn_init_tfm() local
351 enc = crypto_spawn_skcipher(&ictx->enc); in crypto_authenc_esn_init_tfm()
352 err = PTR_ERR(enc); in crypto_authenc_esn_init_tfm()
353 if (IS_ERR(enc)) in crypto_authenc_esn_init_tfm()
362 ctx->enc = enc; in crypto_authenc_esn_init_tfm()
376 crypto_skcipher_reqsize(enc))); in crypto_authenc_esn_init_tfm()
381 crypto_free_skcipher(enc); in crypto_authenc_esn_init_tfm()
392 crypto_free_skcipher(ctx->enc); in crypto_authenc_esn_exit_tfm()
400 crypto_drop_skcipher(&ctx->enc); in crypto_authenc_esn_free()
412 struct skcipher_alg *enc; in crypto_authenc_esn_create() local
449 crypto_set_skcipher_spawn(&ctx->enc, aead_crypto_instance(inst)); in crypto_authenc_esn_create()
450 err = crypto_grab_skcipher(&ctx->enc, enc_name, 0, in crypto_authenc_esn_create()
456 enc = crypto_spawn_skcipher_alg(&ctx->enc); in crypto_authenc_esn_create()
461 enc->base.cra_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_esn_create()
466 enc->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_esn_create()
470 enc->base.cra_flags) & CRYPTO_ALG_ASYNC; in crypto_authenc_esn_create()
471 inst->alg.base.cra_priority = enc->base.cra_priority * 10 + in crypto_authenc_esn_create()
473 inst->alg.base.cra_blocksize = enc->base.cra_blocksize; in crypto_authenc_esn_create()
475 enc->base.cra_alignmask; in crypto_authenc_esn_create()
478 inst->alg.ivsize = crypto_skcipher_alg_ivsize(enc); in crypto_authenc_esn_create()
479 inst->alg.chunksize = crypto_skcipher_alg_chunksize(enc); in crypto_authenc_esn_create()
501 crypto_drop_skcipher(&ctx->enc); in crypto_authenc_esn_create()