Lines Matching refs:cipher_alg
102 struct crypto_alg *cipher_alg; in lskcipher_alloc_instance_simple2() local
119 cipher_alg = crypto_spawn_cipher_alg(spawn); in lskcipher_alloc_instance_simple2()
122 cipher_alg); in lskcipher_alloc_instance_simple2()
129 inst->alg.co.base.cra_blocksize = cipher_alg->cra_blocksize; in lskcipher_alloc_instance_simple2()
130 inst->alg.co.base.cra_alignmask = cipher_alg->cra_alignmask; in lskcipher_alloc_instance_simple2()
131 inst->alg.co.base.cra_priority = cipher_alg->cra_priority; in lskcipher_alloc_instance_simple2()
132 inst->alg.co.min_keysize = cipher_alg->cra_cipher.cia_min_keysize; in lskcipher_alloc_instance_simple2()
133 inst->alg.co.max_keysize = cipher_alg->cra_cipher.cia_max_keysize; in lskcipher_alloc_instance_simple2()
134 inst->alg.co.ivsize = cipher_alg->cra_blocksize; in lskcipher_alloc_instance_simple2()
174 struct lskcipher_alg *cipher_alg; in crypto_ecb_create() local
185 cipher_alg = crypto_lskcipher_spawn_alg(spawn); in crypto_ecb_create()
189 if (cipher_alg->co.ivsize) in crypto_ecb_create()
192 inst->alg.co.base.cra_ctxsize = cipher_alg->co.base.cra_ctxsize; in crypto_ecb_create()
193 inst->alg.setkey = cipher_alg->setkey; in crypto_ecb_create()
194 inst->alg.encrypt = cipher_alg->encrypt; in crypto_ecb_create()
195 inst->alg.decrypt = cipher_alg->decrypt; in crypto_ecb_create()
196 inst->alg.init = cipher_alg->init; in crypto_ecb_create()
197 inst->alg.exit = cipher_alg->exit; in crypto_ecb_create()