/Linux-v5.15/crypto/ |
D | cbc.c | 18 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 48 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_encrypt_inplace() 56 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_encrypt_inplace() 75 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_cbc_encrypt() local 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 [all …]
|
D | essiv.c | 52 struct crypto_skcipher *skcipher; member 73 crypto_skcipher_clear_flags(tctx->u.skcipher, CRYPTO_TFM_REQ_MASK); in essiv_skcipher_setkey() 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 300 skcipher = crypto_spawn_skcipher(&ictx->u.skcipher_spawn); in essiv_skcipher_init_tfm() 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() [all …]
|
D | skcipher.c | 655 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_skcipher_exit_tfm() local 656 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm() 658 alg->exit(skcipher); in crypto_skcipher_exit_tfm() 663 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_skcipher_init_tfm() local 664 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_init_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() [all …]
|
/Linux-v5.15/Documentation/crypto/ |
D | api-skcipher.rst | 13 .. 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
|
D | api.rst | 11 api-skcipher
|
/Linux-v5.15/drivers/crypto/ |
D | geode-aes.c | 155 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()
|
D | n2_core.c | 712 struct skcipher_alg skcipher; member 719 return container_of(alg, struct n2_skcipher_alg, skcipher); in n2_skcipher_alg() 726 static int n2_aes_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_aes_setkey() argument 729 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_aes_setkey() 731 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_aes_setkey() 754 static int n2_des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_des_setkey() argument 757 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_des_setkey() 759 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_des_setkey() 762 err = verify_skcipher_des_key(skcipher, key); in n2_des_setkey() 773 static int n2_3des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_3des_setkey() argument [all …]
|
D | geode-aes.h | 52 struct crypto_skcipher *skcipher; member
|
D | hifn_795x.c | 2232 struct skcipher_alg skcipher; member 2241 .skcipher = { 2251 .skcipher = { 2261 .skcipher = { 2272 .skcipher = { 2286 .skcipher = { 2296 .skcipher = { 2306 .skcipher = { 2317 .skcipher = { 2331 .skcipher = { [all …]
|
/Linux-v5.15/drivers/crypto/caam/ |
D | caamalg_qi.c | 51 struct skcipher_alg skcipher; member 617 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument 620 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey() 622 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey() 623 skcipher); in skcipher_setkey() 625 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() 664 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument 673 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey() 676 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument 694 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey() [all …]
|
D | caamalg.c | 98 struct skcipher_alg skcipher; member 729 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument 732 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey() 734 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey() 735 skcipher); in skcipher_setkey() 737 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() 765 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument 774 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey() 777 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument 795 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey() [all …]
|
D | caamalg_qi2.c | 58 struct skcipher_alg skcipher; member 940 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument 943 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey() 945 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey() 946 struct caam_skcipher_alg, skcipher); in skcipher_setkey() 949 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() 983 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument 992 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey() 995 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument 1013 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey() [all …]
|
/Linux-v5.15/drivers/crypto/amlogic/ |
D | amlogic-gxl-core.c | 50 .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-v5.15/include/crypto/internal/ |
D | skcipher.h | 76 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-v5.15/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-core.c | 168 .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() 589 err = crypto_register_skcipher(&ss_algs[i].alg.skcipher); in sun8i_ss_register_algs() [all …]
|
/Linux-v5.15/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-core.c | 260 .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() 796 err = crypto_register_skcipher(&ce_algs[i].alg.skcipher); in sun8i_ce_register_algs() [all …]
|
/Linux-v5.15/drivers/crypto/gemini/ |
D | sl3516-ce-core.c | 220 .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-v5.15/drivers/crypto/rockchip/ |
D | rk3288_crypto_skcipher.c | 383 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-v5.15/drivers/crypto/ux500/cryp/ |
D | cryp_core.c | 1051 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 = { 1228 ret = crypto_register_skcipher(&cryp_algs[i].skcipher); in cryp_algs_register_all() [all …]
|
/Linux-v5.15/arch/s390/crypto/ |
D | aes_s390.c | 48 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-v5.15/drivers/crypto/marvell/cesa/ |
D | cipher.c | 222 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-v5.15/drivers/crypto/inside-secure/ |
D | safexcel_cipher.c | 617 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(areq); in safexcel_handle_req_result() local 618 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(skcipher); in safexcel_handle_req_result() 658 crypto_skcipher_ivsize(skcipher), in safexcel_handle_req_result() 660 crypto_skcipher_ivsize(skcipher))); in safexcel_handle_req_result() 676 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(areq); in safexcel_send_req() local 717 crypto_skcipher_ivsize(skcipher), in safexcel_send_req() 719 crypto_skcipher_ivsize(skcipher))); in safexcel_send_req() 1033 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in safexcel_skcipher_send() local 1040 memcpy(input_iv, req->iv, crypto_skcipher_ivsize(skcipher)); in safexcel_skcipher_send() 1110 EIP197_REQUEST_ON_STACK(req, skcipher, EIP197_SKCIPHER_REQ_SIZE); in safexcel_skcipher_exit_inv() [all …]
|
/Linux-v5.15/drivers/crypto/qce/ |
D | Makefile | 8 qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SKCIPHER) += skcipher.o
|
D | cipher.h | 51 return container_of(alg, struct qce_alg_template, alg.skcipher); in to_cipher_tmpl()
|
D | skcipher.c | 68 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()
|