/freebsd-current/contrib/wpa/src/crypto/ |
H A D | random.c | 107 u8 hash[SHA1_MAC_LEN]; local 111 /* First, add hash back to pool to make backtracking more difficult. */ 113 sizeof(pool), hash); 114 random_mix_pool(hash, sizeof(hash)); 119 sizeof(buf), hash); 121 * Fold the hash to further reduce any potential output pattern. 125 hash_ptr = (u32 *) hash; 127 os_memcpy(out, hash, EXTRACT_LEN);
|
/freebsd-current/sys/dev/random/ |
H A D | randomdev.c | 53 #include <dev/random/hash.h> 299 static struct randomdev_hash hash; local 305 randomdev_hash_init(&hash); 307 randomdev_hash_iterate(&hash, ×tamp, sizeof(timestamp)); 308 randomdev_hash_iterate(&hash, buf, count); 310 randomdev_hash_iterate(&hash, ×tamp, sizeof(timestamp)); 311 randomdev_hash_finish(&hash, entropy_data);
|
/freebsd-current/sys/dev/dwc/ |
H A D | dwc1000_core.c | 75 uint32_t hash[8]; member in struct:dwc_hash_maddr_ctx 291 ctx->hash[hashreg] |= (1 << hashbit); 315 * Set the multicast (group) filter hash. 320 ctx.hash[i] = ~0; 324 ctx.hash[i] = 0; 330 * Set the individual address filter hash. 346 WRITE4(sc, GMAC_MAC_HTLOW, ctx.hash[0]); 347 WRITE4(sc, GMAC_MAC_HTHIGH, ctx.hash[1]); 350 WRITE4(sc, HASH_TABLE_REG(i), ctx.hash[i]);
|
/freebsd-current/contrib/unbound/util/data/ |
H A D | msgparse.c | 83 uint16_t type, uint16_t dclass, hashvalue_type hash, 89 p->rrset_bucket_next = msg->hashtable[hash & (PARSE_TABLE_SIZE-1)]; 90 msg->hashtable[hash & (PARSE_TABLE_SIZE-1)] = p; 96 p->hash = hash; 185 /** create partial dname hash for rrset hash */ 197 /** create a rrset hash from a partial dname hash */ 217 if(p->hash 82 new_rrset(struct msg_parse* msg, uint8_t* dname, size_t dnamelen, uint16_t type, uint16_t dclass, hashvalue_type hash, uint32_t rrset_flags, sldns_pkt_section section, struct regional* region) argument 400 hashvalue_type hash = pkt_hash_rrset(pkt, sigset->dname, datatype, local 466 find_rrset(struct msg_parse* msg, sldns_buffer* pkt, uint8_t* dname, size_t dnamelen, uint16_t type, uint16_t dclass, hashvalue_type* hash, uint32_t* rrset_flags, uint8_t** prev_dname_first, uint8_t** prev_dname_last, size_t* prev_dnamelen, uint16_t* prev_type, uint16_t* prev_dclass, struct rrset_parse** rrset_prev, sldns_pkt_section section, struct regional* region) argument 836 hashvalue_type hash = 0; local [all...] |
/freebsd-current/contrib/jemalloc/src/ |
H A D | ckh.c | 4 * hash bucket contains 2^n cells, for n >= 1, and 2 indicates that two hash 14 * alternative to traditional hash tables. In Proceedings of the 7th 18 * This implementation uses precisely two hash functions because that is the 45 #include "jemalloc/internal/hash.h" 86 ckh->hash(key, hashes); 168 ckh->hash(key, hashes); 210 ckh->hash(key, hashes); 231 * Try to rebuild the hash table from scratch by inserting all items from the 360 ckh_new(tsd_t *tsd, ckh_t *ckh, size_t minitems, ckh_hash_t *hash, argument [all...] |
/freebsd-current/crypto/openssl/ssl/ |
H A D | tls13_enc.c | 29 * |datalen| (e.g. typically a hash of the handshake messages), derive a new 262 unsigned char hash[EVP_MAX_MD_SIZE]; local 278 if (!ssl_handshake_hash(s, hash, sizeof(hash), &hashlen)) { 296 params, key, hashlen, hash, hashlen, 310 * for initialising the cipher and hash. Returns 1 on success or 0 on failure. 315 const EVP_MD *hash; local 318 if (!ssl_cipher_get_evp(s->ctx, s->session, &c, &hash, NULL, NULL, NULL, 328 s->s3.tmp.new_hash = hash; 336 const unsigned char *hash, 333 derive_secret_key_and_iv(SSL *s, int sending, const EVP_MD *md, const EVP_CIPHER *ciph, const unsigned char *insecret, const unsigned char *hash, const unsigned char *label, size_t labellen, unsigned char *secret, unsigned char *key, unsigned char *iv, EVP_CIPHER_CTX *ciph_ctx) argument 428 unsigned char *hash = hashval; local 841 unsigned char hash[EVP_MAX_MD_SIZE], data[EVP_MAX_MD_SIZE]; local 883 unsigned char hash[EVP_MAX_MD_SIZE], data[EVP_MAX_MD_SIZE]; local [all...] |
/freebsd-current/contrib/bmake/ |
H A D | hash.c | 1 /* $NetBSD: hash.c,v 1.74 2023/12/19 19:33:39 rillig Exp $ */ 76 /* "@(#)hash.c 8.1 (Berkeley) 6/6/93" */ 77 MAKE_RCSID("$NetBSD: hash.c,v 1.74 2023/12/19 19:33:39 rillig Exp $"); 85 /* This hash function matches Gosling's Emacs and java.lang.String. */ 100 /* This hash function matches Gosling's Emacs and java.lang.String. */ 127 if (he->hash == h && 139 /* Set up the hash table. */ 156 * Remove everything from the hash table and free up the memory for the keys 157 * of the hash table, but not for the values associated to these keys. 198 * Find the value corresponding to the key and the precomputed hash, [all...] |
/freebsd-current/sys/netinet/ |
H A D | ip_reass.c | 39 #include <sys/hash.h> 66 * Reassembly headers are stored in hash buckets. 210 uint32_t hash, hashkey[3]; local 289 hash = jenkins_hash32(hashkey, nitems(hashkey), V_ipq_hashseed); 290 hash &= IPREASS_HMASK; 291 head = &V_ipq[hash].head; 292 IPQ_LOCK(hash); 311 if (V_ipq[hash].count < V_ipreass_maxbucketsize) 314 fp = ipq_reuse(hash); 326 V_ipq[hash] [all...] |
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | iidesc.c | 39 #include "hash.h" 87 iidesc_add(hash_t *hash, iidesc_t *new) argument 94 (void) hash_match(hash, new, iidesc_cmp, &find); 108 hash_add(hash, new);
|
/freebsd-current/contrib/wpa/src/eap_common/ |
H A D | eap_eke_common.c | 211 u8 hash[SHA1_MAC_LEN]; local 218 addr[0] = hash; 229 &vlen[1], hash); 232 hash); 236 os_memcpy(res, hash, SHA1_MAC_LEN); 240 os_memcpy(res, hash, len); 252 u8 hash[SHA256_MAC_LEN]; local 259 addr[0] = hash; 270 &vlen[1], hash); 273 hash); [all...] |
/freebsd-current/sys/contrib/ck/include/ |
H A D | ck_ht.h | 79 CK_HT_TYPE hash; 96 * Hash callback function. First argument is updated to contain a hash value, 98 * is the hash table seed value. 211 entry->hash = h.value; 228 entry->hash = h.value; 251 * the hash table.
|
/freebsd-current/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/ |
H A D | argon2.h | 146 * All the parameters above affect the output hash value. 198 * Hashes a password with Argon2i, producing an encoded hash 206 * @param hashlen Desired length of the hash in bytes 207 * @param encoded Buffer where to write the encoded hash 208 * @param encodedlen Size of the buffer (thus max size of the encoded hash) 219 * Hashes a password with Argon2id, producing an encoded hash 227 * @param hashlen Desired length of the hash in bytes 228 * @param encoded Buffer where to write the encoded hash 229 * @param encodedlen Size of the buffer (thus max size of the encoded hash) 240 * Hashes a password with Argon2i, producing a raw hash [all...] |
/freebsd-current/contrib/wpa/src/eap_server/ |
H A D | eap_server_md5.c | 104 u8 hash[CHAP_MD5_LEN], id; local 123 data->challenge, CHALLENGE_LEN, hash)) { 129 if (os_memcmp_const(hash, pos, CHAP_MD5_LEN) == 0) {
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/orc/ |
H A D | string_pool.h | 57 friend struct std::hash<PooledStringPtr>; 164 template <> struct hash<__orc_rt::PooledStringPtr> { struct in namespace:std 166 return hash<__orc_rt::PooledStringPtr::PoolEntryPtr>()(A.S);
|
/freebsd-current/tools/tools/zfsboottest/ |
H A D | zfsboottest.c | 106 char buf[512], hash[33]; local 216 MD5End(&ctx, hash); 217 printf("%s %s\n", hash, argv[i]);
|
/freebsd-current/lib/libkvm/ |
H A D | kvm_minidump_powerpc64_hpt.c | 323 uint64_t hash, hmask; local 348 * Get hash: 350 * Primary hash: va_vsid(11:49) ^ va_page(s-b) 351 * Secondary hash: ~primary_hash 353 hash = (va_vsid & PTE_HASH_MASK) ^ va_page; 355 hash = ~hash & PTE_HASH_MASK; 360 * pteg = (hash(0:38) & hmask) << 3 362 * hmask (hash mask): mask generated from HTABSIZE || 11*0b1 366 pteg = (hash 564 uint64_t ea, hash, vsid; local [all...] |
/freebsd-current/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | RDFLiveness.h | 44 template <> struct hash<llvm::rdf::detail::NodeRef> { struct in namespace:std 46 return std::hash<llvm::rdf::NodeId>{}(R.first) ^ 47 std::hash<llvm::LaneBitmask::Type>{}(R.second.getAsInteger());
|
/freebsd-current/crypto/openssl/util/perl/OpenSSL/Util/ |
H A D | Pod.pm | 48 GLOB (a file handle). The result is given back as a hash table. 50 The additional hash is for extra parameters: 71 =item B<extract_pod_info> returns a hash table with the following
|
/freebsd-current/contrib/llvm-project/libcxx/include/__coroutine/ |
H A D | coroutine_handle.h | 14 #include <__functional/hash.h> 164 // [coroutine.handle.hash] 166 struct hash<coroutine_handle<_Tp>> { struct 168 return hash<void*>()(__v.address());
|
/freebsd-current/contrib/llvm-project/libcxx/include/__thread/ |
H A D | id.h | 15 #include <__fwd/hash.h> 35 struct hash<__thread_id>; 75 friend struct _LIBCPP_TEMPLATE_VIS hash<__thread_id>;
|
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | SymbolFileDWARFDwo.cpp | 40 DWARFCompileUnit *SymbolFileDWARFDwo::GetDWOCompileUnitForHash(uint64_t hash) { argument 42 if (const llvm::DWARFUnitIndex::Entry *entry = index.getFromHash(hash)) { 55 if (!dwo_id || hash != *dwo_id)
|
/freebsd-current/contrib/tcsh/ |
H A D | tc.printf.c | 67 int flush_left = 0, f_width = 0, prec = INF, hash = 0; local 116 hash = 1; 193 hash = 1; 229 if (hash) 240 if (hash) { 345 flush_left = 0, f_width = 0, prec = INF, hash = 0;
|
/freebsd-current/crypto/heimdal/lib/gssapi/krb5/ |
H A D | get_mic.c | 51 u_char hash[16]; local 89 EVP_DigestFinal_ex(md5, hash, NULL); 95 DES_cbc_cksum ((void *)hash, (void *)hash, sizeof(hash), 97 memcpy (p - 8, hash, 8); /* SGN_CKSUM */
|
/freebsd-current/contrib/libarchive/libarchive/ |
H A D | archive_blake2s_ref.c | 12 More information about the BLAKE2 hash function can be found at 259 for( i = 0; i < 8; ++i ) /* Output full hash to temp buffer */ 321 uint8_t hash[BLAKE2S_OUTBYTES]; local 322 blake2s( hash, BLAKE2S_OUTBYTES, buf, i, key, BLAKE2S_KEYBYTES ); 324 if( 0 != memcmp( hash, blake2s_keyed_kat[i], BLAKE2S_OUTBYTES ) ) 333 uint8_t hash[BLAKE2S_OUTBYTES]; local 353 if ( (err = blake2s_final(&S, hash, BLAKE2S_OUTBYTES)) < 0) { 357 if (0 != memcmp(hash, blake2s_keyed_kat[i], BLAKE2S_OUTBYTES)) {
|
/freebsd-current/sys/geom/journal/ |
H A D | g_journal.h | 287 u_char md_hash[16]; /* MD5 hash. */ 353 char hash[16 * 2 + 1]; local 367 bzero(hash, sizeof(hash)); 369 hash[i * 2] = hex[md->md_hash[i] >> 4]; 370 hash[i * 2 + 1] = hex[md->md_hash[i] & 0x0f]; 372 printf(" MD5 hash: %s\n", hash);
|