Home
last modified time | relevance | path

Searched refs:hash_mode (Results 1 - 25 of 31) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/crypto/bcm/
H A Dspu2.c80 static char *spu2_hash_mode_name(enum spu2_hash_mode hash_mode) in spu2_hash_mode_name() argument
82 if (hash_mode >= SPU2_HASH_MODE_LAST) in spu2_hash_mode_name()
84 return spu2_hash_mode_names[hash_mode]; in spu2_hash_mode_name()
196 static int spu2_hash_mode_xlate(enum hash_mode hash_mode, in spu2_hash_mode_xlate() argument
199 switch (hash_mode) { in spu2_hash_mode_xlate()
225 * @hash_mode: [in] hash mode value from software enumeration
234 spu2_hash_xlate(enum hash_alg hash_alg, enum hash_mode hash_mode, in spu2_hash_xlate() argument
240 err = spu2_hash_mode_xlate(hash_mode, spu2_mod in spu2_hash_xlate()
313 enum spu2_hash_mode hash_mode; spu2_dump_fmd_ctrl0() local
841 spu2_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, u32 chunksize, u16 hash_block_size) spu2_hash_pad_len() argument
[all...]
H A Dspu.h72 enum hash_mode { enum
128 enum hash_mode mode;
228 u16 spum_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode,
260 enum hash_mode auth_mode,
H A Dspu2.h180 u16 spu2_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode,
205 enum hash_alg auth_alg, enum hash_mode auth_mode,
H A Dspu.c35 u32 hash_mode; in spum_dump_msg_hdr() local
82 hash_mode = (cflags & HASH_MODE) >> HASH_MODE_SHIFT; in spum_dump_msg_hdr()
85 hash_alg, hash_mode, hash_type); in spum_dump_msg_hdr()
106 if (hash_alg && hash_mode) { in spum_dump_msg_hdr()
147 (hash_mode == HASH_MODE_XCBC)) { in spum_dump_msg_hdr()
170 if (hash_alg && (hash_mode == HASH_MODE_NONE) && in spum_dump_msg_hdr()
418 * @hash_mode: hash mode
426 u16 spum_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, in spum_hash_pad_len() argument
434 if ((hash_alg == HASH_ALG_AES) && (hash_mode in spum_hash_pad_len()
[all...]
H A Dcipher.h101 enum hash_mode mode;
367 enum hash_mode hash_mode, u32 chunksize,
394 enum hash_mode auth_mode,
/kernel/linux/linux-6.6/drivers/crypto/bcm/
H A Dspu2.c80 static char *spu2_hash_mode_name(enum spu2_hash_mode hash_mode) in spu2_hash_mode_name() argument
82 if (hash_mode >= SPU2_HASH_MODE_LAST) in spu2_hash_mode_name()
84 return spu2_hash_mode_names[hash_mode]; in spu2_hash_mode_name()
196 static int spu2_hash_mode_xlate(enum hash_mode hash_mode, in spu2_hash_mode_xlate() argument
199 switch (hash_mode) { in spu2_hash_mode_xlate()
225 * @hash_mode: [in] hash mode value from software enumeration
234 spu2_hash_xlate(enum hash_alg hash_alg, enum hash_mode hash_mode, in spu2_hash_xlate() argument
240 err = spu2_hash_mode_xlate(hash_mode, spu2_mod in spu2_hash_xlate()
313 enum spu2_hash_mode hash_mode; spu2_dump_fmd_ctrl0() local
844 spu2_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, u32 chunksize, u16 hash_block_size) spu2_hash_pad_len() argument
[all...]
H A Dspu.h73 enum hash_mode { enum
129 enum hash_mode mode;
229 u16 spum_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode,
261 enum hash_mode auth_mode,
H A Dspu2.h180 u16 spu2_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode,
205 enum hash_alg auth_alg, enum hash_mode auth_mode,
H A Dspu.c35 u32 hash_mode; in spum_dump_msg_hdr() local
82 hash_mode = (cflags & HASH_MODE) >> HASH_MODE_SHIFT; in spum_dump_msg_hdr()
85 hash_alg, hash_mode, hash_type); in spum_dump_msg_hdr()
106 if (hash_alg && hash_mode) { in spum_dump_msg_hdr()
147 (hash_mode == HASH_MODE_XCBC)) { in spum_dump_msg_hdr()
170 if (hash_alg && (hash_mode == HASH_MODE_NONE) && in spum_dump_msg_hdr()
416 * @hash_mode: hash mode
424 u16 spum_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, in spum_hash_pad_len() argument
432 if ((hash_alg == HASH_ALG_AES) && (hash_mode in spum_hash_pad_len()
[all...]
H A Dcipher.h102 enum hash_mode mode;
365 enum hash_mode hash_mode, u32 chunksize,
392 enum hash_mode auth_mode,
/kernel/linux/linux-5.10/drivers/crypto/ccree/
H A Dcc_hash.c69 int hash_mode; member
95 int hash_mode; member
151 if (ctx->hash_mode == DRV_HASH_SHA512 || in cc_init_req()
152 ctx->hash_mode == DRV_HASH_SHA384) in cc_init_req()
162 if (ctx->hash_mode != DRV_HASH_NULL) { in cc_init_req()
172 const void *larval = cc_larval_digest(dev, ctx->hash_mode); in cc_init_req()
209 if (is_hmac && ctx->hash_mode != DRV_HASH_NULL) { in cc_map_req()
351 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_fin_result()
358 cc_set_endianity(ctx->hash_mode, &desc[idx]); in cc_fin_result()
378 cc_set_endianity(ctx->hash_mode, in cc_fin_hmac()
1567 int hash_mode; global() member
[all...]
H A Dcc_aead.c297 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in hmac_setkey() local
310 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
321 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
330 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
340 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
347 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
878 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_proc_digest_desc() local
896 set_cipher_mode(&desc[idx], hash_mode); in cc_proc_digest_desc()
913 set_cipher_mode(&desc[idx], hash_mode); in cc_proc_digest_desc()
993 unsigned int hash_mode in cc_set_hmac_desc() local
1103 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? cc_proc_scheme_desc() local
[all...]
H A Dcc_hw_queue_defs.h505 * @hash_mode: specifies which hash is being handled
509 enum drv_hash_mode hash_mode) in set_hash_cipher_mode()
512 if (hash_mode == DRV_HASH_SM3) in set_hash_cipher_mode()
507 set_hash_cipher_mode(struct cc_hw_desc *pdesc, enum drv_cipher_mode cipher_mode, enum drv_hash_mode hash_mode) set_hash_cipher_mode() argument
/kernel/linux/linux-6.6/drivers/crypto/ccree/
H A Dcc_hash.c69 int hash_mode; member
95 int hash_mode; member
151 if (ctx->hash_mode == DRV_HASH_SHA512 || in cc_init_req()
152 ctx->hash_mode == DRV_HASH_SHA384) in cc_init_req()
162 if (ctx->hash_mode != DRV_HASH_NULL) { in cc_init_req()
172 const void *larval = cc_larval_digest(dev, ctx->hash_mode); in cc_init_req()
209 if (is_hmac && ctx->hash_mode != DRV_HASH_NULL) { in cc_map_req()
351 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_fin_result()
358 cc_set_endianity(ctx->hash_mode, &desc[idx]); in cc_fin_result()
378 cc_set_endianity(ctx->hash_mode, in cc_fin_hmac()
1567 int hash_mode; global() member
[all...]
H A Dcc_aead.c297 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in hmac_setkey() local
310 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
321 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
330 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
340 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
347 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
878 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_proc_digest_desc() local
896 set_cipher_mode(&desc[idx], hash_mode); in cc_proc_digest_desc()
913 set_cipher_mode(&desc[idx], hash_mode); in cc_proc_digest_desc()
993 unsigned int hash_mode in cc_set_hmac_desc() local
1103 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? cc_proc_scheme_desc() local
[all...]
H A Dcc_hw_queue_defs.h505 * @hash_mode: specifies which hash is being handled
509 enum drv_hash_mode hash_mode) in set_hash_cipher_mode()
512 if (hash_mode == DRV_HASH_SM3) in set_hash_cipher_mode()
507 set_hash_cipher_mode(struct cc_hw_desc *pdesc, enum drv_cipher_mode cipher_mode, enum drv_hash_mode hash_mode) set_hash_cipher_mode() argument
/kernel/linux/linux-5.10/net/ipv4/netfilter/
H A Dipt_CLUSTERIP.c53 enum clusterip_hashmode hash_mode; /* which hashing mode */ member
260 c->hash_mode = i->hash_mode; in clusterip_config_init()
359 switch (config->hash_mode) { in clusterip_hashfn()
377 pr_info("unknown mode %u\n", config->hash_mode); in clusterip_hashfn()
470 if (cipinfo->hash_mode != CLUSTERIP_HASHMODE_SIP && in clusterip_tg_check()
471 cipinfo->hash_mode != CLUSTERIP_HASHMODE_SIP_SPT && in clusterip_tg_check()
472 cipinfo->hash_mode != CLUSTERIP_HASHMODE_SIP_SPT_DPT) { in clusterip_tg_check()
473 pr_info("unknown mode %u\n", cipinfo->hash_mode); in clusterip_tg_check()
555 u_int32_t hash_mode; member
[all...]
/kernel/linux/linux-5.10/drivers/crypto/ux500/hash/
H A Dhash_core.c42 static int hash_mode; variable
43 module_param(hash_mode, int, 0);
44 MODULE_PARM_DESC(hash_mode, "CPU or DMA mode. CPU = 0 (default), DMA = 1");
560 if (hash_mode == HASH_MODE_DMA) { in ux500_hash_init()
890 if (hash_mode != HASH_MODE_DMA || !req_ctx->dma_mode) { in hash_dma_final()
1138 int hash_mode = HASH_OPER_MODE_HASH; in hash_resume_state() local
1165 hash_mode = HASH_OPER_MODE_HMAC; in hash_resume_state()
1167 hash_mode = HASH_OPER_MODE_HASH; in hash_resume_state()
1170 if ((count >= 36) && (hash_mode == HASH_OPER_MODE_HASH)) in hash_resume_state()
1196 int hash_mode in hash_save_state() local
[all...]
H A Dhash_alg.h133 enum hash_mode { enum
/kernel/linux/linux-5.10/include/uapi/linux/netfilter_ipv4/
H A Dipt_CLUSTERIP.h31 __u32 hash_mode; member
/kernel/linux/linux-6.6/include/uapi/linux/netfilter_ipv4/
H A Dipt_CLUSTERIP.h31 __u32 hash_mode; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/netfilter_ipv4/
H A Dipt_CLUSTERIP.h38 __u32 hash_mode; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter_ipv4/
H A Dipt_CLUSTERIP.h38 __u32 hash_mode; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter_ipv4/
H A Dipt_CLUSTERIP.h26 __u32 hash_mode; member
/kernel/linux/linux-6.6/drivers/crypto/starfive/
H A Djh7110-hash.c182 rctx->csr.hash.mode = ctx->hash_mode; in starfive_hash_xmit()
429 ctx->hash_mode = mode; in starfive_hash_init_tfm()
510 if (ctx->hash_mode == STARFIVE_HASH_SM3) in starfive_hash_setkey()

Completed in 37 milliseconds

12