Home
last modified time | relevance | path

Searched refs:cipher_alg (Results 1 – 20 of 20) sorted by relevance

/linux/crypto/
A Decb.c102 struct crypto_alg *cipher_alg; in lskcipher_alloc_instance_simple2() local
119 cipher_alg = crypto_spawn_cipher_alg(spawn); in lskcipher_alloc_instance_simple2()
122 cipher_alg); in lskcipher_alloc_instance_simple2()
174 struct lskcipher_alg *cipher_alg; in crypto_ecb_create() local
185 cipher_alg = crypto_lskcipher_spawn_alg(spawn); in crypto_ecb_create()
189 if (cipher_alg->co.ivsize) in crypto_ecb_create()
193 inst->alg.setkey = cipher_alg->setkey; in crypto_ecb_create()
194 inst->alg.encrypt = cipher_alg->encrypt; in crypto_ecb_create()
195 inst->alg.decrypt = cipher_alg->decrypt; in crypto_ecb_create()
196 inst->alg.init = cipher_alg->init; in crypto_ecb_create()
[all …]
A Dlskcipher.c489 struct lskcipher_alg *cipher_alg; in lskcipher_alloc_instance_simple() local
525 cipher_alg = crypto_lskcipher_spawn_alg(spawn); in lskcipher_alloc_instance_simple()
528 &cipher_alg->co.base); in lskcipher_alloc_instance_simple()
536 len = strscpy(ecb_name, &cipher_alg->co.base.cra_name[4], in lskcipher_alloc_instance_simple()
561 if ((cipher_alg->co.base.cra_flags & CRYPTO_ALG_INSTANCE)) in lskcipher_alloc_instance_simple()
566 if (cipher_alg->co.ivsize) in lskcipher_alloc_instance_simple()
574 inst->alg.co.base.cra_priority = cipher_alg->co.base.cra_priority; in lskcipher_alloc_instance_simple()
575 inst->alg.co.min_keysize = cipher_alg->co.min_keysize; in lskcipher_alloc_instance_simple()
576 inst->alg.co.max_keysize = cipher_alg->co.max_keysize; in lskcipher_alloc_instance_simple()
577 inst->alg.co.ivsize = cipher_alg->co.base.cra_blocksize; in lskcipher_alloc_instance_simple()
[all …]
A Dcipher.c23 struct cipher_alg *cia = crypto_cipher_alg(tfm); in setkey_unaligned()
45 struct cipher_alg *cia = crypto_cipher_alg(tfm); in crypto_cipher_setkey()
62 struct cipher_alg *cia = crypto_cipher_alg(tfm); in cipher_crypt_one()
A Dskcipher.c1039 struct crypto_alg *cipher_alg; in skcipher_alloc_instance_simple() local
1055 cipher_alg = crypto_spawn_cipher_alg(spawn); in skcipher_alloc_instance_simple()
1058 cipher_alg); in skcipher_alloc_instance_simple()
1065 inst->alg.base.cra_blocksize = cipher_alg->cra_blocksize; in skcipher_alloc_instance_simple()
1066 inst->alg.base.cra_alignmask = cipher_alg->cra_alignmask; in skcipher_alloc_instance_simple()
1067 inst->alg.base.cra_priority = cipher_alg->cra_priority; in skcipher_alloc_instance_simple()
1068 inst->alg.min_keysize = cipher_alg->cra_cipher.cia_min_keysize; in skcipher_alloc_instance_simple()
1069 inst->alg.max_keysize = cipher_alg->cra_cipher.cia_max_keysize; in skcipher_alloc_instance_simple()
1070 inst->alg.ivsize = cipher_alg->cra_blocksize; in skcipher_alloc_instance_simple()
/linux/arch/sparc/crypto/
A Dcamellia_glue.c196 static struct crypto_alg cipher_alg = { variable
270 err = crypto_register_alg(&cipher_alg); in camellia_sparc64_mod_init()
276 crypto_unregister_alg(&cipher_alg); in camellia_sparc64_mod_init()
282 crypto_unregister_alg(&cipher_alg); in camellia_sparc64_mod_fini()
A Daes_glue.c362 static struct crypto_alg cipher_alg = { variable
451 err = crypto_register_alg(&cipher_alg); in aes_sparc64_mod_init()
457 crypto_unregister_alg(&cipher_alg); in aes_sparc64_mod_init()
463 crypto_unregister_alg(&cipher_alg); in aes_sparc64_mod_fini()
/linux/drivers/crypto/bcm/
A Dspu.c31 u32 cipher_alg; in spum_dump_msg_hdr() local
76 cipher_alg = (cflags & CIPHER_ALG) >> CIPHER_ALG_SHIFT; in spum_dump_msg_hdr()
80 cipher_alg, cipher_mode, cipher_type); in spum_dump_msg_hdr()
213 if (cipher_alg) { in spum_dump_msg_hdr()
216 switch (cipher_alg) { in spum_dump_msg_hdr()
330 u32 spum_ns2_ctx_max_payload(enum spu_cipher_alg cipher_alg, in spum_ns2_ctx_max_payload() argument
359 u32 spum_nsp_ctx_max_payload(enum spu_cipher_alg cipher_alg, in spum_nsp_ctx_max_payload() argument
A Dspu.h221 u32 spum_ns2_ctx_max_payload(enum spu_cipher_alg cipher_alg,
224 u32 spum_nsp_ctx_max_payload(enum spu_cipher_alg cipher_alg,
A Dspu2.c136 static int spu2_cipher_xlate(enum spu_cipher_alg cipher_alg, in spu2_cipher_xlate() argument
150 switch (cipher_alg) { in spu2_cipher_xlate()
188 cipher_alg, cipher_type); in spu2_cipher_xlate()
783 u32 spu2_ctx_max_payload(enum spu_cipher_alg cipher_alg, in spu2_ctx_max_payload() argument
787 if ((cipher_alg == CIPHER_ALG_AES) && in spu2_ctx_max_payload()
A Dspu2.h175 u32 spu2_ctx_max_payload(enum spu_cipher_alg cipher_alg,
A Dcipher.c4088 struct iproc_alg_s *cipher_alg) in generic_cra_init() argument
4096 ctx->alg = cipher_alg; in generic_cra_init()
4097 ctx->cipher = cipher_alg->cipher_info; in generic_cra_init()
4098 ctx->auth = cipher_alg->auth_info; in generic_cra_init()
4099 ctx->auth_first = cipher_alg->auth_first; in generic_cra_init()
4118 struct iproc_alg_s *cipher_alg; in skcipher_init_tfm() local
4124 cipher_alg = container_of(alg, struct iproc_alg_s, alg.skcipher); in skcipher_init_tfm()
4125 return generic_cra_init(tfm, cipher_alg); in skcipher_init_tfm()
4132 struct iproc_alg_s *cipher_alg; in ahash_cra_init() local
4137 err = generic_cra_init(tfm, cipher_alg); in ahash_cra_init()
[all …]
A Dcipher.h358 u32 (*spu_ctx_max_payload)(enum spu_cipher_alg cipher_alg,
/linux/include/linux/
A Dcrypto.h233 struct cipher_alg { struct
361 struct cipher_alg cipher;
/linux/Documentation/crypto/
A Dapi-skcipher.rst8 :functions: crypto_alg cipher_alg compress_alg
A Ddevel-algos.rst64 See struct cipher_alg below.
66 Cipher Definition With struct cipher_alg
69 Struct cipher_alg defines a single block cipher.
/linux/include/crypto/internal/
A Dcipher.h215 static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) in crypto_cipher_alg()
/linux/drivers/crypto/hisilicon/sec/
A Dsec_drv.h243 enum sec_cipher_alg cipher_alg; member
A Dsec_algs.c150 ctx->cipher_alg = alg; in sec_alg_skcipher_init_context()
153 ctx->cipher_alg); in sec_alg_skcipher_init_context()
454 switch (ctx->cipher_alg) { in sec_skcipher_alg_callback()
/linux/drivers/crypto/amcc/
A Dcrypto4xx_sa.h99 u32 cipher_alg:4; member
A Dcrypto4xx_alg.c42 sa->sa_command_0.bf.cipher_alg = c; in set_dynamic_sa_command_0()

Completed in 49 milliseconds