Home
last modified time | relevance | path

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

12

/drivers/crypto/aspeed/
Daspeed-hace-crypto.c710 crypto_alg = container_of(alg, struct aspeed_hace_alg, alg.skcipher.base); in aspeed_crypto_cra_init()
741 .alg.skcipher.base = {
762 .alg.skcipher.op = {
767 .alg.skcipher.base = {
789 .alg.skcipher.op = {
794 .alg.skcipher.base = {
816 .alg.skcipher.op = {
821 .alg.skcipher.base = {
843 .alg.skcipher.op = {
848 .alg.skcipher.base = {
[all …]
/drivers/crypto/rockchip/
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()
439 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base); in rk_cipher_tfm_init()
464 .alg.skcipher.base = {
482 .alg.skcipher.op = {
489 .alg.skcipher.base = {
508 .alg.skcipher.op = {
515 .alg.skcipher.base = {
533 .alg.skcipher.op = {
[all …]
Drk3288_crypto.c213 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()
/drivers/crypto/amlogic/
Damlogic-gxl-core.c52 .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()
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()
/drivers/crypto/caam/
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 …]
Dcaamalg.c107 struct skcipher_engine_alg skcipher; member
739 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
742 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
744 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey()
745 skcipher.base); in skcipher_setkey()
747 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
775 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
784 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
787 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
805 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey()
[all …]
Dcaamalg_qi2.c60 struct skcipher_alg skcipher; member
943 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
946 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher); in skcipher_setkey()
948 container_of(crypto_skcipher_alg(skcipher), in skcipher_setkey()
949 struct caam_skcipher_alg, skcipher); in skcipher_setkey()
952 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
986 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
995 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
998 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
1016 return skcipher_setkey(skcipher, key, keylen, ctx1_iv_off); in rfc3686_skcipher_setkey()
[all …]
/drivers/crypto/
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()
Dn2_core.c713 struct skcipher_alg skcipher; member
720 return container_of(alg, struct n2_skcipher_alg, skcipher); in n2_skcipher_alg()
727 static int n2_aes_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_aes_setkey() argument
730 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_aes_setkey()
732 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_aes_setkey()
755 static int n2_des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_des_setkey() argument
758 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_des_setkey()
760 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_des_setkey()
763 err = verify_skcipher_des_key(skcipher, key); in n2_des_setkey()
774 static int n2_3des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_3des_setkey() argument
[all …]
Dhifn_795x.c2232 struct skcipher_alg skcipher; member
2241 .skcipher = {
2251 .skcipher = {
2261 .skcipher = {
2272 .skcipher = {
2286 .skcipher = {
2296 .skcipher = {
2306 .skcipher = {
2317 .skcipher = {
2331 .skcipher = {
[all …]
Dtalitos.c2256 struct skcipher_alg skcipher; member
2723 .alg.skcipher = {
2737 .alg.skcipher = {
2753 .alg.skcipher = {
2769 .alg.skcipher = {
2785 .alg.skcipher = {
2799 .alg.skcipher = {
2815 .alg.skcipher = {
2830 .alg.skcipher = {
3088 algt.alg.skcipher); in talitos_cra_init_skcipher()
[all …]
Dgeode-aes.h52 struct crypto_skcipher *skcipher; member
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()
1974 .alg.skcipher = {
1997 .alg.skcipher = {
2019 .alg.skcipher = {
2042 .alg.skcipher = {
2222 alg_name = sa_algs[i].alg.skcipher.base.cra_name; in sa_register_algos()
[all …]
/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-core.c172 .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 = {
494 ss_algs[i].alg.skcipher.base.base.cra_driver_name, in sun8i_ss_debugfs_show()
495 ss_algs[i].alg.skcipher.base.base.cra_name, in sun8i_ss_debugfs_show()
[all …]
Dsun8i-ss-cipher.c27 …struct sun8i_ss_alg_template *algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher.… in sun8i_ss_need_fallback()
101 alg.skcipher.base); in sun8i_ss_cipher_fallback()
201 algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher.base); in sun8i_ss_cipher()
398 algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher.base); in sun8i_ss_cipher_init()
/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-core.c283 .alg.skcipher.base = {
305 .alg.skcipher.op = {
313 .alg.skcipher.base = {
334 .alg.skcipher.op = {
342 .alg.skcipher.base = {
364 .alg.skcipher.op = {
372 .alg.skcipher.base = {
393 .alg.skcipher.op = {
638 ce_algs[i].alg.skcipher.base.base.cra_driver_name, in sun8i_ce_debugfs_show()
639 ce_algs[i].alg.skcipher.base.base.cra_name, in sun8i_ce_debugfs_show()
[all …]
Dsun8i-ce-cipher.c32 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher.base); in sun8i_ce_cipher_need_fallback()
101 alg.skcipher.base); in sun8i_ce_cipher_fallback()
141 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher.base); in sun8i_ce_cipher_prepare()
424 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher.base); in sun8i_ce_cipher_init()
/drivers/crypto/gemini/
Dsl3516-ce-core.c222 .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()
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()
/drivers/crypto/marvell/cesa/
Dcipher.c222 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()
/drivers/crypto/inside-secure/
Dsafexcel_cipher.c616 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 …]
/drivers/crypto/qce/
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()
DMakefile8 qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SKCIPHER) += skcipher.o
Dcipher.h51 return container_of(alg, struct qce_alg_template, alg.skcipher); in to_cipher_tmpl()

12