/xen/xen/include/xen/ |
A D | hash.h | 28 unsigned long hash = val; in hash_long() local 32 unsigned long n = hash; in hash_long() 34 hash -= n; in hash_long() 36 hash -= n; in hash_long() 38 hash += n; in hash_long() 40 hash -= n; in hash_long() 42 hash += n; in hash_long() 44 hash += n; in hash_long() 47 hash *= GOLDEN_RATIO_PRIME; in hash_long() 51 return hash >> (BITS_PER_LONG - bits); in hash_long()
|
/xen/tools/tests/x86_emulator/ |
A D | simd-sha.c | 151 y = hash ^ alignr(hash, src, 8); in sha_test() 159 tmp = hash ^ alignr(src, hash, 12); in sha_test() 171 tmp = rol_s(hash ^ alignr(src, hash, 12), one); in sha_test() 179 touch(hash); in sha_test() 233 a = vshr(hash, 3); in sha_test() 234 b = vshr(hash, 2); in sha_test() 235 touch(hash); in sha_test() 237 touch(hash); in sha_test() 285 y = hash + sha256_sigma0(alignr(src, hash, 4)); in sha_test() 292 tmp = hash + sha256_sigma1(alignr(hash, src, 8)); in sha_test() [all …]
|
/xen/tools/xenstore/ |
A D | tdb.c | 70 #define TDB_HASH_TOP(hash) (FREELIST_TOP + (BUCKET(hash)+1)*sizeof(tdb_off)) argument 105 #define BUCKET(hash) ((hash) % tdb->header.hash_size) argument 1041 uint32_t hash; local 1044 hash = tdb->hash_fn(&key); 1156 for (; tlock->hash < tdb->header.hash_size; tlock->hash++) { 1189 for (;tlock->hash < tdb->header.hash_size;tlock->hash++) { 1388 oldhash = tdb->travlocks.hash; 1435 uint32_t hash; local 1441 hash = tdb->hash_fn(&key); 1469 tdb_delete_hash(tdb, key, hash); [all …]
|
A D | hashtable.c | 68 hash(struct hashtable *h, void *k) in hash() function 163 e->h = hash(h,k); in hashtable_insert() 178 hashvalue = hash(h,k); in hashtable_search() 202 hashvalue = hash(h,k); in hashtable_remove() 203 index = indexFor(h->tablelength,hash(h,k)); in hashtable_remove()
|
A D | hashtable_private.h | 28 hash(struct hashtable *h, void *k);
|
A D | xenstored_transaction.h | 50 int check_transactions(struct hashtable *hash);
|
A D | xenstored_transaction.c | 600 int check_transactions(struct hashtable *hash) in check_transactions() argument 611 if (!tname || !remember_string(hash, tname)) in check_transactions() 619 if (!tnode || !remember_string(hash, tnode)) in check_transactions()
|
A D | tdb.h | 84 uint32_t hash; member
|
/xen/xen/common/xz/ |
A D | dec_stream.c | 93 struct xz_dec_hash hash; member 115 struct xz_dec_hash hash; member 266 s->block.hash.unpadded += 4; in dec_block() 270 s->block.hash.crc32 = xz_crc32( in dec_block() 271 (const uint8_t *)&s->block.hash, in dec_block() 272 sizeof(s->block.hash), s->block.hash.crc32); in dec_block() 329 s->index.hash.crc32 = xz_crc32( in dec_index() 331 sizeof(s->index.hash), in dec_index() 332 s->index.hash.crc32); in dec_index() 684 if (!memeq(&s->block.hash, &s->index.hash, in dec_main() [all …]
|
/xen/stubdom/vtpmmgr/ |
A D | disk_write.c | 128 struct hash256 *hash, sector_t *loc, int hsize, 132 struct hash256 *hash, sector_t *loc, int hsize, in disk_write_vtpm_itree() argument 146 hash[i] = page->disk_hash; in disk_write_vtpm_itree() 157 disk_write_vtpm_itree(hdr, base, child_entries, pt.hash, pt.location, in disk_write_vtpm_itree() 160 sha256(&hash[i], &pt.hash, sizeof(pt.hash)); in disk_write_vtpm_itree() 286 struct hash256 *hash, sector_t *loc, int hsize); 289 struct hash256 *hash, sector_t *loc, int hsize) in disk_write_group_itree() argument 298 hash[i] = group->disk_hash; in disk_write_group_itree() 314 disk_write_group_itree(mgr, base, child_entries, pt.hash, pt.location, NR_ENTRIES_PER_ITREE); in disk_write_group_itree() 316 sha256(&hash[i], &pt.hash, sizeof(pt.hash)); in disk_write_group_itree()
|
A D | disk_read.c | 242 const struct hash256 *hash, const sector_t *loc, in load_verify_vtpm_pages() argument 252 page->disk_hash = hash[i]; in load_verify_vtpm_pages() 268 const struct hash256 *hash, const sector_t *loc, int hsize, 272 const struct hash256 *hash, const sector_t *loc, int hsize, in load_verify_vtpm_itree() argument 289 return load_verify_vtpm_pages(hdr->v, base, nr_entries, hash, loc, mgr, group_key); in load_verify_vtpm_itree() 308 rc = sha256_verify(&hash[i], pt.hash, sizeof(pt.hash)); in load_verify_vtpm_itree() 314 rc = load_verify_vtpm_itree(hdr, base, child_entries, pt.hash, pt.location, in load_verify_vtpm_itree() 410 const struct hash256 *hash, const sector_t *loc, int hsize); 413 const struct hash256 *hash, const sector_t *loc, int hsize) in load_verify_group_itree() argument 421 memcpy(&group->disk_hash, &hash[i], sizeof(group->disk_hash)); in load_verify_group_itree() [all …]
|
A D | disk_crypto.c | 228 struct hash256 hash; in sha256_verify() local 229 sha256(&hash, data, size); in sha256_verify() 230 return verify_256(&hash, targ); in sha256_verify()
|
A D | tpm2_marshal.h | 77 inline BYTE* pack_TPMI_ALG_HASH(BYTE* ptr, const TPMI_ALG_HASH *hash) in pack_TPMI_ALG_HASH() argument 79 return pack_UINT16(ptr, *hash); in pack_TPMI_ALG_HASH() 83 inline BYTE* unpack_TPMI_ALG_HASH(BYTE *ptr, TPMI_ALG_HASH *hash) in unpack_TPMI_ALG_HASH() argument 85 return unpack_UINT16(ptr, hash); in unpack_TPMI_ALG_HASH() 244 ptr = pack_TPMI_ALG_HASH(ptr, &sel[i].hash); in pack_TPMS_PCR_SELECTION_ARRAY() 256 ptr = unpack_TPMI_ALG_HASH(ptr, &sel[i].hash); in unpack_TPMS_PCR_SELECTION_ARRAY() 676 ptr = pack_TPMI_ALG_HASH(ptr, &selection->hash); in pack_TPMS_PCR_SELECTION()
|
A D | disk_format.h | 131 struct hash256 hash[NR_ENTRIES_PER_ITREE]; member
|
/xen/xen/include/public/io/ |
A D | netif.h | 308 uint64_t hash = 0; in xen_netif_toeplitz_hash() local 322 hash ^= prefix; in xen_netif_toeplitz_hash() 336 return hash >> 32; in xen_netif_toeplitz_hash() 1020 } hash; member
|
/xen/xen/common/ |
A D | argo.c | 336 unsigned int hash = 5381; /* prime constant from djb2 */ in hash_index() local 339 hash = ((hash << 5) + hash) + (id->aport & 0xff); in hash_index() 340 hash = ((hash << 5) + hash) + ((id->aport >> 8) & 0xff); in hash_index() 341 hash = ((hash << 5) + hash) + ((id->aport >> 16) & 0xff); in hash_index() 342 hash = ((hash << 5) + hash) + ((id->aport >> 24) & 0xff); in hash_index() 343 hash = ((hash << 5) + hash) + (id->domain_id & 0xff); in hash_index() 344 hash = ((hash << 5) + hash) + ((id->domain_id >> 8) & 0xff); in hash_index() 345 hash = ((hash << 5) + hash) + (id->partner_id & 0xff); in hash_index() 346 hash = ((hash << 5) + hash) + ((id->partner_id >> 8) & 0xff); in hash_index() 352 return (hash ^ (hash >> 15)) & (ARGO_HASHTABLE_SIZE - 1); in hash_index()
|
/xen/tools/firmware/rombios/32bit/tcgbios/ |
A D | tcgbios.c | 96 unsigned char *hash); 877 memcpy(&_pttti[8+14], hash, 20); in _TCG_TPM_Extend() 943 uint8_t hash[20]; in HashLogExtendEvent32() local 981 memcpy(hash, (unsigned char *)logdataptr + 0x8, 20); in HashLogExtendEvent32() 982 _TCG_TPM_Extend(hash, pcrindex); in HashLogExtendEvent32() 1108 uint8_t hash[20]; in HashLogEvent32() local 1116 hash, in HashLogEvent32() 1124 hash, in HashLogEvent32() 1155 uint32_t HashAll32(struct hai *hai, unsigned char *hash, in HashAll32() argument 1188 hash); in HashAll32() [all …]
|
/xen/docs/ |
A D | xen-headers | 156 my $hash = $sdef->{$hkey}; 157 if ((scalar keys %$hash) > 1 && !$sdef->{MultiWarned}{$hkey}) { 159 foreach keys %$hash; 162 my ($val) = values %$hash;
|
/xen/xen/tools/kconfig/ |
A D | symbol.c | 796 unsigned hash = 2166136261U; in strhash() local 798 hash = (hash ^ *s) * 0x01000193; in strhash() 799 return hash; in strhash() 806 int hash; in sym_lookup() local 816 hash = strhash(name) % SYMBOL_HASHSIZE; in sym_lookup() 828 hash = 0; in sym_lookup() 837 symbol->next = symbol_hash[hash]; in sym_lookup() 838 symbol_hash[hash] = symbol; in sym_lookup() 846 int hash = 0; in sym_find() local 858 hash = strhash(name) % SYMBOL_HASHSIZE; in sym_find() [all …]
|
/xen/xen/arch/x86/ |
A D | domain_page.c | 97 hashent = &vcache->hash[MAPHASH_HASHFN(mfn_x(mfn))]; in map_domain_page() 141 hashent = &vcache->hash[i]; in map_domain_page() 197 hashent = &v->arch.pv.mapcache.hash[MAPHASH_HASHFN(mfn)]; in unmap_domain_page() 296 struct vcpu_maphash_entry *hashent = &v->arch.pv.mapcache.hash[i]; in mapcache_vcpu_init()
|
/xen/tools/libfsimage/zfs/ |
A D | fsys_zfs.h | 162 #define ZAP_HASH_IDX(hash, n) (((n) == 0) ? 0 : ((hash) >> (64 - (n)))) argument
|
/xen/stubdom/grub/ |
A D | kexec.c | 68 unsigned char hash[20]; member 76 unsigned char hash[20]; member 194 sha1(dom->kernel_blob, dom->kernel_size, cmd.hash); in tpm_hash2pcr() 200 sha1(cmdline, strlen(cmdline), cmd.hash); in tpm_hash2pcr() 205 sha1(dom->modules[0].blob, dom->modules[0].size, cmd.hash); in tpm_hash2pcr()
|
/xen/scripts/ |
A D | get_maintainer.pl | 625 my %hash; 670 $hash{$tvi} = $value_pd; 675 $hash{$tvi} = 0; 684 foreach my $line (sort {$hash{$b} <=> $hash{$a}} keys %hash) { 1868 my %hash; 1885 $hash{$_}++ for @lines; 1888 foreach my $line (sort {$hash{$b} <=> $hash{$a}} keys %hash) { 1889 my $sign_offs = $hash{$line};
|
/xen/docs/man/ |
A D | xen-vtpmmgr.7.pod | 109 =item hash:<HASH> 115 Use sha1 hash of <STR>. 166 While the TPM Manager has the ability to check the hash of the vTPM requesting a 167 key, there is currently no trusted method to inform the TPM Manager of the hash 174 directly requesting keys from the TPM Manager. The TPM Manager uses the hash of 175 the XSM label of the attached vTPM as the kernel hash, so vTPMs with distinct 220 hashes. In the current version of the vtpmmgr domain, this is the hash of the
|
/xen/stubdom/grub.patches/ |
A D | 40ext3_256byte_inode.diff | 50 + __u32 s_hash_seed[4]; /* HTREE hash seed */ 51 + __u8 s_def_hash_version; /* Default hash version to use */
|