Home
last modified time | relevance | path

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

/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 …]
H A DKconfig841 instantiated either as an skcipher or as an AEAD (depending on the
/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.c62 struct skcipher_alg skcipher; member
945 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
948 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
950 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey()
951 struct caam_skcipher_alg, skcipher); in skcipher_setkey()
954 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
988 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
997 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
1000 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
1018 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.h318 struct crypto_skcipher *skcipher; member
/linux/drivers/crypto/qce/
H A DMakefile8 qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SKCIPHER) += skcipher.o
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.c352 se_alg = container_of(alg, struct tegra_se_alg, alg.skcipher.base); in tegra_aes_cra_init()
521 .alg.skcipher.op.do_one_request = tegra_aes_do_one_req,
522 .alg.skcipher.base = {
543 .alg.skcipher.op.do_one_request = tegra_aes_do_one_req,
544 .alg.skcipher.base = {
564 .alg.skcipher.op.do_one_request = tegra_aes_do_one_req,
565 .alg.skcipher.base = {
586 .alg.skcipher.op.do_one_request = tegra_aes_do_one_req,
587 .alg.skcipher.base = {
2008 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
/linux/drivers/crypto/amcc/
H A Dcrypto4xx_core.c525 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto4xx_cipher_done() local
529 crypto_skcipher_ivsize(skcipher)); in crypto4xx_cipher_done()