Lines Matching defs:cipher
26 struct crypto_spawn cipher;
30 struct crypto_cipher *cipher;
81 struct crypto_cipher *tfm = ctx->cipher;
251 struct crypto_cipher *cipher = ctx->cipher;
263 crypto_cipher_encrypt_one(cipher, odata, odata);
268 get_data_to_compute(cipher, pctx, req->assoc, req->assoclen);
274 get_data_to_compute(cipher, pctx, plain, cryptlen);
436 struct crypto_cipher *cipher;
441 cipher = crypto_spawn_cipher(&ictx->cipher);
442 if (IS_ERR(cipher))
443 return PTR_ERR(cipher);
450 ctx->cipher = cipher;
462 crypto_free_cipher(cipher);
470 crypto_free_cipher(ctx->cipher);
482 struct crypto_alg *cipher;
494 cipher = crypto_alg_mod_lookup(cipher_name, CRYPTO_ALG_TYPE_CIPHER,
496 err = PTR_ERR(cipher);
497 if (IS_ERR(cipher))
501 if (cipher->cra_blocksize != 16)
511 err = crypto_init_spawn(&ictx->cipher, cipher, inst,
525 /* Not a stream cipher? */
537 cipher->cra_driver_name) >= CRYPTO_MAX_ALG_NAME)
544 inst->alg.cra_priority = cipher->cra_priority + ctr->cra_priority;
546 inst->alg.cra_alignmask = cipher->cra_alignmask | ctr->cra_alignmask |
560 crypto_mod_put(cipher);
566 crypto_drop_spawn(&ictx->cipher);
601 crypto_drop_spawn(&ctx->cipher);
794 /* Not a stream cipher? */