/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/ |
H A D | libcfs_crypto.h | 66 cfs_crypto_hash_type(unsigned char hash_alg) cfs_crypto_hash_type() argument 70 if (hash_alg < CFS_HASH_ALG_MAX) { cfs_crypto_hash_type() 71 ht = &hash_types[hash_alg]; cfs_crypto_hash_type() 79 static inline const char *cfs_crypto_hash_name(unsigned char hash_alg) cfs_crypto_hash_name() argument 83 ht = cfs_crypto_hash_type(hash_alg); cfs_crypto_hash_name() 90 static inline int cfs_crypto_hash_digestsize(unsigned char hash_alg) cfs_crypto_hash_digestsize() argument 94 ht = cfs_crypto_hash_type(hash_alg); cfs_crypto_hash_digestsize() 198 int cfs_crypto_hash_speed(unsigned char hash_alg);
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | sec_plain.c | 123 __u8 hash_alg, plain_generate_bulk_csum() 126 if (hash_alg == BULK_HASH_ALG_NULL) plain_generate_bulk_csum() 130 return sptlrpc_get_bulk_checksum(desc, hash_alg, token->pbt_hash, plain_generate_bulk_csum() 135 __u8 hash_alg, plain_verify_bulk_csum() 141 if (hash_alg == BULK_HASH_ALG_NULL) plain_verify_bulk_csum() 145 rc = sptlrpc_get_bulk_checksum(desc, hash_alg, tokenv.pbt_hash, plain_verify_bulk_csum() 202 phdr->ph_bulk_hash_alg = req->rq_flvr.u_bulk.hash.hash_alg; plain_ctx_sign() 246 if (phdr->ph_bulk_hash_alg != req->rq_flvr.u_bulk.hash.hash_alg) { plain_ctx_verify() 248 req->rq_flvr.u_bulk.hash.hash_alg); plain_ctx_verify() 313 rc = plain_generate_bulk_csum(desc, req->rq_flvr.u_bulk.hash.hash_alg, plain_cli_wrap_bulk() 323 req->rq_flvr.u_bulk.hash.hash_alg != BULK_HASH_ALG_NULL) plain_cli_wrap_bulk() 362 rc = plain_verify_bulk_csum(desc, req->rq_flvr.u_bulk.hash.hash_alg, plain_cli_unwrap_bulk() 752 req->rq_flvr.u_bulk.hash.hash_alg = phdr->ph_bulk_hash_alg; plain_accept() 855 phdr->ph_bulk_hash_alg = req->rq_flvr.u_bulk.hash.hash_alg; plain_authorize() 904 rc = plain_verify_bulk_csum(desc, req->rq_flvr.u_bulk.hash.hash_alg, plain_svc_unwrap_bulk() 938 rc = plain_generate_bulk_csum(desc, req->rq_flvr.u_bulk.hash.hash_alg, plain_svc_wrap_bulk() 122 plain_generate_bulk_csum(struct ptlrpc_bulk_desc *desc, __u8 hash_alg, struct plain_bulk_token *token) plain_generate_bulk_csum() argument 134 plain_verify_bulk_csum(struct ptlrpc_bulk_desc *desc, __u8 hash_alg, struct plain_bulk_token *tokenr) plain_verify_bulk_csum() argument
|
H A D | sec_config.c | 122 flvr->u_bulk.hash.hash_alg = BULK_HASH_ALG_ADLER32; sptlrpc_parse_flavor() 125 * format: plain-hash:<hash_alg> sptlrpc_parse_flavor() 135 flvr->u_bulk.hash.hash_alg = sptlrpc_get_hash_alg(alg); sptlrpc_parse_flavor() 136 if (flvr->u_bulk.hash.hash_alg >= BULK_HASH_ALG_MAX) sptlrpc_parse_flavor() 140 if (flvr->u_bulk.hash.hash_alg == BULK_HASH_ALG_NULL) sptlrpc_parse_flavor()
|
H A D | sec_bulk.c | 794 const char *sptlrpc_get_hash_name(__u8 hash_alg) sptlrpc_get_hash_name() argument 796 return cfs_crypto_hash_name(cfs_hash_alg_id[hash_alg]); sptlrpc_get_hash_name()
|
H A D | sec.c | 200 sptlrpc_get_hash_name(sf->u_bulk.hash.hash_alg)); sptlrpc_flavor2name_bulk()
|
/linux-4.1.27/drivers/char/tpm/ |
H A D | tpm2-cmd.c | 30 __be16 hash_alg; member in struct:tpm2_pcr_read_in 38 __be16 hash_alg; member in struct:tpm2_pcr_read_out 58 __be16 hash_alg; member in struct:tpm2_pcr_extend_in 255 cmd.params.pcrread_in.hash_alg = cpu_to_be16(TPM2_ALG_SHA1); tpm2_pcr_read() 307 cmd.params.pcrextend_in.hash_alg = cpu_to_be16(TPM2_ALG_SHA1); tpm2_pcr_extend() 580 cmd.params.pcrread_in.hash_alg = cpu_to_be16(TPM2_ALG_SHA1); tpm2_do_selftest()
|
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/ |
H A D | linux-crypto.c | 236 int cfs_crypto_hash_speed(unsigned char hash_alg) cfs_crypto_hash_speed() argument 238 if (hash_alg < CFS_HASH_ALG_MAX) cfs_crypto_hash_speed() 239 return cfs_crypto_hash_speeds[hash_alg]; cfs_crypto_hash_speed()
|
/linux-4.1.27/fs/nfs/ |
H A D | nfs4session.h | 60 u32 hash_alg; member in struct:nfs4_session
|
/linux-4.1.27/security/keys/ |
H A D | trusted.c | 35 static const char hash_alg[] = "sha1"; variable 67 pr_info("trusted_key: can't alloc %s\n", hash_alg); TSS_sha1() 137 pr_info("trusted_key: can't alloc %s\n", hash_alg); TSS_authhmac() 209 pr_info("trusted_key: can't alloc %s\n", hash_alg); TSS_checkhmac1() 301 pr_info("trusted_key: can't alloc %s\n", hash_alg); TSS_checkhmac2() 1128 hashalg = crypto_alloc_shash(hash_alg, 0, CRYPTO_ALG_ASYNC); trusted_shash_alloc() 1131 hash_alg); trusted_shash_alloc()
|
/linux-4.1.27/drivers/crypto/amcc/ |
H A D | crypto4xx_sa.h | 103 u32 hash_alg:4; member in struct:sa_command_0::__anon3794
|
H A D | crypto4xx_alg.c | 46 sa->sa_command_0.bf.hash_alg = h; set_dynamic_sa_command_0()
|
H A D | crypto4xx_core.c | 599 if (sa->sa_command_0.bf.hash_alg == SA_HASH_ALG_SHA1) { crypto4xx_copy_digest_to_dst()
|
/linux-4.1.27/drivers/crypto/ux500/hash/ |
H A D | hash_core.c | 38 #include "hash_alg.h" 1499 struct hash_algo_template *hash_alg; hash_cra_init() local 1501 hash_alg = container_of(__crypto_ahash_alg(alg), hash_cra_init() 1509 ctx->config.algorithm = hash_alg->conf.algorithm; hash_cra_init() 1510 ctx->config.oper_mode = hash_alg->conf.oper_mode; hash_cra_init() 1512 ctx->digestsize = hash_alg->hash.halg.digestsize; hash_cra_init()
|
/linux-4.1.27/security/keys/encrypted-keys/ |
H A D | encrypted.c | 42 static const char hash_alg[] = "sha256"; variable 364 pr_info("encrypted_key: can't alloc %s\n", hash_alg); calc_hash() 1000 hashalg = crypto_alloc_shash(hash_alg, 0, CRYPTO_ALG_ASYNC); encrypted_shash_alloc() 1003 hash_alg); encrypted_shash_alloc()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | openvswitch.h | 585 * @hash_alg: Algorithm used to compute hash prior to recirculation. 589 uint32_t hash_alg; /* One of ovs_hash_alg. */ member in struct:ovs_action_hash
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
H A D | lustre_sec.h | 255 __u8 hash_alg; 885 const char *sptlrpc_get_hash_name(__u8 hash_alg);
|
/linux-4.1.27/net/openvswitch/ |
H A D | flow_netlink.c | 2065 switch (act_hash->hash_alg) { nla_for_each_nested()
|