| /linux/crypto/ ! |
| H A D | lskcipher.c | 164 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_lskcipher_crypt_sg() local 165 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher); in crypto_lskcipher_crypt_sg() 174 ivs = PTR_ALIGN(ivs, crypto_skcipher_alignmask(skcipher) + 1); in crypto_lskcipher_crypt_sg() 203 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_lskcipher_encrypt_sg() local 204 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher); in crypto_lskcipher_encrypt_sg() 212 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_lskcipher_decrypt_sg() local 213 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher); in crypto_lskcipher_decrypt_sg() 221 struct crypto_lskcipher *skcipher = __crypto_lskcipher_cast(tfm); in crypto_lskcipher_exit_tfm() local 222 struct lskcipher_alg *alg = crypto_lskcipher_alg(skcipher); in crypto_lskcipher_exit_tfm() 224 alg->exit(skcipher); in crypto_lskcipher_exit_tfm() [all …]
|
| H A D | skcipher.c | 521 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_skcipher_exit_tfm() local 522 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm() 524 alg->exit(skcipher); in crypto_skcipher_exit_tfm() 529 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_skcipher_init_tfm() local 530 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_init_tfm() 532 skcipher_set_needkey(skcipher); in crypto_skcipher_init_tfm() 535 unsigned am = crypto_skcipher_alignmask(skcipher); in crypto_skcipher_init_tfm() 539 reqsize += crypto_skcipher_ivsize(skcipher); in crypto_skcipher_init_tfm() 540 reqsize += crypto_skcipher_statesize(skcipher); in crypto_skcipher_init_tfm() 541 crypto_skcipher_set_reqsize(skcipher, reqsize); in crypto_skcipher_init_tfm() [all …]
|
| H A 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() 300 struct crypto_skcipher *skcipher; in essiv_skcipher_init_tfm() local 303 skcipher = crypto_spawn_skcipher(&ictx->u.skcipher_spawn); in essiv_skcipher_init_tfm() 304 if (IS_ERR(skcipher)) in essiv_skcipher_init_tfm() 305 return PTR_ERR(skcipher); in essiv_skcipher_init_tfm() 308 crypto_skcipher_reqsize(skcipher)); in essiv_skcipher_init_tfm() [all …]
|
| /linux/drivers/crypto/inside-secure/eip93/ ! |
| H A D | eip93-cipher.c | 54 struct eip93_alg_template, alg.skcipher.base); in eip93_skcipher_cra_init() 87 alg.skcipher.base); in eip93_skcipher_setkey() 141 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in eip93_skcipher_crypt() local 153 crypto_skcipher_blocksize(skcipher))) in eip93_skcipher_crypt() 167 rctx->ivsize = crypto_skcipher_ivsize(skcipher); in eip93_skcipher_crypt() 179 struct eip93_alg_template, alg.skcipher.base); in eip93_skcipher_encrypt() 192 struct eip93_alg_template, alg.skcipher.base); in eip93_skcipher_decrypt() 206 .alg.skcipher = { 233 .alg.skcipher = { 260 .alg.skcipher = { [all …]
|
| H A D | eip93-main.c | 120 crypto_unregister_skcipher(&eip93_algs[j]->alg.skcipher); in eip93_unregister_algs() 147 eip93_algs[i]->alg.skcipher.max_keysize = in eip93_register_algs() 151 eip93_algs[i]->alg.skcipher.max_keysize = in eip93_register_algs() 155 eip93_algs[i]->alg.skcipher.max_keysize = in eip93_register_algs() 159 eip93_algs[i]->alg.skcipher.max_keysize += in eip93_register_algs() 165 ret = crypto_register_skcipher(&eip93_algs[i]->alg.skcipher); in eip93_register_algs()
|
| /linux/drivers/crypto/aspeed/ ! |
| H A D | aspeed-hace-crypto.c | 642 crypto_alg = container_of(alg, struct aspeed_hace_alg, alg.skcipher.base); in aspeed_crypto_cra_init() 673 .alg.skcipher.base = { 694 .alg.skcipher.op = { 699 .alg.skcipher.base = { 721 .alg.skcipher.op = { 726 .alg.skcipher.base = { 747 .alg.skcipher.op = { 752 .alg.skcipher.base = { 774 .alg.skcipher.op = { 779 .alg.skcipher.base = { [all …]
|
| /linux/tools/testing/crypto/chacha20-s390/ ! |
| H A 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/drivers/crypto/amlogic/ ! |
| H A D | amlogic-gxl-core.c | 52 .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/ ! |
| H A D | rk3288_crypto_skcipher.c | 27 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base); in rk_cipher_need_fallback() 74 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base); in rk_cipher_fallback() 314 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base); in rk_cipher_run() 438 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base); in rk_cipher_tfm_init() 463 .alg.skcipher.base = { 481 .alg.skcipher.op = { 488 .alg.skcipher.base = { 507 .alg.skcipher.op = { 514 .alg.skcipher.base = { 532 .alg.skcipher.op = { [all …]
|
| H A D | rk3288_crypto.c | 213 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/ ! |
| H A D | caamalg.c | 110 struct skcipher_engine_alg skcipher; member 745 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument 748 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey() 750 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey() 751 skcipher.base); in skcipher_setkey() 753 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() 786 static int paes_skcipher_setkey(struct crypto_skcipher *skcipher, in paes_skcipher_setkey() argument 791 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in paes_skcipher_setkey() 842 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument 851 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey() [all …]
|
| H A D | caamalg_qi.c | 56 struct skcipher_alg skcipher; member 622 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument 625 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey() 627 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey() 628 skcipher); in skcipher_setkey() 630 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() 669 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument 678 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey() 681 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument 699 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey() [all …]
|
| H A D | caamalg_qi2.c | 61 struct skcipher_alg skcipher; member 944 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument 947 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey() 949 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey() 950 struct caam_skcipher_alg, skcipher); in skcipher_setkey() 953 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey() 987 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument 996 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey() 999 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument 1017 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey() [all …]
|
| /linux/Documentation/crypto/ ! |
| H A D | api-skcipher.rst | 16 .. kernel-doc:: include/crypto/skcipher.h 19 .. kernel-doc:: include/crypto/skcipher.h 25 .. kernel-doc:: include/crypto/skcipher.h 28 .. kernel-doc:: include/crypto/skcipher.h
|
| H A D | api.rst | 8 api-skcipher
|
| /linux/drivers/crypto/ ! |
| H A 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()
|
| /linux/include/crypto/internal/ ! |
| H A D | skcipher.h | 111 struct crypto_skcipher *skcipher) in skcipher_alg_instance() argument 113 return container_of(crypto_skcipher_alg(skcipher), in skcipher_alg_instance() 188 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize() argument 190 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize() 194 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize_dma() argument 197 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize_dma()
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ ! |
| H A D | sun8i-ss-core.c | 172 .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 = { 489 ss_algs[i].alg.skcipher.base.base.cra_driver_name, in sun8i_ss_debugfs_show() 490 ss_algs[i].alg.skcipher.base.base.cra_name, in sun8i_ss_debugfs_show() [all …]
|
| /linux/drivers/crypto/allwinner/sun8i-ce/ ! |
| H A D | sun8i-ce-core.c | 308 .alg.skcipher.base = { 330 .alg.skcipher.op = { 338 .alg.skcipher.base = { 359 .alg.skcipher.op = { 367 .alg.skcipher.base = { 389 .alg.skcipher.op = { 397 .alg.skcipher.base = { 418 .alg.skcipher.op = { 657 ce_algs[i].alg.skcipher.base.base.cra_driver_name, in sun8i_ce_debugfs_show() 658 ce_algs[i].alg.skcipher.base.base.cra_name, in sun8i_ce_debugfs_show() [all …]
|
| /linux/drivers/crypto/gemini/ ! |
| H A D | sl3516-ce-core.c | 222 .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/arch/s390/crypto/ ! |
| H A D | aes_s390.c | 46 struct crypto_skcipher *skcipher; member 78 crypto_skcipher_clear_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher() 80 crypto_skcipher_set_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher() 83 return crypto_skcipher_setkey(sctx->fallback.skcipher, key, len); in setkey_fallback_skcipher() 93 skcipher_request_set_tfm(subreq, sctx->fallback.skcipher); in fallback_skcipher_crypt() 157 sctx->fallback.skcipher = crypto_alloc_skcipher(name, 0, in fallback_init_skcipher() 160 if (IS_ERR(sctx->fallback.skcipher)) { in fallback_init_skcipher() 163 return PTR_ERR(sctx->fallback.skcipher); in fallback_init_skcipher() 167 crypto_skcipher_reqsize(sctx->fallback.skcipher)); in fallback_init_skcipher() 175 crypto_free_skcipher(sctx->fallback.skcipher); in fallback_exit_skcipher()
|
| /linux/drivers/crypto/marvell/cesa/ ! |
| H A D | cipher.c | 224 memcpy(skreq->iv, basereq->chain.last->op->ctx.skcipher.iv, in mv_cesa_skcipher_complete() 490 memcpy(tmpl->ctx.skcipher.key, ctx->key, DES_KEY_SIZE); in mv_cesa_des_op() 544 memcpy(tmpl->ctx.skcipher.iv, req->iv, DES_BLOCK_SIZE); in mv_cesa_cbc_des_op() 597 memcpy(tmpl->ctx.skcipher.key, ctx->key, DES3_EDE_KEY_SIZE); in mv_cesa_des3_op() 650 memcpy(tmpl->ctx.skcipher.iv, req->iv, DES3_EDE_BLOCK_SIZE); in mv_cesa_cbc_des3_op() 717 tmpl->ctx.skcipher.key[i] = cpu_to_le32(key[i]); in mv_cesa_aes_op() 779 memcpy(tmpl->ctx.skcipher.iv, req->iv, AES_BLOCK_SIZE); in mv_cesa_cbc_aes_op()
|
| /linux/drivers/crypto/inside-secure/ ! |
| H A 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() 1053 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in safexcel_skcipher_send() local 1060 memcpy(input_iv, req->iv, crypto_skcipher_ivsize(skcipher)); in safexcel_skcipher_send() 1129 EIP197_REQUEST_ON_STACK(req, skcipher, EIP197_SKCIPHER_REQ_SIZE); in safexcel_skcipher_exit_inv() [all …]
|
| /linux/drivers/crypto/qce/ ! |
| H A 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()
|
| H A D | Makefile | 8 qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SKCIPHER) += skcipher.o
|