Lines Matching refs:enc
30 struct crypto_skcipher_spawn enc; member
36 struct crypto_ablkcipher *enc; member
64 struct crypto_ablkcipher *enc = ctx->enc; in crypto_authenc_esn_setkey() local
81 crypto_ablkcipher_clear_flags(enc, CRYPTO_TFM_REQ_MASK); in crypto_authenc_esn_setkey()
82 crypto_ablkcipher_set_flags(enc, crypto_aead_get_flags(authenc_esn) & in crypto_authenc_esn_setkey()
84 err = crypto_ablkcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_esn_setkey()
85 crypto_aead_set_flags(authenc_esn, crypto_ablkcipher_get_flags(enc) & in crypto_authenc_esn_setkey()
237 ablkcipher_request_set_tfm(abreq, ctx->enc); in authenc_esn_verify_ahash_update_done()
286 ablkcipher_request_set_tfm(abreq, ctx->enc); in authenc_esn_verify_ahash_update_done2()
326 ablkcipher_request_set_tfm(abreq, ctx->enc); in authenc_esn_verify_ahash_done()
462 crypto_ablkcipher_reqsize(ctx->enc); in crypto_authenc_esn_encrypt_done()
475 struct crypto_ablkcipher *enc = ctx->enc; in crypto_authenc_esn_encrypt() local
480 u8 *iv = (u8 *)abreq - crypto_ablkcipher_ivsize(enc); in crypto_authenc_esn_encrypt()
483 ablkcipher_request_set_tfm(abreq, enc); in crypto_authenc_esn_encrypt()
520 skcipher_givcrypt_set_tfm(greq, ctx->enc); in crypto_authenc_esn_givencrypt()
631 ablkcipher_request_set_tfm(abreq, ctx->enc); in crypto_authenc_esn_decrypt()
645 struct crypto_ablkcipher *enc; in crypto_authenc_esn_init_tfm() local
652 enc = crypto_spawn_skcipher(&ictx->enc); in crypto_authenc_esn_init_tfm()
653 err = PTR_ERR(enc); in crypto_authenc_esn_init_tfm()
654 if (IS_ERR(enc)) in crypto_authenc_esn_init_tfm()
658 ctx->enc = enc; in crypto_authenc_esn_init_tfm()
663 crypto_ablkcipher_ivsize(enc); in crypto_authenc_esn_init_tfm()
671 crypto_ablkcipher_reqsize(enc)); in crypto_authenc_esn_init_tfm()
685 crypto_free_ablkcipher(ctx->enc); in crypto_authenc_esn_exit_tfm()
694 struct crypto_alg *enc; in crypto_authenc_esn_alloc() local
729 crypto_set_skcipher_spawn(&ctx->enc, inst); in crypto_authenc_esn_alloc()
730 err = crypto_grab_skcipher(&ctx->enc, enc_name, 0, in crypto_authenc_esn_alloc()
736 enc = crypto_skcipher_spawn_alg(&ctx->enc); in crypto_authenc_esn_alloc()
740 "authencesn(%s,%s)", auth_base->cra_name, enc->cra_name) >= in crypto_authenc_esn_alloc()
746 enc->cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_esn_alloc()
750 inst->alg.cra_flags |= enc->cra_flags & CRYPTO_ALG_ASYNC; in crypto_authenc_esn_alloc()
751 inst->alg.cra_priority = enc->cra_priority * in crypto_authenc_esn_alloc()
753 inst->alg.cra_blocksize = enc->cra_blocksize; in crypto_authenc_esn_alloc()
754 inst->alg.cra_alignmask = auth_base->cra_alignmask | enc->cra_alignmask; in crypto_authenc_esn_alloc()
757 inst->alg.cra_aead.ivsize = enc->cra_ablkcipher.ivsize; in crypto_authenc_esn_alloc()
775 crypto_drop_skcipher(&ctx->enc); in crypto_authenc_esn_alloc()
789 crypto_drop_skcipher(&ctx->enc); in crypto_authenc_esn_free()