Home
last modified time | relevance | path

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

/Linux-v5.4/crypto/
Dcipher.c22 struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher; in setkey_unaligned()
44 struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher; in setkey()
78 struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; in cipher_encrypt_unaligned()
92 struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; in cipher_decrypt_unaligned()
105 struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; in crypto_init_cipher_ops()
Dskcipher.c1174 struct crypto_alg *cipher_alg; in skcipher_alloc_instance_simple() local
1191 cipher_alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, mask); in skcipher_alloc_instance_simple()
1192 if (IS_ERR(cipher_alg)) in skcipher_alloc_instance_simple()
1193 return ERR_CAST(cipher_alg); in skcipher_alloc_instance_simple()
1203 cipher_alg); in skcipher_alloc_instance_simple()
1207 err = crypto_init_spawn(spawn, cipher_alg, in skcipher_alloc_instance_simple()
1215 inst->alg.base.cra_blocksize = cipher_alg->cra_blocksize; in skcipher_alloc_instance_simple()
1216 inst->alg.base.cra_alignmask = cipher_alg->cra_alignmask; in skcipher_alloc_instance_simple()
1217 inst->alg.base.cra_priority = cipher_alg->cra_priority; in skcipher_alloc_instance_simple()
1218 inst->alg.min_keysize = cipher_alg->cra_cipher.cia_min_keysize; in skcipher_alloc_instance_simple()
[all …]
/Linux-v5.4/drivers/crypto/bcm/
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()
336 u32 spum_ns2_ctx_max_payload(enum spu_cipher_alg cipher_alg, in spum_ns2_ctx_max_payload() argument
365 u32 spum_nsp_ctx_max_payload(enum spu_cipher_alg cipher_alg, in spum_nsp_ctx_max_payload() argument
Dspu.h220 u32 spum_ns2_ctx_max_payload(enum spu_cipher_alg cipher_alg,
223 u32 spum_nsp_ctx_max_payload(enum spu_cipher_alg cipher_alg,
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()
781 u32 spu2_ctx_max_payload(enum spu_cipher_alg cipher_alg, in spu2_ctx_max_payload() argument
785 if ((cipher_alg == CIPHER_ALG_AES) && in spu2_ctx_max_payload()
Dspu2.h175 u32 spu2_ctx_max_payload(enum spu_cipher_alg cipher_alg,
Dcipher.c4259 struct iproc_alg_s *cipher_alg) in generic_cra_init() argument
4267 ctx->alg = cipher_alg; in generic_cra_init()
4268 ctx->cipher = cipher_alg->cipher_info; in generic_cra_init()
4269 ctx->auth = cipher_alg->auth_info; in generic_cra_init()
4270 ctx->auth_first = cipher_alg->auth_first; in generic_cra_init()
4288 struct iproc_alg_s *cipher_alg; in ablkcipher_cra_init() local
4294 cipher_alg = container_of(alg, struct iproc_alg_s, alg.crypto); in ablkcipher_cra_init()
4295 return generic_cra_init(tfm, cipher_alg); in ablkcipher_cra_init()
4302 struct iproc_alg_s *cipher_alg; in ahash_cra_init() local
4304 cipher_alg = container_of(__crypto_ahash_alg(alg), struct iproc_alg_s, in ahash_cra_init()
[all …]
Dcipher.h358 u32 (*spu_ctx_max_payload)(enum spu_cipher_alg cipher_alg,
/Linux-v5.4/Documentation/crypto/
Dapi-skcipher.rst8 :functions: crypto_alg ablkcipher_alg blkcipher_alg cipher_alg compress_alg
Ddevel-algos.rst74 See struct cipher_alg below.
76 Cipher Definition With struct cipher_alg
79 Struct cipher_alg defines a single block cipher.
/Linux-v5.4/drivers/crypto/hisilicon/sec/
Dsec_drv.h243 enum sec_cipher_alg cipher_alg; member
Dsec_algs.c150 ctx->cipher_alg = alg; in sec_alg_skcipher_init_context()
153 ctx->cipher_alg); in sec_alg_skcipher_init_context()
453 switch (ctx->cipher_alg) { in sec_skcipher_alg_callback()
/Linux-v5.4/drivers/crypto/amcc/
Dcrypto4xx_sa.h99 u32 cipher_alg:4; member
Dcrypto4xx_alg.c42 sa->sa_command_0.bf.cipher_alg = c; in set_dynamic_sa_command_0()
/Linux-v5.4/include/crypto/
Dalgapi.h317 static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) in crypto_cipher_alg()
/Linux-v5.4/include/linux/
Dcrypto.h316 struct cipher_alg { struct
570 struct cipher_alg cipher;