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

12345678

/linux-master/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);
H A Dcommon.h13 #include <crypto/internal/skcipher.h>
90 struct skcipher_alg skcipher; member in union:qce_alg_template::__anon227
/linux-master/crypto/
H A Dskcipher.h10 #include <crypto/internal/skcipher.h>
H A Dlskcipher.c18 #include "skcipher.h"
204 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); local
205 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher);
214 ivs = PTR_ALIGN(ivs, crypto_skcipher_alignmask(skcipher) + 1);
243 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); local
244 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher);
252 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); local
253 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher);
261 struct crypto_lskcipher *skcipher = __crypto_lskcipher_cast(tfm); local
262 struct lskcipher_alg *alg = crypto_lskcipher_alg(skcipher);
269 struct crypto_lskcipher *skcipher = __crypto_lskcipher_cast(tfm); local
283 struct lskcipher_instance *skcipher = local
292 struct lskcipher_alg *skcipher = __crypto_lskcipher_alg(alg); local
306 struct lskcipher_alg *skcipher = __crypto_lskcipher_alg(alg); local
326 struct lskcipher_alg *skcipher = __crypto_lskcipher_alg(alg); local
375 struct crypto_lskcipher *skcipher; 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 in union:essiv_tfm_ctx::__anon129
73 crypto_skcipher_clear_flags(tctx->u.skcipher, CRYPTO_TFM_REQ_MASK);
74 crypto_skcipher_set_flags(tctx->u.skcipher,
77 err = crypto_skcipher_setkey(tctx->u.skcipher, key, keylen);
149 skcipher_request_set_tfm(subreq, tctx->u.skcipher);
302 struct crypto_skcipher *skcipher; local
[all...]
H A Dskcipher.c14 #include <crypto/internal/skcipher.h>
27 #include "skcipher.h"
761 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); local
762 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher);
764 alg->exit(skcipher);
769 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); local
770 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher);
772 skcipher_set_needkey(skcipher);
775 unsigned am = crypto_skcipher_alignmask(skcipher);
779 reqsize += crypto_skcipher_ivsize(skcipher);
805 struct skcipher_instance *skcipher = local
815 struct skcipher_alg *skcipher = __crypto_skcipher_alg(alg); local
832 struct skcipher_alg *skcipher = __crypto_skcipher_alg(alg); local
852 struct skcipher_alg *skcipher = __crypto_skcipher_alg(alg); local
[all...]
/linux-master/include/crypto/
H A Dxts.h6 #include <crypto/internal/skcipher.h>
H A Dctr.h12 #include <crypto/internal/skcipher.h>
/linux-master/drivers/crypto/
H A Dgeode-aes.h52 struct crypto_skcipher *skcipher; member in union:geode_aes_tfm_ctx::__anon262
H A Dgeode-aes.c14 #include <crypto/internal/skcipher.h>
155 crypto_skcipher_clear_flags(tctx->fallback.skcipher,
157 crypto_skcipher_set_flags(tctx->fallback.skcipher,
160 return crypto_skcipher_setkey(tctx->fallback.skcipher, key, len);
243 tctx->fallback.skcipher =
246 if (IS_ERR(tctx->fallback.skcipher)) {
248 return PTR_ERR(tctx->fallback.skcipher);
252 crypto_skcipher_reqsize(tctx->fallback.skcipher));
260 crypto_free_skcipher(tctx->fallback.skcipher);
275 skcipher_request_set_tfm(subreq, tctx->fallback.skcipher);
[all...]
H A Dn2_core.c28 #include <crypto/internal/skcipher.h>
713 struct skcipher_alg skcipher; member in struct:n2_skcipher_alg
720 return container_of(alg, struct n2_skcipher_alg, skcipher);
727 static int n2_aes_setkey(struct crypto_skcipher *skcipher, const u8 *key, argument
730 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher);
732 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher);
755 static int n2_des_setkey(struct crypto_skcipher *skcipher, const u8 *key, argument
758 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher);
760 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher);
763 err = verify_skcipher_des_key(skcipher, ke
774 n2_3des_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) argument
801 __n2_crypt_chunk(struct crypto_skcipher *skcipher, struct n2_crypto_chunk *cp, struct spu_queue *qp, bool encrypt) argument
1092 struct skcipher_alg skcipher; member in struct:n2_skcipher_tmpl
1279 struct n2_skcipher_alg *skcipher, *skcipher_tmp; local
[all...]
/linux-master/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"
118 pr_info("skcipher decrypt returned with result"
129 struct crypto_skcipher *skcipher = NULL; local
135 skcipher = crypto_alloc_skcipher(name, 0, 0);
136 if (IS_ERR(skcipher)) {
137 pr_info("could not allocate skcipher %s handle\n", name);
138 return PTR_ERR(skcipher);
[all...]
/linux-master/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,
126 mc_algs[i].alg.skcipher.base.base.cra_name,
201 err = crypto_engine_register_skcipher(&mc_algs[i].alg.skcipher);
204 mc_algs[i].alg.skcipher.base.base.cra_name);
224 crypto_engine_unregister_skcipher(&mc_algs[i].alg.skcipher);
[all...]
H A Damlogic-gxl.h9 #include <crypto/skcipher.h>
105 * struct meson_cipher_req_ctx - context for a skcipher request
116 * struct meson_cipher_tfm_ctx - context for a skcipher TFM
144 struct skcipher_engine_alg skcipher; member in union:meson_alg_template::__anon206
/linux-master/include/crypto/internal/
H A Dskcipher.h13 #include <crypto/skcipher.h>
105 struct crypto_skcipher *skcipher)
107 return container_of(crypto_skcipher_alg(skcipher),
182 struct crypto_skcipher *skcipher, unsigned int reqsize)
184 skcipher->reqsize = reqsize;
188 struct crypto_skcipher *skcipher, unsigned int reqsize)
191 skcipher->reqsize = reqsize;
104 skcipher_alg_instance( struct crypto_skcipher *skcipher) argument
181 crypto_skcipher_set_reqsize( struct crypto_skcipher *skcipher, unsigned int reqsize) argument
187 crypto_skcipher_set_reqsize_dma( struct crypto_skcipher *skcipher, unsigned int reqsize) argument
H A Dchacha.h7 #include <crypto/internal/skcipher.h>
/linux-master/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);
74 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base);
314 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base);
439 struct rk_crypto_tmp *algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher.base);
464 .alg.skcipher.base = {
482 .alg.skcipher.op = {
489 .alg.skcipher.base = {
508 .alg.skcipher.op = {
515 .alg.skcipher
[all...]
H A Drk3288_crypto.c15 #include <crypto/internal/skcipher.h>
213 rk_cipher_algs[i]->alg.skcipher.base.base.cra_driver_name,
214 rk_cipher_algs[i]->alg.skcipher.base.base.cra_name,
262 rk_cipher_algs[i]->alg.skcipher.base.base.cra_name,
263 rk_cipher_algs[i]->alg.skcipher.base.base.cra_driver_name);
264 err = crypto_engine_register_skcipher(&rk_cipher_algs[i]->alg.skcipher);
283 crypto_engine_unregister_skcipher(&rk_cipher_algs[k]->alg.skcipher);
296 crypto_engine_unregister_skcipher(&rk_cipher_algs[i]->alg.skcipher);
/linux-master/drivers/crypto/aspeed/
H A Daspeed-hace-crypto.c10 #include <crypto/internal/skcipher.h>
642 crypto_alg = container_of(alg, struct aspeed_hace_alg, alg.skcipher.base);
673 .alg.skcipher.base = {
694 .alg.skcipher.op = {
699 .alg.skcipher.base = {
721 .alg.skcipher.op = {
726 .alg.skcipher.base = {
747 .alg.skcipher.op = {
752 .alg.skcipher.base = {
774 .alg.skcipher
[all...]
/linux-master/drivers/crypto/caam/
H A Dcompat.h46 #include <crypto/skcipher.h>
47 #include <crypto/internal/skcipher.h>
H A Dcaamalg_qi.c56 struct skcipher_alg skcipher; member in struct:caam_skcipher_alg
622 static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, argument
625 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(skcipher);
627 container_of(crypto_skcipher_alg(skcipher), typeof(*alg),
628 skcipher);
630 unsigned int ivsize = crypto_skcipher_ivsize(skcipher);
641 /* skcipher encrypt, decrypt shared descriptors */
669 static int aes_skcipher_setkey(struct crypto_skcipher *skcipher, argument
678 return skcipher_setkey(skcipher, key, keylen, 0);
681 static int rfc3686_skcipher_setkey(struct crypto_skcipher *skcipher, argument
702 ctr_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) argument
722 des3_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) argument
729 des_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) argument
736 xts_skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key, unsigned int keylen) argument
909 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); local
1220 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); local
1257 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); local
1414 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); local
1423 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); local
[all...]
/linux-master/drivers/crypto/ccree/
H A Dcc_driver.h18 #include <crypto/internal/skcipher.h>
25 #include <crypto/skcipher.h>
175 struct skcipher_alg skcipher; member in union:cc_alg_template::__anon315
/linux-master/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-core.c16 #include <crypto/internal/skcipher.h>
283 .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 = {
632 ce_algs[i].alg.skcipher
[all...]
/linux-master/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 = {
489 ss_algs[i].alg.skcipher
[all...]

Completed in 242 milliseconds

12345678