• Home
  • Raw
  • Download

Lines Matching refs:cipher

26 	struct crypto_spawn cipher;  member
30 struct crypto_cipher *cipher; member
81 struct crypto_cipher *tfm = ctx->cipher; in crypto_ccm_setkey()
251 struct crypto_cipher *cipher = ctx->cipher; in crypto_ccm_auth() local
263 crypto_cipher_encrypt_one(cipher, odata, odata); in crypto_ccm_auth()
268 get_data_to_compute(cipher, pctx, req->assoc, req->assoclen); in crypto_ccm_auth()
274 get_data_to_compute(cipher, pctx, plain, cryptlen); in crypto_ccm_auth()
436 struct crypto_cipher *cipher; in crypto_ccm_init_tfm() local
441 cipher = crypto_spawn_cipher(&ictx->cipher); in crypto_ccm_init_tfm()
442 if (IS_ERR(cipher)) in crypto_ccm_init_tfm()
443 return PTR_ERR(cipher); in crypto_ccm_init_tfm()
450 ctx->cipher = cipher; in crypto_ccm_init_tfm()
462 crypto_free_cipher(cipher); in crypto_ccm_init_tfm()
470 crypto_free_cipher(ctx->cipher); in crypto_ccm_exit_tfm()
482 struct crypto_alg *cipher; in crypto_ccm_alloc_common() local
494 cipher = crypto_alg_mod_lookup(cipher_name, CRYPTO_ALG_TYPE_CIPHER, in crypto_ccm_alloc_common()
496 err = PTR_ERR(cipher); in crypto_ccm_alloc_common()
497 if (IS_ERR(cipher)) in crypto_ccm_alloc_common()
501 if (cipher->cra_blocksize != 16) in crypto_ccm_alloc_common()
511 err = crypto_init_spawn(&ictx->cipher, cipher, inst, in crypto_ccm_alloc_common()
537 cipher->cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in crypto_ccm_alloc_common()
544 inst->alg.cra_priority = cipher->cra_priority + ctr->cra_priority; in crypto_ccm_alloc_common()
546 inst->alg.cra_alignmask = cipher->cra_alignmask | ctr->cra_alignmask | in crypto_ccm_alloc_common()
560 crypto_mod_put(cipher); in crypto_ccm_alloc_common()
566 crypto_drop_spawn(&ictx->cipher); in crypto_ccm_alloc_common()
601 crypto_drop_spawn(&ctx->cipher); in crypto_ccm_free()