Home
last modified time | relevance | path

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

123

/linux/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 Dskcipher.c656 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm()
658 alg->exit(skcipher); in crypto_skcipher_exit_tfm()
666 skcipher_set_needkey(skcipher); in crypto_skcipher_init_tfm()
669 skcipher->base.exit = crypto_skcipher_exit_tfm; in crypto_skcipher_init_tfm()
672 return alg->init(skcipher); in crypto_skcipher_init_tfm()
679 struct skcipher_instance *skcipher = in crypto_skcipher_free_instance() local
682 skcipher->free(skcipher); in crypto_skcipher_free_instance()
698 seq_printf(m, "ivsize : %u\n", skcipher->ivsize); in crypto_skcipher_show()
716 rblkcipher.min_keysize = skcipher->min_keysize; in crypto_skcipher_report()
717 rblkcipher.max_keysize = skcipher->max_keysize; in crypto_skcipher_report()
[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()
297 struct crypto_skcipher *skcipher; in essiv_skcipher_init_tfm() local
301 if (IS_ERR(skcipher)) in essiv_skcipher_init_tfm()
302 return PTR_ERR(skcipher); in essiv_skcipher_init_tfm()
305 crypto_skcipher_reqsize(skcipher)); in essiv_skcipher_init_tfm()
309 crypto_free_skcipher(skcipher); in essiv_skcipher_init_tfm()
313 tctx->u.skcipher = skcipher; in essiv_skcipher_init_tfm()
[all …]
/linux/drivers/crypto/caam/
A Dcaamalg_qi.c51 struct skcipher_alg skcipher; member
623 skcipher); in skcipher_setkey()
740 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
1467 .skcipher = {
1483 .skcipher = {
1499 .skcipher = {
1515 .skcipher = {
1533 .skcipher = {
1556 .skcipher = {
2578 struct skcipher_alg *alg = &t_alg->skcipher; in caam_skcipher_alg_init()
[all …]
A Dcaamalg.c98 struct skcipher_alg skcipher; member
735 skcipher); in skcipher_setkey()
1862 .skcipher = {
1878 .skcipher = {
1894 .skcipher = {
1910 .skcipher = {
1928 .skcipher = {
1951 .skcipher = {
1968 .skcipher = {
1983 .skcipher = {
[all …]
A Dcaamalg_qi2.c58 struct skcipher_alg skcipher; member
945 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey()
946 struct caam_skcipher_alg, skcipher); in skcipher_setkey()
1069 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
1671 .skcipher = {
1687 .skcipher = {
1703 .skcipher = {
1719 .skcipher = {
1737 .skcipher = {
1760 .skcipher = {
[all …]
/linux/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/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 = {
1303 crypto_unregister_skcipher(&skcipher->skcipher); in __n2_unregister_algs()
[all …]
A Dhifn_795x.c2241 .skcipher = {
2251 .skcipher = {
2261 .skcipher = {
2272 .skcipher = {
2286 .skcipher = {
2296 .skcipher = {
2306 .skcipher = {
2317 .skcipher = {
2331 .skcipher = {
2341 .skcipher = {
[all …]
A Dgeode-aes.h52 struct crypto_skcipher *skcipher; member
/linux/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/drivers/crypto/allwinner/sun8i-ss/
A Dsun8i-ss-core.c168 .alg.skcipher = {
195 .alg.skcipher = {
221 .alg.skcipher = {
248 .alg.skcipher = {
428 ss_algs[i].alg.skcipher.base.cra_driver_name, in sun8i_ss_debugfs_show()
429 ss_algs[i].alg.skcipher.base.cra_name, in sun8i_ss_debugfs_show()
575 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs()
583 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs()
588 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs()
592 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs()
[all …]
/linux/include/crypto/internal/
A Dskcipher.h76 struct crypto_skcipher *skcipher) in skcipher_alg_instance() argument
78 return container_of(crypto_skcipher_alg(skcipher), in skcipher_alg_instance()
120 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize() argument
122 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize()
/linux/drivers/crypto/allwinner/sun8i-ce/
A Dsun8i-ce-core.c260 .alg.skcipher = {
287 .alg.skcipher = {
313 .alg.skcipher = {
340 .alg.skcipher = {
580 ce_algs[i].alg.skcipher.base.cra_driver_name, in sun8i_ce_debugfs_show()
581 ce_algs[i].alg.skcipher.base.cra_name, in sun8i_ce_debugfs_show()
782 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs()
790 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs()
795 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs()
799 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs()
[all …]
/linux/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/drivers/crypto/rockchip/
A Drk3288_crypto_skcipher.c383 algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher); in rk_ablk_init_tfm()
405 .alg.skcipher = {
427 .alg.skcipher = {
450 .alg.skcipher = {
472 .alg.skcipher = {
495 .alg.skcipher = {
518 .alg.skcipher = {
/linux/drivers/crypto/ux500/cryp/
A Dcryp_core.c1051 struct skcipher_alg skcipher; member
1060 skcipher); in cryp_init_tfm()
1071 .skcipher = {
1091 .skcipher = {
1112 .skcipher = {
1134 .skcipher = {
1154 .skcipher = {
1174 .skcipher = {
1195 .skcipher = {
1232 cryp_algs[i].skcipher.base.cra_driver_name); in cryp_algs_register_all()
[all …]
/linux/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/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()
646 memcpy(tmpl->ctx.skcipher.iv, req->iv, DES3_EDE_BLOCK_SIZE); in mv_cesa_cbc_des3_op()
713 tmpl->ctx.skcipher.key[i] = cpu_to_le32(key[i]); in mv_cesa_aes_op()
775 memcpy(tmpl->ctx.skcipher.iv, req->iv, AES_BLOCK_SIZE); in mv_cesa_cbc_aes_op()
/linux/drivers/crypto/inside-secure/
A Dsafexcel_cipher.c1275 .alg.skcipher = {
1312 .alg.skcipher = {
1350 .alg.skcipher = {
1388 .alg.skcipher = {
1462 .alg.skcipher = {
1524 .alg.skcipher = {
1563 .alg.skcipher = {
1623 .alg.skcipher = {
1662 .alg.skcipher = {
2536 .alg.skcipher = {
[all …]
/linux/drivers/crypto/qce/
A Dskcipher.c68 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in qce_skcipher_async_req_handle() local
78 rctx->ivsize = crypto_skcipher_ivsize(skcipher); in qce_skcipher_async_req_handle()
447 alg = &tmpl->alg.skcipher; in qce_skcipher_register_one()
502 crypto_unregister_skcipher(&tmpl->alg.skcipher); in qce_skcipher_unregister()
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 62 milliseconds

123