| /linux/crypto/ |
| 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 …]
|
| H A D | Makefile | 20 crypto_skcipher-y += skcipher.o
|
| /linux/tools/testing/crypto/chacha20-s390/ |
| H A D | test-cipher.c | 10 #include <crypto/skcipher.h> 42 /* tie all skcipher structures together */ 100 /* Perform cipher operations with skcipher */ 110 pr_info("skcipher encrypt returned with result" in test_skcipher_encdec() 118 pr_info("skcipher decrypt returned with result" in test_skcipher_encdec() 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() 137 pr_info("could not allocate skcipher %s handle\n", name); in test_skcipher() 138 return PTR_ERR(skcipher); in test_skcipher() [all...] |
| /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.h | 262 struct skcipher_engine_alg skcipher; member
|
| /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 …]
|
| /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/ |
| 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()
|
| H A D | geode-aes.h | 52 struct crypto_skcipher *skcipher; member
|
| H A D | hifn_795x.c | 2154 struct skcipher_alg skcipher; member 2163 .skcipher = { 2174 .skcipher = { 2188 .skcipher = { 2199 .skcipher = { 2213 .skcipher = { 2223 .skcipher = { 2255 alg->alg = t->skcipher; in hifn_alg_alloc()
|
| H A D | sa2ul.h | 318 struct crypto_skcipher *skcipher; member
|
| /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 | Makefile | 8 qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SKCIPHER) += skcipher.o
|
| H A D | cipher.h | 51 return container_of(alg, struct qce_alg_template, alg.skcipher); in to_cipher_tmpl()
|
| H A D | common.h | 90 struct skcipher_alg skcipher; member
|
| /linux/drivers/crypto/amlogic/ |
| H A D | amlogic-gxl-cipher.c | 68 algt = container_of(alg, struct meson_alg_template, alg.skcipher.base); in meson_cipher_do_fallback() 104 algt = container_of(alg, struct meson_alg_template, alg.skcipher.base); in meson_cipher() 320 algt = container_of(alg, struct meson_alg_template, alg.skcipher.base); in meson_cipher_init()
|
| H A D | amlogic-gxl.h | 144 struct skcipher_engine_alg skcipher; member
|
| /linux/drivers/crypto/gemini/ |
| H A D | sl3516-ce-cipher.c | 112 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher.base); in sl3516_ce_cipher_fallback() 143 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher.base); in sl3516_ce_cipher() 325 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher.base); in sl3516_ce_cipher_init()
|
| H A D | sl3516-ce.h | 322 struct skcipher_engine_alg skcipher; member
|
| /linux/drivers/crypto/tegra/ |
| H A D | tegra-se-aes.c | 349 se_alg = container_of(alg, struct tegra_se_alg, alg.skcipher.base); in tegra_aes_cra_init() 518 .alg.skcipher.op.do_one_request = tegra_aes_do_one_req, 519 .alg.skcipher.base = { 540 .alg.skcipher.op.do_one_request = tegra_aes_do_one_req, 541 .alg.skcipher.base = { 561 .alg.skcipher.op.do_one_request = tegra_aes_do_one_req, 562 .alg.skcipher.base = { 583 .alg.skcipher.op.do_one_request = tegra_aes_do_one_req, 584 .alg.skcipher.base = { 1996 sk_alg = &tegra_aes_algs[i].alg.skcipher; in tegra_init_aes() [all …]
|
| /linux/drivers/crypto/ccree/ |
| H A D | cc_driver.h | 175 struct skcipher_alg skcipher; member
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss.h | 274 struct skcipher_engine_alg skcipher; member
|
| /linux/drivers/crypto/bcm/ |
| H A D | cipher.h | 108 struct skcipher_alg skcipher; member
|