Home
last modified time | relevance | path

Searched refs:hash_mode (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/drivers/crypto/bcm/
Dspu.h83 enum hash_mode { enum
139 enum hash_mode mode;
239 u16 spum_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode,
272 enum hash_mode auth_mode,
Dspu2.c91 static char *spu2_hash_mode_name(enum spu2_hash_mode hash_mode) in spu2_hash_mode_name() argument
93 if (hash_mode >= SPU2_HASH_MODE_LAST) in spu2_hash_mode_name()
95 return spu2_hash_mode_names[hash_mode]; in spu2_hash_mode_name()
207 static int spu2_hash_mode_xlate(enum hash_mode hash_mode, in spu2_hash_mode_xlate() argument
210 switch (hash_mode) { in spu2_hash_mode_xlate()
245 spu2_hash_xlate(enum hash_alg hash_alg, enum hash_mode hash_mode, in spu2_hash_xlate() argument
251 err = spu2_hash_mode_xlate(hash_mode, spu2_mode); in spu2_hash_xlate()
253 flow_log("Invalid hash mode %d\n", hash_mode); in spu2_hash_xlate()
324 enum spu2_hash_mode hash_mode; in spu2_dump_fmd_ctrl0() local
367 hash_mode = (ctrl0 & SPU2_HASH_MODE) >> SPU2_HASH_MODE_SHIFT; in spu2_dump_fmd_ctrl0()
[all …]
Dspu2.h191 u16 spu2_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode,
217 enum hash_alg auth_alg, enum hash_mode auth_mode,
Dcipher.h112 enum hash_mode mode;
378 enum hash_mode hash_mode, u32 chunksize,
406 enum hash_mode auth_mode,
Dspu.c49 u32 hash_mode; in spum_dump_msg_hdr() local
96 hash_mode = (cflags & HASH_MODE) >> HASH_MODE_SHIFT; in spum_dump_msg_hdr()
99 hash_alg, hash_mode, hash_type); in spum_dump_msg_hdr()
120 if (hash_alg && hash_mode) { in spum_dump_msg_hdr()
161 (hash_mode == HASH_MODE_XCBC)) { in spum_dump_msg_hdr()
184 if (hash_alg && (hash_mode == HASH_MODE_NONE) && in spum_dump_msg_hdr()
444 u16 spum_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, in spum_hash_pad_len() argument
452 if ((hash_alg == HASH_ALG_AES) && (hash_mode == HASH_MODE_XCBC)) { in spum_hash_pad_len()
1066 enum hash_mode auth_mode, in spum_request_pad()
/Linux-v4.19/net/ipv4/netfilter/
Dipt_CLUSTERIP.c57 enum clusterip_hashmode hash_mode; /* which hashing mode */ member
232 c->hash_mode = i->hash_mode; in clusterip_config_init()
335 switch (config->hash_mode) { in clusterip_hashfn()
353 pr_info("unknown mode %u\n", config->hash_mode); in clusterip_hashfn()
446 if (cipinfo->hash_mode != CLUSTERIP_HASHMODE_SIP && in clusterip_tg_check()
447 cipinfo->hash_mode != CLUSTERIP_HASHMODE_SIP_SPT && in clusterip_tg_check()
448 cipinfo->hash_mode != CLUSTERIP_HASHMODE_SIP_SPT_DPT) { in clusterip_tg_check()
449 pr_info("unknown mode %u\n", cipinfo->hash_mode); in clusterip_tg_check()
542 u_int32_t hash_mode; member
/Linux-v4.19/drivers/crypto/ccree/
Dcc_hash.c57 int hash_mode; member
82 int hash_mode; member
137 if (ctx->hash_mode == DRV_HASH_SHA512 || in cc_init_req()
138 ctx->hash_mode == DRV_HASH_SHA384) in cc_init_req()
147 if (ctx->hash_mode != DRV_HASH_NULL) { in cc_init_req()
157 const void *larval = cc_larval_digest(dev, ctx->hash_mode); in cc_init_req()
194 if (is_hmac && ctx->hash_mode != DRV_HASH_NULL) { in cc_map_req()
332 cc_set_endianity(ctx->hash_mode, &desc[idx]); in cc_fin_result()
352 cc_set_endianity(ctx->hash_mode, &desc[idx]); in cc_fin_hmac()
369 cc_digest_len_addr(ctx->drvdata, ctx->hash_mode), in cc_fin_hmac()
[all …]
Dcc_aead.c305 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in hmac_setkey() local
318 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
329 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
338 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
348 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
355 set_cipher_mode(&desc[idx], hash_mode); in hmac_setkey()
869 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_proc_digest_desc() local
887 set_cipher_mode(&desc[idx], hash_mode); in cc_proc_digest_desc()
904 set_cipher_mode(&desc[idx], hash_mode); in cc_proc_digest_desc()
984 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_set_hmac_desc() local
[all …]
/Linux-v4.19/drivers/crypto/ux500/hash/
Dhash_core.c41 static int hash_mode; variable
42 module_param(hash_mode, int, 0);
43 MODULE_PARM_DESC(hash_mode, "CPU or DMA mode. CPU = 0 (default), DMA = 1");
560 if (hash_mode == HASH_MODE_DMA) { in hash_init()
889 if (hash_mode != HASH_MODE_DMA || !req_ctx->dma_mode) { in hash_dma_final()
1129 int hash_mode = HASH_OPER_MODE_HASH; in hash_resume_state() local
1156 hash_mode = HASH_OPER_MODE_HMAC; in hash_resume_state()
1158 hash_mode = HASH_OPER_MODE_HASH; in hash_resume_state()
1161 if ((count >= 36) && (hash_mode == HASH_OPER_MODE_HASH)) in hash_resume_state()
1187 int hash_mode = HASH_OPER_MODE_HASH; in hash_save_state() local
[all …]
Dhash_alg.h133 enum hash_mode { enum
/Linux-v4.19/include/uapi/linux/netfilter_ipv4/
Dipt_CLUSTERIP.h31 __u32 hash_mode; member
/Linux-v4.19/include/uapi/linux/
Dvirtio_crypto.h193 __le32 hash_mode; member