/linux-6.1.9/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-6.1.9/tools/testing/crypto/chacha20-s390/ |
D | test-cipher.c | 129 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.1.9/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-6.1.9/drivers/crypto/aspeed/ |
D | aspeed-hace-crypto.c | 699 crypto_alg = container_of(alg, struct aspeed_hace_alg, alg.skcipher); in aspeed_crypto_cra_init() 734 .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 = { [all …]
|
/linux-6.1.9/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
|
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-core.c | 170 .alg.skcipher = { 197 .alg.skcipher = { 223 .alg.skcipher = { 250 .alg.skcipher = { 461 ss_algs[i].alg.skcipher.base.cra_driver_name, in sun8i_ss_debugfs_show() 462 ss_algs[i].alg.skcipher.base.cra_name, in sun8i_ss_debugfs_show() 659 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs() 667 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs() 672 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs() 673 err = crypto_register_skcipher(&ss_algs[i].alg.skcipher); in sun8i_ss_register_algs() [all …]
|
/linux-6.1.9/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-6.1.9/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-core.c | 279 .alg.skcipher = { 306 .alg.skcipher = { 332 .alg.skcipher = { 359 .alg.skcipher = { 599 ce_algs[i].alg.skcipher.base.cra_driver_name, in sun8i_ce_debugfs_show() 600 ce_algs[i].alg.skcipher.base.cra_name, in sun8i_ce_debugfs_show() 841 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs() 849 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs() 854 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs() 855 err = crypto_register_skcipher(&ce_algs[i].alg.skcipher); in sun8i_ce_register_algs() [all …]
|
/linux-6.1.9/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-6.1.9/drivers/crypto/rockchip/ |
D | rk3288_crypto_skcipher.c | 443 algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher); in rk_ablk_init_tfm() 472 .alg.skcipher = { 494 .alg.skcipher = { 517 .alg.skcipher = { 539 .alg.skcipher = { 562 .alg.skcipher = { 584 .alg.skcipher = {
|
D | rk3288_crypto.c | 107 &rk_cipher_algs[i]->alg.skcipher); in rk_crypto_register() 119 crypto_unregister_skcipher(&rk_cipher_algs[k]->alg.skcipher); in rk_crypto_register() 132 crypto_unregister_skcipher(&rk_cipher_algs[i]->alg.skcipher); in rk_crypto_unregister()
|
/linux-6.1.9/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-6.1.9/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() 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.1.9/drivers/crypto/inside-secure/ |
D | safexcel_cipher.c | 616 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(areq); in safexcel_handle_req_result() local 617 struct safexcel_cipher_ctx *ctx = crypto_skcipher_ctx(skcipher); in safexcel_handle_req_result() 663 crypto_skcipher_ivsize(skcipher), in safexcel_handle_req_result() 665 crypto_skcipher_ivsize(skcipher))); in safexcel_handle_req_result() 681 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(areq); in safexcel_send_req() local 722 crypto_skcipher_ivsize(skcipher), in safexcel_send_req() 724 crypto_skcipher_ivsize(skcipher))); in safexcel_send_req() 1050 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in safexcel_skcipher_send() local 1057 memcpy(input_iv, req->iv, crypto_skcipher_ivsize(skcipher)); in safexcel_skcipher_send() 1127 EIP197_REQUEST_ON_STACK(req, skcipher, EIP197_SKCIPHER_REQ_SIZE); in safexcel_skcipher_exit_inv() [all …]
|
/linux-6.1.9/drivers/crypto/qce/ |
D | Makefile | 8 qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SKCIPHER) += skcipher.o
|