Home
last modified time | relevance | path

Searched refs:skcipher (Results 1 - 25 of 348) sorted by relevance

12345678910>>...14

/kernel/linux/linux-5.10/crypto/
H A Dcbc.c9 #include <crypto/internal/skcipher.h>
17 struct crypto_skcipher *skcipher) in crypto_cbc_encrypt_segment()
19 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_encrypt_segment()
28 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_encrypt_segment()
45 struct crypto_skcipher *skcipher) in crypto_cbc_encrypt_inplace()
47 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_encrypt_inplace()
55 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_encrypt_inplace()
74 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_cbc_encrypt() local
82 err = crypto_cbc_encrypt_inplace(&walk, skcipher); in crypto_cbc_encrypt()
84 err = crypto_cbc_encrypt_segment(&walk, skcipher); in crypto_cbc_encrypt()
16 crypto_cbc_encrypt_segment(struct skcipher_walk *walk, struct crypto_skcipher *skcipher) crypto_cbc_encrypt_segment() argument
44 crypto_cbc_encrypt_inplace(struct skcipher_walk *walk, struct crypto_skcipher *skcipher) crypto_cbc_encrypt_inplace() argument
91 crypto_cbc_decrypt_segment(struct skcipher_walk *walk, struct crypto_skcipher *skcipher) crypto_cbc_decrypt_segment() argument
121 crypto_cbc_decrypt_inplace(struct skcipher_walk *walk, struct crypto_skcipher *skcipher) crypto_cbc_decrypt_inplace() argument
156 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); crypto_cbc_decrypt() local
[all...]
H A Dessiv.c3 * ESSIV skcipher and aead template for block encryption
6 * dm-crypt and fscrypt, which converts the initial vector for the skcipher
8 * skcipher key as encryption key. Usually, the input IV is a 64-bit sector
12 * The typical use of this template is to instantiate the skcipher
34 #include <crypto/internal/skcipher.h>
51 struct crypto_skcipher *skcipher; member
72 crypto_skcipher_clear_flags(tctx->u.skcipher, CRYPTO_TFM_REQ_MASK); in essiv_skcipher_setkey()
73 crypto_skcipher_set_flags(tctx->u.skcipher, in essiv_skcipher_setkey()
76 err = crypto_skcipher_setkey(tctx->u.skcipher, key, keylen); in essiv_skcipher_setkey()
148 skcipher_request_set_tfm(subreq, tctx->u.skcipher); in essiv_skcipher_crypt()
301 struct crypto_skcipher *skcipher; essiv_skcipher_init_tfm() local
[all...]
H A Dskcipher.c13 #include <crypto/internal/skcipher.h>
660 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_skcipher_exit_tfm() local
661 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm()
663 alg->exit(skcipher); in crypto_skcipher_exit_tfm()
668 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_skcipher_init_tfm() local
669 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_init_tfm()
671 skcipher_set_needkey(skcipher); in crypto_skcipher_init_tfm()
674 skcipher->base.exit = crypto_skcipher_exit_tfm; in crypto_skcipher_init_tfm()
677 return alg->init(skcipher); in crypto_skcipher_init_tfm()
684 struct skcipher_instance *skcipher in crypto_skcipher_free_instance() local
694 struct skcipher_alg *skcipher = container_of(alg, struct skcipher_alg, crypto_skcipher_show() local
712 struct skcipher_alg *skcipher = container_of(alg, struct skcipher_alg, crypto_skcipher_report() local
[all...]
/kernel/linux/linux-6.6/crypto/
H A Dcbc.c10 #include <crypto/internal/skcipher.h>
18 struct crypto_skcipher *skcipher) in crypto_cbc_encrypt_segment()
20 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_encrypt_segment()
29 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_encrypt_segment()
46 struct crypto_skcipher *skcipher) in crypto_cbc_encrypt_inplace()
48 unsigned int bsize = crypto_skcipher_blocksize(skcipher); in crypto_cbc_encrypt_inplace()
56 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_encrypt_inplace()
75 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_cbc_encrypt() local
83 err = crypto_cbc_encrypt_inplace(&walk, skcipher); in crypto_cbc_encrypt()
85 err = crypto_cbc_encrypt_segment(&walk, skcipher); in crypto_cbc_encrypt()
17 crypto_cbc_encrypt_segment(struct skcipher_walk *walk, struct crypto_skcipher *skcipher) crypto_cbc_encrypt_segment() argument
45 crypto_cbc_encrypt_inplace(struct skcipher_walk *walk, struct crypto_skcipher *skcipher) crypto_cbc_encrypt_inplace() argument
92 crypto_cbc_decrypt_segment(struct skcipher_walk *walk, struct crypto_skcipher *skcipher) crypto_cbc_decrypt_segment() argument
122 crypto_cbc_decrypt_inplace(struct skcipher_walk *walk, struct crypto_skcipher *skcipher) crypto_cbc_decrypt_inplace() argument
157 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); crypto_cbc_decrypt() local
[all...]
H A Dessiv.c3 * ESSIV skcipher and aead template for block encryption
6 * dm-crypt and fscrypt, which converts the initial vector for the skcipher
8 * skcipher key as encryption key. Usually, the input IV is a 64-bit sector
12 * The typical use of this template is to instantiate the skcipher
35 #include <crypto/internal/skcipher.h>
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()
302 struct crypto_skcipher *skcipher; essiv_skcipher_init_tfm() local
[all...]
H A Dskcipher.c14 #include <crypto/internal/skcipher.h>
683 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_skcipher_exit_tfm() local
684 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm()
686 alg->exit(skcipher); in crypto_skcipher_exit_tfm()
691 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_skcipher_init_tfm() local
692 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_init_tfm()
694 skcipher_set_needkey(skcipher); in crypto_skcipher_init_tfm()
697 skcipher->base.exit = crypto_skcipher_exit_tfm; in crypto_skcipher_init_tfm()
700 return alg->init(skcipher); in crypto_skcipher_init_tfm()
707 struct skcipher_instance *skcipher in crypto_skcipher_free_instance() local
717 struct skcipher_alg *skcipher = __crypto_skcipher_alg(alg); crypto_skcipher_show() local
733 struct skcipher_alg *skcipher = __crypto_skcipher_alg(alg); crypto_skcipher_report() local
753 struct skcipher_alg *skcipher = __crypto_skcipher_alg(alg); crypto_skcipher_report_stat() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/aspeed/
H A Daspeed-hace-crypto.c10 #include <crypto/internal/skcipher.h>
710 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
[all...]
/kernel/linux/linux-6.6/include/crypto/internal/
H A Dskcipher.h13 #include <crypto/skcipher.h>
84 struct crypto_skcipher *skcipher) in skcipher_alg_instance()
86 return container_of(crypto_skcipher_alg(skcipher), in skcipher_alg_instance()
128 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize()
130 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize()
134 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize_dma()
137 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize_dma()
83 skcipher_alg_instance( struct crypto_skcipher *skcipher) skcipher_alg_instance() argument
127 crypto_skcipher_set_reqsize( struct crypto_skcipher *skcipher, unsigned int reqsize) crypto_skcipher_set_reqsize() argument
133 crypto_skcipher_set_reqsize_dma( struct crypto_skcipher *skcipher, unsigned int reqsize) crypto_skcipher_set_reqsize_dma() argument
/kernel/linux/linux-6.6/drivers/crypto/amlogic/
H A Damlogic-gxl-core.c11 #include <crypto/internal/skcipher.h>
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()
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-6.6/drivers/crypto/rockchip/
H A Drk3288_crypto_skcipher.c13 #include <crypto/internal/skcipher.h>
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()
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
[all...]
/kernel/linux/linux-5.10/drivers/crypto/amlogic/
H A Damlogic-gxl-core.c18 #include <crypto/internal/skcipher.h>
50 .alg.skcipher = {
76 .alg.skcipher = {
113 mc_algs[i].alg.skcipher.base.cra_driver_name, in meson_debugfs_show()
114 mc_algs[i].alg.skcipher.base.cra_name, in meson_debugfs_show()
186 err = crypto_register_skcipher(&mc_algs[i].alg.skcipher); in meson_register_algs()
189 mc_algs[i].alg.skcipher.base.cra_name); in meson_register_algs()
209 crypto_unregister_skcipher(&mc_algs[i].alg.skcipher); in meson_unregister_algs()
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-core.c15 #include <crypto/internal/skcipher.h>
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 = {
494 ss_algs[i].alg.skcipher in sun8i_ss_debugfs_show()
[all...]
/kernel/linux/linux-5.10/include/crypto/internal/
H A Dskcipher.h12 #include <crypto/skcipher.h>
75 struct crypto_skcipher *skcipher) in skcipher_alg_instance()
77 return container_of(crypto_skcipher_alg(skcipher), in skcipher_alg_instance()
119 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize()
121 skcipher->reqsize = reqsize; in crypto_skcipher_set_reqsize()
74 skcipher_alg_instance( struct crypto_skcipher *skcipher) skcipher_alg_instance() argument
118 crypto_skcipher_set_reqsize( struct crypto_skcipher *skcipher, unsigned int reqsize) crypto_skcipher_set_reqsize() argument
/kernel/linux/linux-5.10/drivers/crypto/caam/
H A Dcaamalg_qi.c51 struct skcipher_alg skcipher; member
617 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
620 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey()
622 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey()
623 skcipher); in skcipher_setkey()
625 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
636 /* skcipher encrypt, decrypt shared descriptors */ in skcipher_setkey()
664 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
673 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
676 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
697 ctr_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) ctr_skcipher_setkey() argument
717 des3_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) des3_skcipher_setkey() argument
724 des_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) des_skcipher_setkey() argument
731 xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) xts_skcipher_setkey() argument
904 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_unmap() local
1209 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_done() local
1247 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_edesc_alloc() local
1398 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); xts_skcipher_ivsize() local
1407 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_crypt() local
[all...]
H A Dcaamalg.c98 struct skcipher_alg skcipher; member
730 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, in skcipher_setkey() argument
733 struct caam_ctx *ctx = crypto_skcipher_ctx(skcipher); in skcipher_setkey()
735 container_of(crypto_skcipher_alg(skcipher), typeof(*alg), in skcipher_setkey()
736 skcipher); in skcipher_setkey()
738 unsigned int ivsize = crypto_skcipher_ivsize(skcipher); in skcipher_setkey()
766 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, in aes_skcipher_setkey() argument
775 return skcipher_setkey(skcipher, key, keylen, 0); in aes_skcipher_setkey()
778 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, in rfc3686_skcipher_setkey() argument
796 return skcipher_setkey(skcipher, ke in rfc3686_skcipher_setkey()
799 ctr_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) ctr_skcipher_setkey() argument
819 des_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) des_skcipher_setkey() argument
826 des3_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) des3_skcipher_setkey() argument
833 xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) xts_skcipher_setkey() argument
961 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_unmap() local
1008 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_crypt_done() local
1237 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); init_skcipher_job() local
1597 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_edesc_alloc() local
1778 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); xts_skcipher_ivsize() local
1787 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_crypt() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/caam/
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()
641 /* skcipher encrypt, decrypt shared descriptors */ 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
702 ctr_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) ctr_skcipher_setkey() argument
722 des3_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) des3_skcipher_setkey() argument
729 des_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) des_skcipher_setkey() argument
736 xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) xts_skcipher_setkey() argument
909 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_unmap() local
1220 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_done() local
1257 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_edesc_alloc() local
1414 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); xts_skcipher_ivsize() local
1423 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_crypt() local
[all...]
H A Dcaamalg.c62 #include <crypto/internal/skcipher.h>
107 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
808 ctr_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) ctr_skcipher_setkey() argument
828 des_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) des_skcipher_setkey() argument
835 des3_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) des3_skcipher_setkey() argument
842 xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) xts_skcipher_setkey() argument
970 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_unmap() local
1024 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_crypt_done() local
1253 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); init_skcipher_job() local
1615 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_edesc_alloc() local
1804 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); xts_skcipher_ivsize() local
1813 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); skcipher_crypt() local
[all...]
/kernel/linux/linux-5.10/drivers/crypto/
H A Dn2_core.c26 #include <crypto/internal/skcipher.h>
711 struct skcipher_alg skcipher; member
718 return container_of(alg, struct n2_skcipher_alg, skcipher); in n2_skcipher_alg()
725 static int n2_aes_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_aes_setkey() argument
728 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_aes_setkey()
730 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_aes_setkey()
753 static int n2_des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_des_setkey() argument
756 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_des_setkey()
758 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_des_setkey()
761 err = verify_skcipher_des_key(skcipher, ke in n2_des_setkey()
772 n2_3des_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) n2_3des_setkey() argument
799 __n2_crypt_chunk(struct crypto_skcipher *skcipher, struct n2_crypto_chunk *cp, struct spu_queue *qp, bool encrypt) __n2_crypt_chunk() argument
1090 struct skcipher_alg skcipher; global() member
1302 struct n2_skcipher_alg *skcipher, *skcipher_tmp; __n2_unregister_algs() local
[all...]
H A Dgeode-aes.c13 #include <crypto/internal/skcipher.h>
154 crypto_skcipher_clear_flags(tctx->fallback.skcipher, in geode_setkey_skcipher()
156 crypto_skcipher_set_flags(tctx->fallback.skcipher, in geode_setkey_skcipher()
159 return crypto_skcipher_setkey(tctx->fallback.skcipher, key, len); in geode_setkey_skcipher()
242 tctx->fallback.skcipher = in geode_init_skcipher()
245 if (IS_ERR(tctx->fallback.skcipher)) { in geode_init_skcipher()
247 return PTR_ERR(tctx->fallback.skcipher); in geode_init_skcipher()
251 crypto_skcipher_reqsize(tctx->fallback.skcipher)); in geode_init_skcipher()
259 crypto_free_skcipher(tctx->fallback.skcipher); in geode_exit_skcipher()
274 skcipher_request_set_tfm(subreq, tctx->fallback.skcipher); in geode_skcipher_crypt()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/
H A Dn2_core.c28 #include <crypto/internal/skcipher.h>
713 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, ke in n2_des_setkey()
774 n2_3des_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) n2_3des_setkey() argument
801 __n2_crypt_chunk(struct crypto_skcipher *skcipher, struct n2_crypto_chunk *cp, struct spu_queue *qp, bool encrypt) __n2_crypt_chunk() argument
1092 struct skcipher_alg skcipher; global() member
1304 struct n2_skcipher_alg *skcipher, *skcipher_tmp; __n2_unregister_algs() local
[all...]
H A Dgeode-aes.c14 #include <crypto/internal/skcipher.h>
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()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-core.c26 #include <crypto/internal/skcipher.h>
170 .alg.skcipher = {
197 .alg.skcipher = {
223 .alg.skcipher = {
250 .alg.skcipher = {
430 ss_algs[i].alg.skcipher.base.cra_driver_name, in sun8i_ss_debugfs_show()
431 ss_algs[i].alg.skcipher.base.cra_name, in sun8i_ss_debugfs_show()
607 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs()
615 ss_algs[i].alg.skcipher.base.cra_name); in sun8i_ss_register_algs()
620 ss_algs[i].alg.skcipher in sun8i_ss_register_algs()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-core.c26 #include <crypto/internal/skcipher.h>
260 .alg.skcipher = {
287 .alg.skcipher = {
313 .alg.skcipher = {
340 .alg.skcipher = {
580 ce_algs[i].alg.skcipher.base.cra_driver_name, in sun8i_ce_debugfs_show()
581 ce_algs[i].alg.skcipher.base.cra_name, in sun8i_ce_debugfs_show()
782 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs()
790 ce_algs[i].alg.skcipher.base.cra_name); in sun8i_ce_register_algs()
795 ce_algs[i].alg.skcipher in sun8i_ce_register_algs()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/gemini/
H A Dsl3516-ce-core.c12 #include <crypto/internal/skcipher.h>
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()
[all...]

Completed in 24 milliseconds

12345678910>>...14