Lines Matching refs:enc

32 	struct crypto_skcipher_spawn enc;  member
38 struct crypto_ablkcipher *enc; member
68 struct crypto_ablkcipher *enc = ctx->enc; in crypto_authenc_esn_setkey() local
85 crypto_ablkcipher_clear_flags(enc, CRYPTO_TFM_REQ_MASK); in crypto_authenc_esn_setkey()
86 crypto_ablkcipher_set_flags(enc, crypto_aead_get_flags(authenc_esn) & in crypto_authenc_esn_setkey()
88 err = crypto_ablkcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_esn_setkey()
89 crypto_aead_set_flags(authenc_esn, crypto_ablkcipher_get_flags(enc) & in crypto_authenc_esn_setkey()
199 struct crypto_ablkcipher *enc = ctx->enc; in crypto_authenc_esn_encrypt() local
218 ablkcipher_request_set_tfm(abreq, enc); in crypto_authenc_esn_encrypt()
259 ablkcipher_request_set_tfm(abreq, ctx->enc); in crypto_authenc_esn_decrypt_tail()
334 struct crypto_ablkcipher *enc; in crypto_authenc_esn_init_tfm() local
342 enc = crypto_spawn_skcipher(&ictx->enc); in crypto_authenc_esn_init_tfm()
343 err = PTR_ERR(enc); in crypto_authenc_esn_init_tfm()
344 if (IS_ERR(enc)) in crypto_authenc_esn_init_tfm()
353 ctx->enc = enc; in crypto_authenc_esn_init_tfm()
367 crypto_ablkcipher_reqsize(enc))); in crypto_authenc_esn_init_tfm()
372 crypto_free_ablkcipher(enc); in crypto_authenc_esn_init_tfm()
383 crypto_free_ablkcipher(ctx->enc); in crypto_authenc_esn_exit_tfm()
391 crypto_drop_skcipher(&ctx->enc); in crypto_authenc_esn_free()
403 struct crypto_alg *enc; in crypto_authenc_esn_create() local
439 crypto_set_skcipher_spawn(&ctx->enc, aead_crypto_instance(inst)); in crypto_authenc_esn_create()
440 err = crypto_grab_skcipher(&ctx->enc, enc_name, 0, in crypto_authenc_esn_create()
446 enc = crypto_skcipher_spawn_alg(&ctx->enc); in crypto_authenc_esn_create()
451 enc->cra_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_esn_create()
456 enc->cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_esn_create()
459 inst->alg.base.cra_flags = enc->cra_flags & CRYPTO_ALG_ASYNC; in crypto_authenc_esn_create()
460 inst->alg.base.cra_priority = enc->cra_priority * 10 + in crypto_authenc_esn_create()
462 inst->alg.base.cra_blocksize = enc->cra_blocksize; in crypto_authenc_esn_create()
464 enc->cra_alignmask; in crypto_authenc_esn_create()
467 inst->alg.ivsize = enc->cra_ablkcipher.ivsize; in crypto_authenc_esn_create()
489 crypto_drop_skcipher(&ctx->enc); in crypto_authenc_esn_create()