/freebsd-current/sys/dev/vmware/vmci/ |
H A D | vmci_utils.h | 18 * the full VMCI handle). Based on the djb2 hash function by Dan Bernstein. 33 int hash = 5381; local 36 hash = ((hash << 5) + hash) + (uint8_t)(id >> (i * 8)); 38 return (hash & (size - 1));
|
/freebsd-current/sys/libkern/ |
H A D | murmur3_32.c | 27 #include <sys/hash.h> 35 * Simple implementation of the Murmur3-32 hash function. 46 uint32_t hash, k; local 52 hash = seed; 63 hash ^= k; 64 hash = rol32(hash, 13); 65 hash *= 5; 66 hash += 0xe6546b64; 83 hash 106 uint32_t hash, k; local [all...] |
/freebsd-current/contrib/llvm-project/libcxx/modules/std/ |
H A D | text_encoding.inc | 15 // hash support 16 using std::hash;
|
H A D | typeindex.inc | 11 using std::hash;
|
H A D | bitset.inc | 20 // [bitset.hash], hash support 21 using std::hash;
|
/freebsd-current/sys/sys/ |
H A D | hash.h | 27 * $OpenBSD: hash.h,v 1.4 2004/05/25 18:37:23 jmc Exp $ 41 * Return a 32-bit hash of the given buffer. The init 42 * value should be 0, or the previous hash value to extend 43 * the previous hash. 46 hash32_buf(const void *buf, size_t len, uint32_t hash) argument 51 hash = HASHSTEP(hash, *p++); 53 return hash; 57 * Return a 32-bit hash of the given string. 60 hash32_str(const void *buf, uint32_t hash) argument 74 hash32_strn(const void *buf, size_t len, uint32_t hash) argument 90 hash32_stre(const void *buf, int end, const char **ep, uint32_t hash) argument 109 hash32_strne(const void *buf, size_t len, int end, const char **ep, uint32_t hash) argument [all...] |
/freebsd-current/lib/libc/iconv/ |
H A D | citrus_db_hash.c | 47 uint32_t hash, tmp; local 50 hash = 0; 54 hash <<= 4; 55 hash += _bcs_tolower(*p); 56 tmp = hash & 0xF0000000; 58 hash ^= tmp; 59 hash ^= tmp >> 24; 63 return (hash);
|
/freebsd-current/contrib/netbsd-tests/lib/libcrypt/ |
H A D | t_crypt.c | 73 const char *hash; member in struct:__anon5220 126 for (size_t i = 0; tests[i].hash; i++) { 127 char *hash = crypt(tests[i].pw, tests[i].hash); local 134 if (!hash) { 138 if (strcmp(hash, "*0") == 0 && strlen(tests[i].hash) < 13) 140 if (strcmp(hash, tests[i].hash)) 142 i, hash, test [all...] |
/freebsd-current/usr.sbin/pw/tests/ |
H A D | crypt.c | 33 char *salt, *pass, *hash; local 40 hash = crypt(pass, salt); 41 printf("%s", hash); 42 return (hash == NULL ? 1 : 0);
|
/freebsd-current/contrib/elftoolchain/libelftc/ |
H A D | libelftc_hash.c | 28 * An implementation of the Fowler-Noll-Vo hash function. 45 * hash function. 62 unsigned int hash; local 64 for (hash = FNV_OFFSET; (c = *s) != '\0'; s++) { 65 hash ^= c; 66 hash *= FNV_PRIME; 69 return (hash);
|
/freebsd-current/contrib/bearssl/src/rsa/ |
H A D | rsa_i31_pkcs1_sign.c | 30 const unsigned char *hash, size_t hash_len, 33 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) { 29 br_rsa_i31_pkcs1_sign(const unsigned char *hash_oid, const unsigned char *hash, size_t hash_len, const br_rsa_private_key *sk, unsigned char *x) argument
|
H A D | rsa_i32_pkcs1_sign.c | 30 const unsigned char *hash, size_t hash_len, 33 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) { 29 br_rsa_i32_pkcs1_sign(const unsigned char *hash_oid, const unsigned char *hash, size_t hash_len, const br_rsa_private_key *sk, unsigned char *x) argument
|
H A D | rsa_i15_pkcs1_sign.c | 30 const unsigned char *hash, size_t hash_len, 33 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) { 29 br_rsa_i15_pkcs1_sign(const unsigned char *hash_oid, const unsigned char *hash, size_t hash_len, const br_rsa_private_key *sk, unsigned char *x) argument
|
H A D | rsa_i31_pss_sign.c | 31 const unsigned char *hash, size_t salt_len, 34 if (!br_rsa_pss_sig_pad(rng, hf_data, hf_mgf1, hash, 29 br_rsa_i31_pss_sign(const br_prng_class **rng, const br_hash_class *hf_data, const br_hash_class *hf_mgf1, const unsigned char *hash, size_t salt_len, const br_rsa_private_key *sk, unsigned char *x) argument
|
H A D | rsa_i62_pkcs1_sign.c | 32 const unsigned char *hash, size_t hash_len, 35 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) { 31 br_rsa_i62_pkcs1_sign(const unsigned char *hash_oid, const unsigned char *hash, size_t hash_len, const br_rsa_private_key *sk, unsigned char *x) argument
|
H A D | rsa_i32_pss_sign.c | 31 const unsigned char *hash, size_t salt_len, 34 if (!br_rsa_pss_sig_pad(rng, hf_data, hf_mgf1, hash, 29 br_rsa_i32_pss_sign(const br_prng_class **rng, const br_hash_class *hf_data, const br_hash_class *hf_mgf1, const unsigned char *hash, size_t salt_len, const br_rsa_private_key *sk, unsigned char *x) argument
|
H A D | rsa_i15_pss_sign.c | 31 const unsigned char *hash, size_t salt_len, 34 if (!br_rsa_pss_sig_pad(rng, hf_data, hf_mgf1, hash, 29 br_rsa_i15_pss_sign(const br_prng_class **rng, const br_hash_class *hf_data, const br_hash_class *hf_mgf1, const unsigned char *hash, size_t salt_len, const br_rsa_private_key *sk, unsigned char *x) argument
|
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | hash.c | 30 * Routines for manipulating hash tables 39 #include "hash.h" 43 struct hash { struct 95 hash_t *hash; local 97 hash = xmalloc(sizeof (hash_t)); 98 hash->h_buckets = xcalloc(sizeof (list_t *) * nbuckets); 99 hash->h_nbuckets = nbuckets; 100 hash->h_hashfn = hashfn ? hashfn : hash_def_hash; 101 hash->h_cmp = cmp ? cmp : hash_def_cmp; 103 return (hash); 107 hash_add(hash_t *hash, void *key) argument 130 hash_t *hash = arg; local 135 hash_remove(hash_t *hash, void *key) argument 144 hash_match(hash_t *hash, void *key, int (*fun)(void *, void *), void *private) argument 169 hash_find_iter(hash_t *hash, void *key, int (*fun)(void *, void *), void *private) argument 198 hash_find(hash_t *hash, void *key, void **value) argument 215 hash_iter(hash_t *hash, int (*fun)(void *, void *), void *private) argument 234 hash_count(hash_t *hash) argument 245 hash_free(hash_t *hash, void (*datafree)(void *, void *), void *private) argument 259 hash_stats(hash_t *hash, int verbose) argument [all...] |
/freebsd-current/crypto/openssl/providers/implementations/rands/ |
H A D | drbg_hash.c | 73 PROV_DRBG_HASH *hash = (PROV_DRBG_HASH *)drbg->data; local 74 EVP_MD_CTX *ctx = hash->ctx; 75 unsigned char *vtmp = hash->vtmp; 103 if (!(EVP_DigestInit_ex(ctx, ossl_prov_digest_md(&hash->digest), NULL) 110 if (outlen < hash->blocklen) { 114 OPENSSL_cleanse(vtmp, hash->blocklen); 120 outlen -= hash->blocklen; 125 out += hash->blocklen; 178 PROV_DRBG_HASH *hash = (PROV_DRBG_HASH *)drbg->data; local 179 EVP_MD_CTX *ctx = hash 209 PROV_DRBG_HASH *hash = (PROV_DRBG_HASH *)drbg->data; local 253 PROV_DRBG_HASH *hash = (PROV_DRBG_HASH *)drbg->data; local 292 PROV_DRBG_HASH *hash = (PROV_DRBG_HASH *)drbg->data; local 327 PROV_DRBG_HASH *hash = (PROV_DRBG_HASH *)drbg->data; local 364 PROV_DRBG_HASH *hash = (PROV_DRBG_HASH *)drbg->data; local 380 PROV_DRBG_HASH *hash = (PROV_DRBG_HASH *)drbg->data; local 390 PROV_DRBG_HASH *hash; local 421 PROV_DRBG_HASH *hash; local 434 PROV_DRBG_HASH *hash = (PROV_DRBG_HASH *)drbg->data; local 462 PROV_DRBG_HASH *hash = (PROV_DRBG_HASH *)ctx->data; local [all...] |
/freebsd-current/contrib/wpa/src/eap_common/ |
H A D | eap_psk_common.c | 37 u8 hash[aes_block_size]; local 41 if (aes_128_encrypt_block(kdk, rand_p, hash)) 44 hash[aes_block_size - 1] ^= counter; 45 if (aes_128_encrypt_block(kdk, hash, tek)) 47 hash[aes_block_size - 1] ^= counter; 51 hash[aes_block_size - 1] ^= counter; 52 if (aes_128_encrypt_block(kdk, hash, &msk[i * aes_block_size])) 54 hash[aes_block_size - 1] ^= counter; 59 hash[aes_block_size - 1] ^= counter; 60 if (aes_128_encrypt_block(kdk, hash, [all...] |
/freebsd-current/contrib/llvm-project/libcxx/include/__fwd/ |
H A D | hash.h | 21 struct _LIBCPP_TEMPLATE_VIS hash; variable in typeref:struct:_LIBCPP_TEMPLATE_VIS
|
/freebsd-current/crypto/openssl/crypto/ec/curve448/ |
H A D | curve448_local.h | 14 ossl_ed448ph_sign(OSSL_LIB_CTX *ctx, uint8_t *out_sig, const uint8_t hash[64], 19 ossl_ed448ph_verify(OSSL_LIB_CTX *ctx, const uint8_t hash[64],
|
/freebsd-current/crypto/openssl/crypto/lhash/ |
H A D | lhash_local.h | 16 unsigned long hash; member in struct:lhash_node_st 22 OPENSSL_LH_HASHFUNC hash; member in struct:lhash_st
|
/freebsd-current/contrib/wpa/src/crypto/ |
H A D | sha1-prf.c | 35 u8 hash[SHA1_MAC_LEN]; local 57 hash)) 59 os_memcpy(&buf[pos], hash, plen); 64 forced_memzero(hash, sizeof(hash));
|
/freebsd-current/lib/libpmcstat/ |
H A D | libpmcstat_string.c | 57 int hash, len; local 62 hash = pmcstat_string_compute_hash(s); 68 ps->ps_hash = hash; 70 LIST_INSERT_HEAD(&pmcstat_string_hash[hash], ps, ps_next); 84 * Compute a 'hash' value for a string. 90 unsigned hash; local 92 for (hash = 2166136261; *s; s++) 93 hash = (hash ^ *s) * 16777619; 95 return (hash 102 int hash, len; local [all...] |