Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 201) sorted by relevance

123456789

/reactos/modules/rostests/winetests/scrrun/
H A Ddictionary.c188 hash += (hash << 4) + ch; in get_str_hash()
371 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
372 ok(V_I4(&hash) == 0, "got %d\n", V_I4(&hash)); in test_hash_value()
424 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
432 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
440 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
441 ok(V_I4(&hash) == ~0u || broken(V_I4(&hash) == 0xa1), "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
448 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
456 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
464 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
[all …]
/reactos/sdk/lib/3rdparty/freetype/src/base/
H A Dfthash.c143 hash->size <<= 1; in hash_rehash()
144 hash->limit = hash->size / 3; in hash_rehash()
146 if ( FT_NEW_ARRAY( hash->table, hash->size ) ) in hash_rehash()
166 hash_init( FT_Hash hash, in hash_init() argument
174 hash->size = sz; in hash_init()
175 hash->limit = sz / 3; in hash_init()
176 hash->used = 0; in hash_init()
215 if ( hash ) in ft_hash_str_free()
225 FT_FREE( hash->table ); in ft_hash_str_free()
254 if ( hash->used >= hash->limit ) in hash_insert()
[all …]
/reactos/dll/win32/bcrypt/
H A Dbcrypt_main.c403 struct hash struct
418 static NTSTATUS hash_init( struct hash *hash ) in hash_init() argument
559 struct hash struct
571 static NTSTATUS hash_init( struct hash *hash ) in hash_init() argument
667 struct hash struct
682 static NTSTATUS hash_init( struct hash *hash ) in hash_init() argument
996 const struct hash *hash = (const struct hash *)object; in BCryptGetProperty() local
1009 struct hash *hash; in BCryptCreateHash() local
1049 struct hash *hash = handle; in BCryptDestroyHash() local
1060 struct hash *hash = handle; in BCryptHashData() local
[all …]
/reactos/modules/rostests/winetests/bcrypt/
H A Dbcrypt.c167 BCRYPT_HASH_HANDLE hash; in test_sha1() local
210 hash = NULL; in test_sha1()
242 hash = NULL; in test_sha1()
317 hash = NULL; in test_sha256()
349 hash = NULL; in test_sha256()
424 hash = NULL; in test_sha384()
456 hash = NULL; in test_sha384()
533 hash = NULL; in test_sha512()
565 hash = NULL; in test_sha512()
641 hash = NULL; in test_md5()
[all …]
/reactos/sdk/include/c++/stlport/stl/
H A D_hash_fun.h40 template <class _Key> struct hash { }; struct
56 struct hash<char*> {
64 struct hash<const char*> {
71 _STLP_TEMPLATE_NULL struct hash<char> {
78 _STLP_TEMPLATE_NULL struct hash<signed char> {
82 _STLP_TEMPLATE_NULL struct hash<short> {
88 _STLP_TEMPLATE_NULL struct hash<int> {
93 _STLP_TEMPLATE_NULL struct hash<unsigned int> {
103 _STLP_TEMPLATE_NULL struct hash<size_t> {
108 _STLP_TEMPLATE_NULL struct hash<long> {
[all …]
/reactos/sdk/tools/mkisofs/schilytools/libmdigest/
H A Dsha3.c330 UInt64_t hash[25]; in rhash_sha3_process_block()
335 hash[ 0] ^= le2me_64(block[ 0]);
336 hash[ 1] ^= le2me_64(block[ 1]);
337 hash[ 2] ^= le2me_64(block[ 2]);
338 hash[ 3] ^= le2me_64(block[ 3]);
339 hash[ 4] ^= le2me_64(block[ 4]);
340 hash[ 5] ^= le2me_64(block[ 5]);
341 hash[ 6] ^= le2me_64(block[ 6]);
342 hash[ 7] ^= le2me_64(block[ 7]);
343 hash[ 8] ^= le2me_64(block[ 8]);
[all …]
/reactos/dll/3rdparty/mbedtls/
H A Dpk_wrap.c98 const unsigned char *hash, size_t hash_len, in rsa_verify_wrap() argument
130 const unsigned char *hash, size_t hash_len, in rsa_sign_wrap() argument
144 md_alg, (unsigned int) hash_len, hash, sig ) ); in rsa_sign_wrap()
258 const unsigned char *hash, size_t hash_len,
280 const unsigned char *hash, size_t hash_len, in eckey_sign_wrap() argument
306 const unsigned char *hash, size_t hash_len,
536 hash, hash_len, sig, sig_len, in ecdsa_verify_rs_wrap()
673 unsigned char hash[32]; in rsa_alt_check_pair() local
680 memset( hash, 0x2a, sizeof( hash ) ); in rsa_alt_check_pair()
683 hash, sizeof( hash ), in rsa_alt_check_pair()
[all …]
H A Dpk.c270 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_restartable() argument
276 hash != NULL ); in mbedtls_pk_verify_restartable()
317 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify() argument
320 return( mbedtls_pk_verify_restartable( ctx, md_alg, hash, hash_len, in mbedtls_pk_verify()
329 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_ext() argument
334 hash != NULL ); in mbedtls_pk_verify_ext()
364 md_alg, (unsigned int) hash_len, hash, in mbedtls_pk_verify_ext()
392 const unsigned char *hash, size_t hash_len, in mbedtls_pk_sign_restartable() argument
399 hash != NULL ); in mbedtls_pk_sign_restartable()
440 const unsigned char *hash, size_t hash_len, in mbedtls_pk_sign() argument
[all …]
/reactos/modules/rostests/winetests/msvfw32/
H A Ddrawdib.c47 HCRYPTHASH hash; in hash_dib() local
58 CryptHashData(hash, bits, dib_size, 0); in hash_dib()
64 CryptDestroyHash(hash); in hash_dib()
95 char hash[41]; in test_DrawDib_sizeimage() member
142 char *hash; in test_DrawDib_sizeimage() local
148 if (test_data[i].hash[0]) in test_DrawDib_sizeimage()
152 if (!r || !test_data[i].hash[0]) in test_DrawDib_sizeimage()
156 if (!hash) { in test_DrawDib_sizeimage()
160 ok(strcmp(hash, test_data[i].hash) == 0, in test_DrawDib_sizeimage()
162 i, hash, test_data[i].hash); in test_DrawDib_sizeimage()
[all …]
/reactos/sdk/lib/3rdparty/freetype/src/cache/
H A Dftccache.h62 FT_Offset hash; /* used for hashing too */ member
76 #define FTC_NODE_TOP_FOR_HASH( cache, hash ) \ argument
78 ( ( ( ( hash ) & ( cache )->mask ) < ( cache )->p ) \
79 ? ( ( hash ) & ( ( cache )->mask * 2 + 1 ) ) \
80 : ( ( hash ) & ( cache )->mask ) ) )
84 FT_Offset hash );
85 #define FTC_NODE_TOP_FOR_HASH( cache, hash ) \ argument
86 ftc_get_top_node_for_hash( ( cache ), ( hash ) )
182 FT_Offset hash,
189 FT_Offset hash,
[all …]
H A Dftccache.c92 FT_Offset hash ) in ftc_get_top_node_for_hash() argument
98 idx = hash & cache->mask; in ftc_get_top_node_for_hash()
100 idx = hash & ( 2 * cache->mask + 1 ); in ftc_get_top_node_for_hash()
153 if ( node->hash & ( mask + 1 ) ) in ftc_cache_resize()
417 FT_Offset hash, in ftc_cache_add() argument
420 node->hash = hash; in ftc_cache_add()
445 FT_Offset hash, in FTC_Cache_NewNode() argument
472 ftc_cache_add( cache, hash, node ); in FTC_Cache_NewNode()
484 FT_Offset hash, in FTC_Cache_Lookup() argument
501 bucket = pnode = FTC_NODE_TOP_FOR_HASH( cache, hash ); in FTC_Cache_Lookup()
[all …]
H A Dftcbasic.c293 FT_Offset hash; in FTC_ImageCache_Lookup() local
335 hash, gindex, in FTC_ImageCache_Lookup()
341 hash, gindex, in FTC_ImageCache_Lookup()
374 FT_Offset hash; in FTC_ImageCache_LookupScaler() local
409 hash, gindex, in FTC_ImageCache_LookupScaler()
493 FT_Offset hash; in FTC_SBitCache_Lookup() local
528 hash = FTC_BASIC_ATTR_HASH( &query.attrs ) + in FTC_SBitCache_Lookup()
535 hash, gindex, in FTC_SBitCache_Lookup()
541 hash, in FTC_SBitCache_Lookup()
576 FT_Offset hash; in FTC_SBitCache_LookupScaler() local
[all …]
/reactos/dll/win32/scrrun/
H A Ddictionary.c63 DWORD hash; member
135 if (hash != pair->hash) in is_matching_key()
146 return hash == pair->hash; in is_matching_key()
153 VARIANT hash; in get_keyitem_pair() local
177 VARIANT hash; in add_keyitem_pair() local
188 pair->hash = V_I4(&hash); in add_keyitem_pair()
752 DWORD hash = 0; in get_str_hash() local
760 hash += (hash << 4) + ch; in get_str_hash()
776 *hash = 0; in get_flt_hash()
785 *hash = ~0u; in get_flt_hash()
[all …]
/reactos/dll/win32/advapi32/wine/
H A Dcrypt.c745 PCRYPTHASH hash; in CryptCreateHash() local
777 CRYPT_Free(hash); in CryptCreateHash()
898 if (!hash) in CryptDestroyHash()
904 if (!hash->pProvider || hash->dwMagic != MAGIC_CRYPTHASH || in CryptDestroyHash()
914 CRYPT_Free(hash); in CryptDestroyHash()
1618 if (!hash || !pdwDataLen || !hash->pProvider || in CryptGetHashParam()
1778 if (!hash) in CryptHashData()
1783 if (!hash->pProvider || hash->dwMagic != MAGIC_CRYPTHASH || in CryptHashData()
1822 if (!hash->pProvider || hash->dwMagic != MAGIC_CRYPTHASH || in CryptHashSessionKey()
1917 if (!hash) in CryptSignHashW()
[all …]
/reactos/sdk/lib/3rdparty/freetype/include/freetype/internal/
H A Dfthash.h96 ft_hash_str_init( FT_Hash hash,
100 ft_hash_num_init( FT_Hash hash,
104 ft_hash_str_free( FT_Hash hash,
112 FT_Hash hash,
118 FT_Hash hash,
123 FT_Hash hash );
127 FT_Hash hash );
/reactos/sdk/lib/3rdparty/libxml2/
H A Ddict.c391 hash += (hash << 10); in xmlDictComputeBigKey()
392 hash ^= (hash >> 6); in xmlDictComputeBigKey()
394 hash += (hash << 3); in xmlDictComputeBigKey()
395 hash ^= (hash >> 11); in xmlDictComputeBigKey()
396 hash += (hash << 15); in xmlDictComputeBigKey()
426 hash += (hash << 10); in xmlDictComputeBigQKey()
427 hash ^= (hash >> 6); in xmlDictComputeBigQKey()
431 hash ^= (hash >> 6); in xmlDictComputeBigQKey()
435 hash += (hash << 10); in xmlDictComputeBigQKey()
436 hash ^= (hash >> 6); in xmlDictComputeBigQKey()
[all …]
/reactos/dll/win32/dbghelp/
H A Dstorage.c321 unsigned hash = 0; in hash_table_hash() local
324 hash += *name++; in hash_table_hash()
325 hash += (hash << 10); in hash_table_hash()
326 hash ^= (hash >> 6); in hash_table_hash()
328 hash += (hash << 3); in hash_table_hash()
329 hash ^= (hash >> 11); in hash_table_hash()
330 hash += (hash << 15); in hash_table_hash()
331 return hash % num_buckets; in hash_table_hash()
392 if (!ht->buckets[hash].first) in hash_table_add()
394 ht->buckets[hash].first = elt; in hash_table_add()
[all …]
/reactos/drivers/filesystems/ext2/src/ext3/
H A Dhtree.c540 hash = hash & ~1; in ext3_dirhash()
543 hinfo->hash = hash; in ext3_dirhash()
675 new_fn->hash = hash; in ext3_htree_store_dirent()
692 if ((new_fn->hash == fname->hash) && in ext3_htree_store_dirent()
699 if (new_fn->hash < fname->hash) in ext3_htree_store_dirent()
701 else if (new_fn->hash > fname->hash) in ext3_htree_store_dirent()
1034 hash = hinfo->hash; in dx_probe()
1378 map_tail->hash = h.hash; in dx_make_map()
1402 if (p->hash < q->hash) in dx_sort_map()
1411 if (q[1].hash >= q[0].hash) in dx_sort_map()
[all …]
/reactos/dll/win32/crypt32/
H A Dregstore.c32 BYTE hash[20]; member
48 static void CRYPT_HashToStr(const BYTE *hash, LPWSTR asciiHash) in CRYPT_HashToStr() argument
53 assert(hash); in CRYPT_HashToStr()
57 wsprintfW(asciiHash + i * 2, fmt, hash[i]); in CRYPT_HashToStr()
107 BYTE hash[20]; in CRYPT_RegReadSerializedFromReg() local
125 size = sizeof(hash); in CRYPT_RegReadSerializedFromReg()
190 CRYPT_HashToStr(hash, asciiHash); in CRYPT_WriteSerializedToReg()
218 BYTE hash[20]; in CRYPT_SerializeContextsToReg() local
219 DWORD hashSize = sizeof(hash); in CRYPT_SerializeContextsToReg()
369 DWORD size = sizeof(toDelete->hash); in CRYPT_RegDeleteContext()
[all …]
/reactos/sdk/tools/mkisofs/schilytools/mkisofs/
H A Dhash.c416 unsigned int hash = 0; local
430 hash = (hash << 15) + (hash << 3) + (hash >> 3) + (*p++ & 0xFF);
432 return (hash % NR_NAME_HASH);
440 int hash; local
453 hash = name_hash(de->isorec.name);
456 new->next = name_hash_table[hash];
457 name_hash_table[hash] = new;
564 int hash; local
567 hash = name_hash(de->isorec.name);
568 for (nh = name_hash_table[hash]; nh; nh = nh->next) {
[all …]
/reactos/base/services/nfsd/
H A Dnfs41_client.c297 IN HCRYPTHASH hash) in hash_mac_addrs() argument
346 if (!CryptHashData(hash, entry->address, entry->length, 0)) { in hash_mac_addrs()
364 HCRYPTHASH hash; in nfs41_client_owner() local
388 if (!CryptCreateHash(context, CALG_MD5, 0, 0, &hash)) { in nfs41_client_owner()
394 if (!CryptHashData(hash, (const BYTE*)&sec_flavor, (DWORD)sizeof(sec_flavor), 0)) { in nfs41_client_owner()
400 if (!CryptHashData(hash, (const BYTE*)username, (DWORD)strlen(username), 0)) { in nfs41_client_owner()
406 if (!CryptHashData(hash, (const BYTE*)name, (DWORD)strlen(name), 0)) { in nfs41_client_owner()
413 status = hash_mac_addrs(hash); in nfs41_client_owner()
422 if (!CryptGetHashParam(hash, HP_HASHSIZE, buffer, &length, 0)) { in nfs41_client_owner()
430 if (!CryptGetHashParam(hash, HP_HASHVAL, buffer, &length, 0)) { in nfs41_client_owner()
[all …]
/reactos/dll/appcompat/apphelp/
H A Dsdbstringtable.c91 DWORD hash = 0; in StringHash() local
94 hash = ((65599 * hash) + (ULONG)(*str)); in StringHash()
96 return hash; in StringHash()
136 DWORD hash = StringHash(str); in TableFindPtr() local
137 struct SdbHashEntry** entry = &table->Entries[hash % table->Size]; in TableFindPtr()
/reactos/sdk/include/reactos/libs/mbedtls/
H A Drsa.h948 const unsigned char *hash,
996 const unsigned char *hash,
1058 const unsigned char *hash,
1111 const unsigned char *hash,
1157 const unsigned char *hash,
1214 const unsigned char *hash,
1262 const unsigned char *hash,
H A Decdsa.h375 const unsigned char *hash, size_t hlen,
421 const unsigned char *hash, size_t hlen,
478 const unsigned char *hash, size_t hlen,
513 const unsigned char *hash, size_t hlen,
548 const unsigned char *hash, size_t hlen,
/reactos/drivers/filesystems/btrfs/zstd/
H A Dzstd_ldm.c77 static U32 ZSTD_ldm_getChecksum(U64 hash, U32 numBitsToDiscard) in ZSTD_ldm_getChecksum() argument
80 return (hash >> (64 - 32 - numBitsToDiscard)) & 0xFFFFFFFF; in ZSTD_ldm_getChecksum()
89 static U32 ZSTD_ldm_getTag(U64 hash, U32 hbits, U32 numTagBits) in ZSTD_ldm_getTag() argument
93 return hash & (((U32)1 << numTagBits) - 1); in ZSTD_ldm_getTag()
102 ldmState_t* ldmState, size_t hash, ldmParams_t const ldmParams) in ZSTD_ldm_getBucket() argument
104 return ldmState->hashTable + (hash << ldmParams.bucketSizeLog); in ZSTD_ldm_getBucket()
114 *(ZSTD_ldm_getBucket(ldmState, hash, ldmParams) + bucketOffsets[hash]) = entry; in ZSTD_ldm_insertEntry()
115 bucketOffsets[hash]++; in ZSTD_ldm_insertEntry()
116 bucketOffsets[hash] &= ((U32)1 << ldmParams.bucketSizeLog) - 1; in ZSTD_ldm_insertEntry()
138 U32 const hash = ZSTD_ldm_getSmallHash(rollingHash, hBits); in ZSTD_ldm_makeEntryAndInsertByTag() local
[all …]

123456789