Home
last modified time | relevance | path

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

123

/linux/crypto/
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 …]
A Dskcipher.c723 alg->exit(skcipher); in crypto_skcipher_exit_tfm()
731 skcipher_set_needkey(skcipher); in crypto_skcipher_init_tfm()
738 reqsize += crypto_skcipher_ivsize(skcipher); in crypto_skcipher_init_tfm()
739 reqsize += crypto_skcipher_statesize(skcipher); in crypto_skcipher_init_tfm()
740 crypto_skcipher_set_reqsize(skcipher, reqsize); in crypto_skcipher_init_tfm()
749 return alg->init(skcipher); in crypto_skcipher_init_tfm()
764 struct skcipher_instance *skcipher = in crypto_skcipher_free_instance() local
767 skcipher->free(skcipher); in crypto_skcipher_free_instance()
800 rblkcipher.min_keysize = skcipher->min_keysize; in crypto_skcipher_report()
801 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()
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/drivers/crypto/aspeed/
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/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/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.rst8 api-skcipher
/linux/drivers/crypto/amlogic/
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/drivers/crypto/rockchip/
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 …]
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/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.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 …]
A Dcaamalg_qi2.c60 struct skcipher_alg skcipher; member
948 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey()
949 struct caam_skcipher_alg, skcipher); in skcipher_setkey()
1072 err = xts_verify_key(skcipher, key, keylen); in xts_skcipher_setkey()
1676 .skcipher = {
1692 .skcipher = {
1708 .skcipher = {
1724 .skcipher = {
1742 .skcipher = {
1765 .skcipher = {
[all …]
/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.c1098 .skcipher = {
1111 .skcipher = {
1127 .skcipher = {
1140 .skcipher = {
1156 .skcipher = {
1169 .skcipher = {
1183 .skcipher = {
1280 crypto_unregister_skcipher(&skcipher->skcipher); in __n2_unregister_algs()
1282 kfree(skcipher); in __n2_unregister_algs()
1311 alg = &p->skcipher; in __n2_register_one_skcipher()
[all …]
A Dgeode-aes.h52 struct crypto_skcipher *skcipher; member
/linux/include/crypto/internal/
A Dskcipher.h105 struct crypto_skcipher *skcipher) in skcipher_alg_instance() argument
107 return container_of(crypto_skcipher_alg(skcipher), in skcipher_alg_instance()
182 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize() argument
184 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize()
188 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize_dma() argument
191 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize_dma()
/linux/drivers/crypto/allwinner/sun8i-ss/
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/drivers/crypto/allwinner/sun8i-ce/
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/drivers/crypto/gemini/
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/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/arch/s390/crypto/
A Daes_s390.c48 struct crypto_skcipher *skcipher; member
185 crypto_skcipher_clear_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher()
187 crypto_skcipher_set_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher()
190 return crypto_skcipher_setkey(sctx->fallback.skcipher, key, len); in setkey_fallback_skcipher()
200 skcipher_request_set_tfm(subreq, sctx->fallback.skcipher); in fallback_skcipher_crypt()
264 sctx->fallback.skcipher = crypto_alloc_skcipher(name, 0, in fallback_init_skcipher()
267 if (IS_ERR(sctx->fallback.skcipher)) { in fallback_init_skcipher()
270 return PTR_ERR(sctx->fallback.skcipher); in fallback_init_skcipher()
274 crypto_skcipher_reqsize(sctx->fallback.skcipher)); in fallback_init_skcipher()
282 crypto_free_skcipher(sctx->fallback.skcipher); in fallback_exit_skcipher()
/linux/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()
/linux/drivers/crypto/inside-secure/
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 …]

Completed in 85 milliseconds

123