Lines Matching refs:enc

29 	struct crypto_skcipher_spawn enc;  member
35 struct crypto_ablkcipher *enc; member
86 struct crypto_ablkcipher *enc = ctx->enc; in crypto_authenc_setkey() local
103 crypto_ablkcipher_clear_flags(enc, CRYPTO_TFM_REQ_MASK); in crypto_authenc_setkey()
104 crypto_ablkcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
106 err = crypto_ablkcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_setkey()
107 crypto_aead_set_flags(authenc, crypto_ablkcipher_get_flags(enc) & in crypto_authenc_setkey()
202 struct crypto_ablkcipher *enc = ctx->enc; in crypto_authenc_encrypt() local
222 ablkcipher_request_set_tfm(abreq, enc); in crypto_authenc_encrypt()
263 ablkcipher_request_set_tfm(abreq, ctx->enc); in crypto_authenc_decrypt_tail()
321 struct crypto_ablkcipher *enc; in crypto_authenc_init_tfm() local
329 enc = crypto_spawn_skcipher(&ictx->enc); in crypto_authenc_init_tfm()
330 err = PTR_ERR(enc); in crypto_authenc_init_tfm()
331 if (IS_ERR(enc)) in crypto_authenc_init_tfm()
340 ctx->enc = enc; in crypto_authenc_init_tfm()
351 crypto_ablkcipher_reqsize(enc))); in crypto_authenc_init_tfm()
356 crypto_free_ablkcipher(enc); in crypto_authenc_init_tfm()
367 crypto_free_ablkcipher(ctx->enc); in crypto_authenc_exit_tfm()
375 crypto_drop_skcipher(&ctx->enc); in crypto_authenc_free()
387 struct crypto_alg *enc; in crypto_authenc_create() local
423 crypto_set_skcipher_spawn(&ctx->enc, aead_crypto_instance(inst)); in crypto_authenc_create()
424 err = crypto_grab_skcipher(&ctx->enc, enc_name, 0, in crypto_authenc_create()
430 enc = crypto_skcipher_spawn_alg(&ctx->enc); in crypto_authenc_create()
437 "authenc(%s,%s)", auth_base->cra_name, enc->cra_name) >= in crypto_authenc_create()
443 enc->cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_create()
446 inst->alg.base.cra_flags = enc->cra_flags & CRYPTO_ALG_ASYNC; in crypto_authenc_create()
447 inst->alg.base.cra_priority = enc->cra_priority * 10 + in crypto_authenc_create()
449 inst->alg.base.cra_blocksize = enc->cra_blocksize; in crypto_authenc_create()
451 enc->cra_alignmask; in crypto_authenc_create()
454 inst->alg.ivsize = enc->cra_ablkcipher.ivsize; in crypto_authenc_create()
475 crypto_drop_skcipher(&ctx->enc); in crypto_authenc_create()