• Home
  • Raw
  • Download

Lines Matching refs:enc

24 	struct crypto_skcipher_spawn enc;  member
30 struct crypto_skcipher *enc; member
89 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_setkey() local
103 crypto_skcipher_clear_flags(enc, CRYPTO_TFM_REQ_MASK); in crypto_authenc_setkey()
104 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
106 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_setkey()
199 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_encrypt() local
217 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_encrypt()
255 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_decrypt_tail()
313 struct crypto_skcipher *enc; in crypto_authenc_init_tfm() local
321 enc = crypto_spawn_skcipher(&ictx->enc); in crypto_authenc_init_tfm()
322 err = PTR_ERR(enc); in crypto_authenc_init_tfm()
323 if (IS_ERR(enc)) in crypto_authenc_init_tfm()
332 ctx->enc = enc; in crypto_authenc_init_tfm()
343 crypto_skcipher_reqsize(enc))); in crypto_authenc_init_tfm()
348 crypto_free_skcipher(enc); in crypto_authenc_init_tfm()
359 crypto_free_skcipher(ctx->enc); in crypto_authenc_exit_tfm()
367 crypto_drop_skcipher(&ctx->enc); in crypto_authenc_free()
380 struct skcipher_alg *enc; in crypto_authenc_create() local
399 err = crypto_grab_skcipher(&ctx->enc, aead_crypto_instance(inst), in crypto_authenc_create()
403 enc = crypto_spawn_skcipher_alg(&ctx->enc); in crypto_authenc_create()
411 enc->base.cra_name) >= in crypto_authenc_create()
417 enc->base.cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_authenc_create()
420 inst->alg.base.cra_priority = enc->base.cra_priority * 10 + in crypto_authenc_create()
422 inst->alg.base.cra_blocksize = enc->base.cra_blocksize; in crypto_authenc_create()
424 enc->base.cra_alignmask; in crypto_authenc_create()
427 inst->alg.ivsize = crypto_skcipher_alg_ivsize(enc); in crypto_authenc_create()
428 inst->alg.chunksize = crypto_skcipher_alg_chunksize(enc); in crypto_authenc_create()