Home
last modified time | relevance | path

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

12

/linux/drivers/crypto/inside-secure/eip93/
H A Deip93-cipher.c54 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 …]
/linux/tools/testing/crypto/chacha20-s390/
H A Dtest-cipher.c10 #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 Drk3288_crypto_skcipher.c27 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 Drk3288_crypto.h262 struct skcipher_engine_alg skcipher; member
/linux/crypto/
H A Dessiv.c52 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/caam/
H A Dcaamalg.c110 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 Dcaamalg_qi.c56 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 Dcaamalg_qi2.c61 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/drivers/crypto/
H 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()
H A Dgeode-aes.h52 struct crypto_skcipher *skcipher; member
H A Dsa2ul.c158 struct skcipher_alg skcipher; member
845 crypto_free_skcipher(ctx->fallback.skcipher); in sa_cipher_cra_exit()
875 ctx->fallback.skcipher = child; in sa_cipher_cra_init()
889 struct crypto_skcipher *child = ctx->fallback.skcipher; in sa_cipher_setkey()
1316 skcipher_request_set_tfm(subreq, ctx->fallback.skcipher); in sa_cipher_run()
1943 .alg.skcipher = {
1966 .alg.skcipher = {
1988 .alg.skcipher = {
2011 .alg.skcipher = {
2191 alg_name = sa_algs[i].alg.skcipher.base.cra_name; in sa_register_algos()
[all …]
H A Dhifn_795x.c2154 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 Dsa2ul.h318 struct crypto_skcipher *skcipher; member
/linux/drivers/crypto/qce/
H A DMakefile8 qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SKCIPHER) += skcipher.o
H A Dskcipher.c68 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 Dcipher.h51 return container_of(alg, struct qce_alg_template, alg.skcipher); in to_cipher_tmpl()
H A Dcommon.h90 struct skcipher_alg skcipher; member
/linux/drivers/crypto/amlogic/
H A Damlogic-gxl-cipher.c68 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 Damlogic-gxl.h144 struct skcipher_engine_alg skcipher; member
/linux/drivers/crypto/gemini/
H A Dsl3516-ce-cipher.c112 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 Dsl3516-ce.h322 struct skcipher_engine_alg skcipher; member
/linux/drivers/crypto/tegra/
H A Dtegra-se-aes.c349 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/bcm/
H A Dcipher.c3517 .alg.skcipher = {
3536 .alg.skcipher = {
3555 .alg.skcipher = {
3574 .alg.skcipher = {
3593 .alg.skcipher = {
3612 .alg.skcipher = {
3631 .alg.skcipher = {
3650 .alg.skcipher = {
4112 static int skcipher_init_tfm(struct crypto_skcipher *skcipher) in skcipher_init_tfm() argument
4114 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_init_tfm()
[all …]
H A Dcipher.h108 struct skcipher_alg skcipher; member
/linux/drivers/crypto/ccree/
H A Dcc_driver.h175 struct skcipher_alg skcipher; member

12