Lines Matching refs:enc

23 	struct crypto_skcipher_spawn enc;  member
29 struct crypto_skcipher *enc; member
87 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_setkey() local
101 crypto_skcipher_clear_flags(enc, CRYPTO_TFM_REQ_MASK); in crypto_authenc_setkey()
102 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
104 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_setkey()
178 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_encrypt() local
193 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_encrypt()
231 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_decrypt_tail()
285 struct crypto_skcipher *enc; in crypto_authenc_init_tfm() local
292 enc = crypto_spawn_skcipher(&ictx->enc); in crypto_authenc_init_tfm()
293 err = PTR_ERR(enc); in crypto_authenc_init_tfm()
294 if (IS_ERR(enc)) in crypto_authenc_init_tfm()
298 ctx->enc = enc; in crypto_authenc_init_tfm()
308 crypto_skcipher_reqsize(enc))); in crypto_authenc_init_tfm()
322 crypto_free_skcipher(ctx->enc); in crypto_authenc_exit_tfm()
329 crypto_drop_skcipher(&ctx->enc); in crypto_authenc_free()
340 struct skcipher_alg_common *enc; in crypto_authenc_create() local
361 err = crypto_grab_skcipher(&ctx->enc, aead_crypto_instance(inst), in crypto_authenc_create()
365 enc = crypto_spawn_skcipher_alg_common(&ctx->enc); in crypto_authenc_create()
372 enc->base.cra_name) >= in crypto_authenc_create()
378 enc->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_create()
381 inst->alg.base.cra_priority = enc->base.cra_priority * 10 + in crypto_authenc_create()
383 inst->alg.base.cra_blocksize = enc->base.cra_blocksize; in crypto_authenc_create()
384 inst->alg.base.cra_alignmask = enc->base.cra_alignmask; in crypto_authenc_create()
387 inst->alg.ivsize = enc->ivsize; in crypto_authenc_create()
388 inst->alg.chunksize = enc->chunksize; in crypto_authenc_create()