Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/crypto/
A Dcbc.c18 struct crypto_skcipher *skcipher) in crypto_cbc_encrypt_segment() argument
20 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_encrypt_segment()
29 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_encrypt_segment()
46 struct crypto_skcipher *skcipher) in crypto_cbc_encrypt_inplace() argument
56 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_encrypt_inplace()
83 err = crypto_cbc_encrypt_inplace(&walk, skcipher); in crypto_cbc_encrypt()
85 err = crypto_cbc_encrypt_segment(&walk, skcipher); in crypto_cbc_encrypt()
93 struct crypto_skcipher *skcipher) in crypto_cbc_decrypt_segment() argument
104 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_decrypt_segment()
123 struct crypto_skcipher *skcipher) in crypto_cbc_decrypt_inplace() argument
[all …]
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 …]
A Dskcipher.c642 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm()
644 alg->exit(skcipher); in crypto_skcipher_exit_tfm()
652 skcipher_set_needkey(skcipher); in crypto_skcipher_init_tfm()
655 skcipher->base.exit = crypto_skcipher_exit_tfm; in crypto_skcipher_init_tfm()
658 return alg->init(skcipher); in crypto_skcipher_init_tfm()
665 struct skcipher_instance *skcipher = in crypto_skcipher_free_instance() local
668 skcipher->free(skcipher); in crypto_skcipher_free_instance()
684 seq_printf(m, "ivsize : %u\n", skcipher->ivsize); in crypto_skcipher_show()
702 rblkcipher.min_keysize = skcipher->min_keysize; in crypto_skcipher_report()
703 rblkcipher.max_keysize = skcipher->max_keysize; in crypto_skcipher_report()
[all …]
/linux-6.3-rc2/tools/testing/crypto/chacha20-s390/
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.3-rc2/include/crypto/internal/
A Dskcipher.h84 struct crypto_skcipher *skcipher) in skcipher_alg_instance() argument
86 return container_of(crypto_skcipher_alg(skcipher), in skcipher_alg_instance()
128 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize() argument
130 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize()
134 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize_dma() argument
137 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize_dma()
/linux-6.3-rc2/Documentation/crypto/
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
A Dapi.rst11 api-skcipher
/linux-6.3-rc2/drivers/crypto/aspeed/
A Daspeed-hace-crypto.c734 .alg.skcipher = {
757 .alg.skcipher = {
781 .alg.skcipher = {
805 .alg.skcipher = {
829 .alg.skcipher = {
852 .alg.skcipher = {
876 .alg.skcipher = {
900 .alg.skcipher = {
924 .alg.skcipher = {
947 .alg.skcipher = {
[all …]
/linux-6.3-rc2/drivers/crypto/
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()
A Dn2_core.c1101 .skcipher = {
1114 .skcipher = {
1128 .skcipher = {
1143 .skcipher = {
1156 .skcipher = {
1170 .skcipher = {
1184 .skcipher = {
1197 .skcipher = {
1211 .skcipher = {
1308 crypto_unregister_skcipher(&skcipher->skcipher); in __n2_unregister_algs()
[all …]
A Dgeode-aes.h52 struct crypto_skcipher *skcipher; member
/linux-6.3-rc2/drivers/crypto/caam/
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 …]
A Dcaamalg.c104 struct skcipher_alg skcipher; member
741 skcipher); in skcipher_setkey()
1884 .skcipher = {
1900 .skcipher = {
1916 .skcipher = {
1932 .skcipher = {
1950 .skcipher = {
1973 .skcipher = {
1990 .skcipher = {
2005 .skcipher = {
[all …]
A Dcaamalg_qi2.c60 struct skcipher_alg skcipher; member
947 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey()
948 struct caam_skcipher_alg, skcipher); in skcipher_setkey()
1071 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
1675 .skcipher = {
1691 .skcipher = {
1707 .skcipher = {
1723 .skcipher = {
1741 .skcipher = {
1764 .skcipher = {
[all …]
/linux-6.3-rc2/drivers/crypto/amlogic/
A Damlogic-gxl-core.c50 .alg.skcipher = {
76 .alg.skcipher = {
113 mc_algs[i].alg.skcipher.base.cra_driver_name, in meson_debugfs_show()
114 mc_algs[i].alg.skcipher.base.cra_name, in meson_debugfs_show()
186 err = crypto_register_skcipher(&mc_algs[i].alg.skcipher); in meson_register_algs()
189 mc_algs[i].alg.skcipher.base.cra_name); in meson_register_algs()
209 crypto_unregister_skcipher(&mc_algs[i].alg.skcipher); in meson_unregister_algs()
/linux-6.3-rc2/drivers/crypto/rockchip/
A Drk3288_crypto.c207 rk_cipher_algs[i]->alg.skcipher.base.cra_driver_name, in rk_crypto_debugfs_show()
208 rk_cipher_algs[i]->alg.skcipher.base.cra_name, in rk_crypto_debugfs_show()
253 rk_cipher_algs[i]->alg.skcipher.base.cra_name, in rk_crypto_register()
254 rk_cipher_algs[i]->alg.skcipher.base.cra_driver_name); in rk_crypto_register()
255 err = crypto_register_skcipher(&rk_cipher_algs[i]->alg.skcipher); in rk_crypto_register()
274 crypto_unregister_skcipher(&rk_cipher_algs[k]->alg.skcipher); in rk_crypto_register()
287 crypto_unregister_skcipher(&rk_cipher_algs[i]->alg.skcipher); in rk_crypto_unregister()
A Drk3288_crypto_skcipher.c21 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher); in rk_cipher_need_fallback()
68 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher); in rk_cipher_fallback()
308 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher); in rk_cipher_run()
433 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher); in rk_cipher_tfm_init()
460 .alg.skcipher = {
482 .alg.skcipher = {
505 .alg.skcipher = {
527 .alg.skcipher = {
550 .alg.skcipher = {
572 .alg.skcipher = {
/linux-6.3-rc2/drivers/crypto/allwinner/sun8i-ss/
A Dsun8i-ss-core.c171 .alg.skcipher = {
198 .alg.skcipher = {
224 .alg.skcipher = {
251 .alg.skcipher = {
462 ss_algs[i].alg.skcipher.base.cra_driver_name, in sun8i_ss_debugfs_show()
463 ss_algs[i].alg.skcipher.base.cra_name, in sun8i_ss_debugfs_show()
662 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs()
670 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs()
675 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs()
679 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs()
[all …]
/linux-6.3-rc2/drivers/crypto/gemini/
A Dsl3516-ce-core.c220 .alg.skcipher = {
267 ce_algs[i].alg.skcipher.base.cra_driver_name, in sl3516_ce_debugfs_show()
268 ce_algs[i].alg.skcipher.base.cra_name, in sl3516_ce_debugfs_show()
289 ce_algs[i].alg.skcipher.base.cra_name); in sl3516_ce_register_algs()
290 err = crypto_register_skcipher(&ce_algs[i].alg.skcipher); in sl3516_ce_register_algs()
293 ce_algs[i].alg.skcipher.base.cra_name); in sl3516_ce_register_algs()
316 ce_algs[i].alg.skcipher.base.cra_name); in sl3516_ce_unregister_algs()
317 crypto_unregister_skcipher(&ce_algs[i].alg.skcipher); in sl3516_ce_unregister_algs()
/linux-6.3-rc2/drivers/crypto/allwinner/sun8i-ce/
A Dsun8i-ce-core.c280 .alg.skcipher = {
307 .alg.skcipher = {
333 .alg.skcipher = {
360 .alg.skcipher = {
600 ce_algs[i].alg.skcipher.base.cra_driver_name, in sun8i_ce_debugfs_show()
601 ce_algs[i].alg.skcipher.base.cra_name, in sun8i_ce_debugfs_show()
842 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs()
850 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs()
855 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs()
859 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs()
[all …]
/linux-6.3-rc2/arch/s390/crypto/
A Daes_s390.c48 struct crypto_skcipher *skcipher; member
180 crypto_skcipher_clear_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher()
182 crypto_skcipher_set_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher()
185 return crypto_skcipher_setkey(sctx->fallback.skcipher, key, len); in setkey_fallback_skcipher()
195 skcipher_request_set_tfm(subreq, sctx->fallback.skcipher); in fallback_skcipher_crypt()
259 sctx->fallback.skcipher = crypto_alloc_skcipher(name, 0, in fallback_init_skcipher()
262 if (IS_ERR(sctx->fallback.skcipher)) { in fallback_init_skcipher()
265 return PTR_ERR(sctx->fallback.skcipher); in fallback_init_skcipher()
269 crypto_skcipher_reqsize(sctx->fallback.skcipher)); in fallback_init_skcipher()
277 crypto_free_skcipher(sctx->fallback.skcipher); in fallback_exit_skcipher()
/linux-6.3-rc2/drivers/crypto/marvell/cesa/
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.3-rc2/drivers/crypto/inside-secure/
A Dsafexcel_cipher.c1291 .alg.skcipher = {
1328 .alg.skcipher = {
1366 .alg.skcipher = {
1404 .alg.skcipher = {
1478 .alg.skcipher = {
1540 .alg.skcipher = {
1579 .alg.skcipher = {
1639 .alg.skcipher = {
1678 .alg.skcipher = {
2552 .alg.skcipher = {
[all …]
/linux-6.3-rc2/drivers/crypto/qce/
A DMakefile8 qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SKCIPHER) += skcipher.o
A Dcipher.h51 return container_of(alg, struct qce_alg_template, alg.skcipher); in to_cipher_tmpl()

Completed in 78 milliseconds

123