/openbmc/linux/drivers/crypto/bcm/ |
H A D | spu.h | 73 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 D | spu2.c | 80 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() 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_mode); in spu2_hash_xlate() 242 flow_log("Invalid hash mode %d\n", hash_mode); in spu2_hash_xlate() 313 enum spu2_hash_mode hash_mode; in spu2_dump_fmd_ctrl0() local 356 hash_mode = (ctrl0 & SPU2_HASH_MODE) >> SPU2_HASH_MODE_SHIFT; in spu2_dump_fmd_ctrl0() [all …]
|
H A D | cipher.h | 102 enum hash_mode mode; 365 enum hash_mode hash_mode, u32 chunksize, 392 enum hash_mode auth_mode,
|
H A D | spu2.h | 180 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 D | spu.c | 35 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() 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 == HASH_MODE_XCBC)) { in spum_hash_pad_len() 1029 enum hash_mode auth_mode, in spum_request_pad()
|
/openbmc/linux/drivers/crypto/ccree/ |
H A D | cc_hash.c | 69 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, &desc[idx]); in cc_fin_hmac() [all …]
|
H A D | cc_aead.c | 297 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 = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_set_hmac_desc() local [all …]
|
H A D | cc_hw_queue_defs.h | 509 enum drv_hash_mode hash_mode) in set_hash_cipher_mode() argument 512 if (hash_mode == DRV_HASH_SM3) in set_hash_cipher_mode()
|
/openbmc/linux/include/uapi/linux/netfilter_ipv4/ |
H A D | ipt_CLUSTERIP.h | 31 __u32 hash_mode; member
|
/openbmc/linux/drivers/crypto/starfive/ |
H A D | jh7110-cryp.h | 157 unsigned int hash_mode; member
|
H A D | jh7110-hash.c | 182 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()
|
/openbmc/qemu/include/sysemu/ |
H A D | cryptodev.h | 81 uint8_t hash_mode; member
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-crypto.c | 150 sym_info->hash_mode = ldl_le_p(&sess_req->u.chain.para.hash_mode); in virtio_crypto_create_sym_session() 151 if (sym_info->hash_mode == VIRTIO_CRYPTO_SYM_HASH_MODE_AUTH) { in virtio_crypto_create_sym_session() 175 } else if (sym_info->hash_mode == VIRTIO_CRYPTO_SYM_HASH_MODE_PLAIN) { in virtio_crypto_create_sym_session()
|
/openbmc/linux/include/uapi/linux/ |
H A D | virtio_crypto.h | 250 __le32 hash_mode; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_crypto.h | 250 uint32_t hash_mode; member
|