Lines Matching refs:alg
333 struct skcipher_alg *alg; in crypto_cts_create() local
361 alg = crypto_spawn_skcipher_alg(spawn); in crypto_cts_create()
364 if (crypto_skcipher_alg_ivsize(alg) != alg->base.cra_blocksize) in crypto_cts_create()
367 if (strncmp(alg->base.cra_name, "cbc(", 4)) in crypto_cts_create()
371 &alg->base); in crypto_cts_create()
375 inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; in crypto_cts_create()
376 inst->alg.base.cra_priority = alg->base.cra_priority; in crypto_cts_create()
377 inst->alg.base.cra_blocksize = alg->base.cra_blocksize; in crypto_cts_create()
378 inst->alg.base.cra_alignmask = alg->base.cra_alignmask; in crypto_cts_create()
380 inst->alg.ivsize = alg->base.cra_blocksize; in crypto_cts_create()
381 inst->alg.chunksize = crypto_skcipher_alg_chunksize(alg); in crypto_cts_create()
382 inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(alg); in crypto_cts_create()
383 inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(alg); in crypto_cts_create()
385 inst->alg.base.cra_ctxsize = sizeof(struct crypto_cts_ctx); in crypto_cts_create()
387 inst->alg.init = crypto_cts_init_tfm; in crypto_cts_create()
388 inst->alg.exit = crypto_cts_exit_tfm; in crypto_cts_create()
390 inst->alg.setkey = crypto_cts_setkey; in crypto_cts_create()
391 inst->alg.encrypt = crypto_cts_encrypt; in crypto_cts_create()
392 inst->alg.decrypt = crypto_cts_decrypt; in crypto_cts_create()