Lines Matching refs:alg
303 struct skcipher_alg *alg; in create() local
343 alg = crypto_skcipher_spawn_alg(spawn); in create()
346 if (alg->base.cra_blocksize != LRW_BLOCK_SIZE) in create()
349 if (crypto_skcipher_alg_ivsize(alg)) in create()
353 &alg->base); in create()
358 cipher_name = alg->base.cra_name; in create()
375 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in create()
383 inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; in create()
384 inst->alg.base.cra_priority = alg->base.cra_priority; in create()
385 inst->alg.base.cra_blocksize = LRW_BLOCK_SIZE; in create()
386 inst->alg.base.cra_alignmask = alg->base.cra_alignmask | in create()
389 inst->alg.ivsize = LRW_BLOCK_SIZE; in create()
390 inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(alg) + in create()
392 inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(alg) + in create()
395 inst->alg.base.cra_ctxsize = sizeof(struct priv); in create()
397 inst->alg.init = init_tfm; in create()
398 inst->alg.exit = exit_tfm; in create()
400 inst->alg.setkey = setkey; in create()
401 inst->alg.encrypt = encrypt; in create()
402 inst->alg.decrypt = decrypt; in create()