Lines Matching refs:skcipher

164 	struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req);  in crypto_lskcipher_crypt_sg()  local
165 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher); in crypto_lskcipher_crypt_sg()
174 ivs = PTR_ALIGN(ivs, crypto_skcipher_alignmask(skcipher) + 1); in crypto_lskcipher_crypt_sg()
203 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_lskcipher_encrypt_sg() local
204 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher); in crypto_lskcipher_encrypt_sg()
212 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_lskcipher_decrypt_sg() local
213 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher); in crypto_lskcipher_decrypt_sg()
221 struct crypto_lskcipher *skcipher = __crypto_lskcipher_cast(tfm); in crypto_lskcipher_exit_tfm() local
222 struct lskcipher_alg *alg = crypto_lskcipher_alg(skcipher); in crypto_lskcipher_exit_tfm()
224 alg->exit(skcipher); in crypto_lskcipher_exit_tfm()
229 struct crypto_lskcipher *skcipher = __crypto_lskcipher_cast(tfm); in crypto_lskcipher_init_tfm() local
230 struct lskcipher_alg *alg = crypto_lskcipher_alg(skcipher); in crypto_lskcipher_init_tfm()
233 skcipher->base.exit = crypto_lskcipher_exit_tfm; in crypto_lskcipher_init_tfm()
236 return alg->init(skcipher); in crypto_lskcipher_init_tfm()
243 struct lskcipher_instance *skcipher = in crypto_lskcipher_free_instance() local
246 skcipher->free(skcipher); in crypto_lskcipher_free_instance()
252 struct lskcipher_alg *skcipher = __crypto_lskcipher_alg(alg); in crypto_lskcipher_show() local
256 seq_printf(m, "min keysize : %u\n", skcipher->co.min_keysize); in crypto_lskcipher_show()
257 seq_printf(m, "max keysize : %u\n", skcipher->co.max_keysize); in crypto_lskcipher_show()
258 seq_printf(m, "ivsize : %u\n", skcipher->co.ivsize); in crypto_lskcipher_show()
259 seq_printf(m, "chunksize : %u\n", skcipher->co.chunksize); in crypto_lskcipher_show()
260 seq_printf(m, "statesize : %u\n", skcipher->co.statesize); in crypto_lskcipher_show()
266 struct lskcipher_alg *skcipher = __crypto_lskcipher_alg(alg); in crypto_lskcipher_report() local
275 rblkcipher.min_keysize = skcipher->co.min_keysize; in crypto_lskcipher_report()
276 rblkcipher.max_keysize = skcipher->co.max_keysize; in crypto_lskcipher_report()
277 rblkcipher.ivsize = skcipher->co.ivsize; in crypto_lskcipher_report()
311 struct crypto_lskcipher *skcipher; in crypto_init_lskcipher_ops_sg() local
316 skcipher = crypto_create_tfm(calg, &crypto_lskcipher_type); in crypto_init_lskcipher_ops_sg()
317 if (IS_ERR(skcipher)) { in crypto_init_lskcipher_ops_sg()
319 return PTR_ERR(skcipher); in crypto_init_lskcipher_ops_sg()
322 *ctx = skcipher; in crypto_init_lskcipher_ops_sg()