Home
last modified time | relevance | path

Searched refs:skcipher (Results 1 – 25 of 63) sorted by relevance

123

/linux-6.15/crypto/
H A Dlskcipher.c224 alg->exit(skcipher); in crypto_lskcipher_exit_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()
275 rblkcipher.min_keysize = skcipher->co.min_keysize; in crypto_lskcipher_report()
277 rblkcipher.ivsize = skcipher->co.ivsize; in crypto_lskcipher_report()
310 struct crypto_lskcipher *skcipher; in crypto_init_lskcipher_ops_sg() local
316 if (IS_ERR(skcipher)) { in crypto_init_lskcipher_ops_sg()
318 return PTR_ERR(skcipher); in crypto_init_lskcipher_ops_sg()
[all …]
H A Dskcipher.c524 alg->exit(skcipher); in crypto_skcipher_exit_tfm()
532 skcipher_set_needkey(skcipher); in crypto_skcipher_init_tfm()
539 reqsize += crypto_skcipher_ivsize(skcipher); in crypto_skcipher_init_tfm()
540 reqsize += crypto_skcipher_statesize(skcipher); in crypto_skcipher_init_tfm()
541 crypto_skcipher_set_reqsize(skcipher, reqsize); in crypto_skcipher_init_tfm()
550 return alg->init(skcipher); in crypto_skcipher_init_tfm()
565 struct skcipher_instance *skcipher = in crypto_skcipher_free_instance() local
568 skcipher->free(skcipher); in crypto_skcipher_free_instance()
601 rblkcipher.min_keysize = skcipher->min_keysize; in crypto_skcipher_report()
602 rblkcipher.max_keysize = skcipher->max_keysize; in crypto_skcipher_report()
[all …]
H A Dessiv.c52 struct crypto_skcipher *skcipher; member
74 crypto_skcipher_set_flags(tctx->u.skcipher, in essiv_skcipher_setkey()
77 err = crypto_skcipher_setkey(tctx->u.skcipher, key, keylen); in essiv_skcipher_setkey()
149 skcipher_request_set_tfm(subreq, tctx->u.skcipher); in essiv_skcipher_crypt()
302 struct crypto_skcipher *skcipher; in essiv_skcipher_init_tfm() local
306 if (IS_ERR(skcipher)) in essiv_skcipher_init_tfm()
307 return PTR_ERR(skcipher); in essiv_skcipher_init_tfm()
310 crypto_skcipher_reqsize(skcipher)); in essiv_skcipher_init_tfm()
314 crypto_free_skcipher(skcipher); in essiv_skcipher_init_tfm()
318 tctx->u.skcipher = skcipher; in essiv_skcipher_init_tfm()
[all …]
/linux-6.15/drivers/crypto/inside-secure/eip93/
H A Deip93-cipher.c54 struct eip93_alg_template, alg.skcipher.base); in eip93_skcipher_cra_init()
87 alg.skcipher.base); in eip93_skcipher_setkey()
153 crypto_skcipher_blocksize(skcipher))) in eip93_skcipher_crypt()
206 .alg.skcipher = {
233 .alg.skcipher = {
260 .alg.skcipher = {
287 .alg.skcipher = {
314 .alg.skcipher = {
340 .alg.skcipher = {
366 .alg.skcipher = {
[all …]
H A Deip93-main.c87 crypto_unregister_skcipher(&eip93_algs[j]->alg.skcipher); in eip93_unregister_algs()
119 eip93_algs[i]->alg.skcipher.max_keysize = in eip93_register_algs()
123 eip93_algs[i]->alg.skcipher.max_keysize = in eip93_register_algs()
127 eip93_algs[i]->alg.skcipher.max_keysize = in eip93_register_algs()
131 eip93_algs[i]->alg.skcipher.max_keysize += in eip93_register_algs()
154 ret = crypto_register_skcipher(&eip93_algs[i]->alg.skcipher); in eip93_register_algs()
/linux-6.15/drivers/crypto/aspeed/
H A Daspeed-hace-crypto.c673 .alg.skcipher.base = {
694 .alg.skcipher.op = {
699 .alg.skcipher.base = {
721 .alg.skcipher.op = {
747 .alg.skcipher.op = {
774 .alg.skcipher.op = {
800 .alg.skcipher.op = {
827 .alg.skcipher.op = {
856 .alg.skcipher.op = {
882 .alg.skcipher.op = {
[all …]
/linux-6.15/tools/testing/crypto/chacha20-s390/
H A Dtest-cipher.c129 struct crypto_skcipher *skcipher = NULL; in test_skcipher() local
135 skcipher = crypto_alloc_skcipher(name, 0, 0); in test_skcipher()
136 if (IS_ERR(skcipher)) { in test_skcipher()
138 return PTR_ERR(skcipher); in test_skcipher()
141 req = skcipher_request_alloc(skcipher, GFP_KERNEL); in test_skcipher()
155 if (crypto_skcipher_setkey(skcipher, key, 32)) { in test_skcipher()
169 sk.tfm = skcipher; in test_skcipher()
229 if (skcipher) in test_skcipher()
230 crypto_free_skcipher(skcipher); in test_skcipher()
/linux-6.15/drivers/crypto/amlogic/
H A Damlogic-gxl-core.c52 .alg.skcipher.base = {
74 .alg.skcipher.op = {
81 .alg.skcipher.base = {
102 .alg.skcipher.op = {
125 mc_algs[i].alg.skcipher.base.base.cra_driver_name, in meson_debugfs_show()
126 mc_algs[i].alg.skcipher.base.base.cra_name, in meson_debugfs_show()
201 err = crypto_engine_register_skcipher(&mc_algs[i].alg.skcipher); in meson_register_algs()
204 mc_algs[i].alg.skcipher.base.base.cra_name); in meson_register_algs()
224 crypto_engine_unregister_skcipher(&mc_algs[i].alg.skcipher); in meson_unregister_algs()
/linux-6.15/Documentation/crypto/
H A Dapi-skcipher.rst13 .. kernel-doc:: include/crypto/skcipher.h
16 .. kernel-doc:: include/crypto/skcipher.h
22 .. kernel-doc:: include/crypto/skcipher.h
25 .. kernel-doc:: include/crypto/skcipher.h
H A Dapi.rst8 api-skcipher
/linux-6.15/drivers/crypto/rockchip/
H A Drk3288_crypto_skcipher.c464 .alg.skcipher.base = {
482 .alg.skcipher.op = {
489 .alg.skcipher.base = {
508 .alg.skcipher.op = {
515 .alg.skcipher.base = {
533 .alg.skcipher.op = {
540 .alg.skcipher.base = {
559 .alg.skcipher.op = {
566 .alg.skcipher.base = {
584 .alg.skcipher.op = {
[all …]
H A Drk3288_crypto.c213 rk_cipher_algs[i]->alg.skcipher.base.base.cra_driver_name, in rk_crypto_debugfs_show()
214 rk_cipher_algs[i]->alg.skcipher.base.base.cra_name, in rk_crypto_debugfs_show()
262 rk_cipher_algs[i]->alg.skcipher.base.base.cra_name, in rk_crypto_register()
263 rk_cipher_algs[i]->alg.skcipher.base.base.cra_driver_name); in rk_crypto_register()
264 err = crypto_engine_register_skcipher(&rk_cipher_algs[i]->alg.skcipher); in rk_crypto_register()
283 crypto_engine_unregister_skcipher(&rk_cipher_algs[k]->alg.skcipher); in rk_crypto_register()
296 crypto_engine_unregister_skcipher(&rk_cipher_algs[i]->alg.skcipher); in rk_crypto_unregister()
/linux-6.15/include/crypto/internal/
H A Dskcipher.h112 struct crypto_skcipher *skcipher) in skcipher_alg_instance() argument
114 return container_of(crypto_skcipher_alg(skcipher), in skcipher_alg_instance()
189 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize() argument
191 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize()
195 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize_dma() argument
198 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize_dma()
/linux-6.15/drivers/crypto/caam/
H A Dcaamalg_qi.c56 struct skcipher_alg skcipher; member
628 skcipher); in skcipher_setkey()
745 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
1483 .skcipher = {
1499 .skcipher = {
1515 .skcipher = {
1531 .skcipher = {
1549 .skcipher = {
1572 .skcipher = {
2594 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init()
[all …]
H A Dcaamalg.c1889 .skcipher.base = {
1902 .skcipher.op = {
1908 .skcipher.base = {
1921 .skcipher.op = {
1940 .skcipher.op = {
1960 .skcipher.op = {
1983 .skcipher.op = {
2007 .skcipher.op = {
2025 .skcipher.op = {
2043 .skcipher.op = {
[all …]
H A Dcaamalg_qi2.c61 struct skcipher_alg skcipher; member
949 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey()
950 struct caam_skcipher_alg, skcipher); in skcipher_setkey()
1073 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
1677 .skcipher = {
1693 .skcipher = {
1709 .skcipher = {
1725 .skcipher = {
1743 .skcipher = {
1766 .skcipher = {
[all …]
/linux-6.15/drivers/crypto/
H A Dgeode-aes.c155 crypto_skcipher_clear_flags(tctx->fallback.skcipher, in geode_setkey_skcipher()
157 crypto_skcipher_set_flags(tctx->fallback.skcipher, in geode_setkey_skcipher()
160 return crypto_skcipher_setkey(tctx->fallback.skcipher, key, len); in geode_setkey_skcipher()
243 tctx->fallback.skcipher = in geode_init_skcipher()
246 if (IS_ERR(tctx->fallback.skcipher)) { in geode_init_skcipher()
248 return PTR_ERR(tctx->fallback.skcipher); in geode_init_skcipher()
252 crypto_skcipher_reqsize(tctx->fallback.skcipher)); in geode_init_skcipher()
260 crypto_free_skcipher(tctx->fallback.skcipher); in geode_exit_skcipher()
275 skcipher_request_set_tfm(subreq, tctx->fallback.skcipher); in geode_skcipher_crypt()
H A Dgeode-aes.h52 struct crypto_skcipher *skcipher; member
/linux-6.15/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-core.c172 .alg.skcipher.base = {
194 .alg.skcipher.op = {
202 .alg.skcipher.base = {
223 .alg.skcipher.op = {
231 .alg.skcipher.base = {
253 .alg.skcipher.op = {
261 .alg.skcipher.base = {
282 .alg.skcipher.op = {
701 ss_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ss_register_algs()
705 ss_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ss_register_algs()
[all …]
/linux-6.15/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-core.c307 .alg.skcipher.base = {
329 .alg.skcipher.op = {
337 .alg.skcipher.base = {
358 .alg.skcipher.op = {
366 .alg.skcipher.base = {
388 .alg.skcipher.op = {
396 .alg.skcipher.base = {
417 .alg.skcipher.op = {
898 ce_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ce_register_algs()
906 ce_algs[i].alg.skcipher.base.base.cra_name); in sun8i_ce_register_algs()
[all …]
/linux-6.15/drivers/crypto/gemini/
H A Dsl3516-ce-core.c222 .alg.skcipher.base = {
242 .alg.skcipher.op = {
271 ce_algs[i].alg.skcipher.base.base.cra_driver_name, in sl3516_ce_debugfs_show()
272 ce_algs[i].alg.skcipher.base.base.cra_name, in sl3516_ce_debugfs_show()
292 ce_algs[i].alg.skcipher.base.base.cra_name); in sl3516_ce_register_algs()
293 err = crypto_engine_register_skcipher(&ce_algs[i].alg.skcipher); in sl3516_ce_register_algs()
296 ce_algs[i].alg.skcipher.base.base.cra_name); in sl3516_ce_register_algs()
319 ce_algs[i].alg.skcipher.base.base.cra_name); in sl3516_ce_unregister_algs()
320 crypto_engine_unregister_skcipher(&ce_algs[i].alg.skcipher); in sl3516_ce_unregister_algs()
/linux-6.15/drivers/crypto/marvell/cesa/
H A Dcipher.c222 memcpy(skreq->iv, basereq->chain.last->op->ctx.skcipher.iv, in mv_cesa_skcipher_complete()
485 memcpy(tmpl->ctx.skcipher.key, ctx->key, DES_KEY_SIZE); in mv_cesa_des_op()
539 memcpy(tmpl->ctx.skcipher.iv, req->iv, DES_BLOCK_SIZE); in mv_cesa_cbc_des_op()
592 memcpy(tmpl->ctx.skcipher.key, ctx->key, DES3_EDE_KEY_SIZE); in mv_cesa_des3_op()
645 memcpy(tmpl->ctx.skcipher.iv, req->iv, DES3_EDE_BLOCK_SIZE); in mv_cesa_cbc_des3_op()
712 tmpl->ctx.skcipher.key[i] = cpu_to_le32(key[i]); in mv_cesa_aes_op()
774 memcpy(tmpl->ctx.skcipher.iv, req->iv, AES_BLOCK_SIZE); in mv_cesa_cbc_aes_op()
/linux-6.15/arch/s390/crypto/
H A Daes_s390.c48 struct crypto_skcipher *skcipher; member
184 crypto_skcipher_clear_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher()
186 crypto_skcipher_set_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher()
189 return crypto_skcipher_setkey(sctx->fallback.skcipher, key, len); in setkey_fallback_skcipher()
199 skcipher_request_set_tfm(subreq, sctx->fallback.skcipher); in fallback_skcipher_crypt()
263 sctx->fallback.skcipher = crypto_alloc_skcipher(name, 0, in fallback_init_skcipher()
266 if (IS_ERR(sctx->fallback.skcipher)) { in fallback_init_skcipher()
269 return PTR_ERR(sctx->fallback.skcipher); in fallback_init_skcipher()
273 crypto_skcipher_reqsize(sctx->fallback.skcipher)); in fallback_init_skcipher()
281 crypto_free_skcipher(sctx->fallback.skcipher); in fallback_exit_skcipher()
/linux-6.15/drivers/crypto/qce/
H A DMakefile8 qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SKCIPHER) += skcipher.o
/linux-6.15/drivers/crypto/inside-secure/
H A Dsafexcel_cipher.c1294 .alg.skcipher = {
1331 .alg.skcipher = {
1405 .alg.skcipher = {
1467 .alg.skcipher = {
1506 .alg.skcipher = {
1566 .alg.skcipher = {
1605 .alg.skcipher = {
2479 .alg.skcipher = {
2770 .alg.skcipher = {
3052 .alg.skcipher = {
[all …]

123