Home
last modified time | relevance | path

Searched refs:hash_alg (Results 1 – 17 of 17) sorted by relevance

/linux-4.4.14/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_crypto.h66 cfs_crypto_hash_type(unsigned char hash_alg) in cfs_crypto_hash_type() argument
70 if (hash_alg < CFS_HASH_ALG_MAX) { in cfs_crypto_hash_type()
71 ht = &hash_types[hash_alg]; in cfs_crypto_hash_type()
79 static inline const char *cfs_crypto_hash_name(unsigned char hash_alg) in cfs_crypto_hash_name() argument
83 ht = cfs_crypto_hash_type(hash_alg); in cfs_crypto_hash_name()
90 static inline int cfs_crypto_hash_digestsize(unsigned char hash_alg) in cfs_crypto_hash_digestsize() argument
94 ht = cfs_crypto_hash_type(hash_alg); in cfs_crypto_hash_digestsize()
198 int cfs_crypto_hash_speed(unsigned char hash_alg);
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dsec_plain.c123 __u8 hash_alg, in plain_generate_bulk_csum() argument
126 if (hash_alg == BULK_HASH_ALG_NULL) in plain_generate_bulk_csum()
130 return sptlrpc_get_bulk_checksum(desc, hash_alg, token->pbt_hash, in plain_generate_bulk_csum()
135 __u8 hash_alg, in plain_verify_bulk_csum() argument
141 if (hash_alg == BULK_HASH_ALG_NULL) in plain_verify_bulk_csum()
145 rc = sptlrpc_get_bulk_checksum(desc, hash_alg, tokenv.pbt_hash, in plain_verify_bulk_csum()
202 phdr->ph_bulk_hash_alg = req->rq_flvr.u_bulk.hash.hash_alg; in plain_ctx_sign()
246 if (phdr->ph_bulk_hash_alg != req->rq_flvr.u_bulk.hash.hash_alg) { in plain_ctx_verify()
248 req->rq_flvr.u_bulk.hash.hash_alg); in plain_ctx_verify()
313 rc = plain_generate_bulk_csum(desc, req->rq_flvr.u_bulk.hash.hash_alg, in plain_cli_wrap_bulk()
[all …]
Dsec_config.c101 flvr->u_bulk.hash.hash_alg = BULK_HASH_ALG_ADLER32; in sptlrpc_parse_flavor()
114 flvr->u_bulk.hash.hash_alg = sptlrpc_get_hash_alg(alg); in sptlrpc_parse_flavor()
115 if (flvr->u_bulk.hash.hash_alg >= BULK_HASH_ALG_MAX) in sptlrpc_parse_flavor()
119 if (flvr->u_bulk.hash.hash_alg == BULK_HASH_ALG_NULL) in sptlrpc_parse_flavor()
Dsec_bulk.c461 const char *sptlrpc_get_hash_name(__u8 hash_alg) in sptlrpc_get_hash_name() argument
463 return cfs_crypto_hash_name(cfs_hash_alg_id[hash_alg]); in sptlrpc_get_hash_name()
Dsec.c200 sptlrpc_get_hash_name(sf->u_bulk.hash.hash_alg)); in sptlrpc_flavor2name_bulk()
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-crypto.c234 int cfs_crypto_hash_speed(unsigned char hash_alg) in cfs_crypto_hash_speed() argument
236 if (hash_alg < CFS_HASH_ALG_MAX) in cfs_crypto_hash_speed()
237 return cfs_crypto_hash_speeds[hash_alg]; in cfs_crypto_hash_speed()
/linux-4.4.14/drivers/char/tpm/
Dtpm2-cmd.c35 __be16 hash_alg; member
43 __be16 hash_alg; member
63 __be16 hash_alg; member
260 cmd.params.pcrread_in.hash_alg = cpu_to_be16(TPM2_ALG_SHA1); in tpm2_pcr_read()
312 cmd.params.pcrextend_in.hash_alg = cpu_to_be16(TPM2_ALG_SHA1); in tpm2_pcr_extend()
833 cmd.params.pcrread_in.hash_alg = cpu_to_be16(TPM2_ALG_SHA1); in tpm2_do_selftest()
/linux-4.4.14/security/keys/
Dtrusted.c35 static const char hash_alg[] = "sha1"; variable
67 pr_info("trusted_key: can't alloc %s\n", hash_alg); in TSS_sha1()
137 pr_info("trusted_key: can't alloc %s\n", hash_alg); in TSS_authhmac()
209 pr_info("trusted_key: can't alloc %s\n", hash_alg); in TSS_checkhmac1()
301 pr_info("trusted_key: can't alloc %s\n", hash_alg); in TSS_checkhmac2()
1158 hashalg = crypto_alloc_shash(hash_alg, 0, CRYPTO_ALG_ASYNC); in trusted_shash_alloc()
1161 hash_alg); in trusted_shash_alloc()
/linux-4.4.14/fs/nfs/
Dnfs4session.h60 u32 hash_alg; member
/linux-4.4.14/security/keys/encrypted-keys/
Dencrypted.c42 static const char hash_alg[] = "sha256"; variable
364 pr_info("encrypted_key: can't alloc %s\n", hash_alg); in calc_hash()
1000 hashalg = crypto_alloc_shash(hash_alg, 0, CRYPTO_ALG_ASYNC); in encrypted_shash_alloc()
1003 hash_alg); in encrypted_shash_alloc()
/linux-4.4.14/drivers/crypto/amcc/
Dcrypto4xx_sa.h103 u32 hash_alg:4; member
Dcrypto4xx_alg.c46 sa->sa_command_0.bf.hash_alg = h; in set_dynamic_sa_command_0()
Dcrypto4xx_core.c599 if (sa->sa_command_0.bf.hash_alg == SA_HASH_ALG_SHA1) { in crypto4xx_copy_digest_to_dst()
/linux-4.4.14/drivers/staging/lustre/lustre/include/
Dlustre_sec.h255 __u8 hash_alg; member
867 const char *sptlrpc_get_hash_name(__u8 hash_alg);
/linux-4.4.14/include/uapi/linux/
Dopenvswitch.h617 uint32_t hash_alg; /* One of ovs_hash_alg. */ member
/linux-4.4.14/drivers/crypto/ux500/hash/
Dhash_core.c1499 struct hash_algo_template *hash_alg; in hash_cra_init() local
1501 hash_alg = container_of(__crypto_ahash_alg(alg), in hash_cra_init()
1509 ctx->config.algorithm = hash_alg->conf.algorithm; in hash_cra_init()
1510 ctx->config.oper_mode = hash_alg->conf.oper_mode; in hash_cra_init()
1512 ctx->digestsize = hash_alg->hash.halg.digestsize; in hash_cra_init()
/linux-4.4.14/net/openvswitch/
Dflow_netlink.c2257 switch (act_hash->hash_alg) { in __ovs_nla_copy_actions()