Home
last modified time | relevance | path

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

12345678

/device/linaro/bootloader/edk2/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/
DLzFind.c146 p->hash = NULL; in MatchFinder_Construct()
161 alloc->Free(alloc, p->hash); in MatchFinder_FreeThisClassMemory()
162 p->hash = NULL; in MatchFinder_FreeThisClassMemory()
249 if (p->hash && p->numRefs == newSize) in MatchFinder_Create()
254 p->hash = AllocRefs(newSize, alloc); in MatchFinder_Create()
256 if (p->hash) in MatchFinder_Create()
258 p->son = p->hash + p->hashSizeSum; in MatchFinder_Create()
300 UInt32 *hash = p->hash; in MatchFinder_Init_2() local
303 hash[i] = kEmptyHashValue; in MatchFinder_Init_2()
344 MatchFinder_Normalize3(subValue, p->hash, p->numRefs); in MatchFinder_Normalize()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/
DLzFind.c146 p->hash = NULL; in MatchFinder_Construct()
161 alloc->Free(alloc, p->hash); in MatchFinder_FreeThisClassMemory()
162 p->hash = NULL; in MatchFinder_FreeThisClassMemory()
249 if (p->hash && p->numRefs == newSize) in MatchFinder_Create()
254 p->hash = AllocRefs(newSize, alloc); in MatchFinder_Create()
256 if (p->hash) in MatchFinder_Create()
258 p->son = p->hash + p->hashSizeSum; in MatchFinder_Create()
300 UInt32 *hash = p->hash; in MatchFinder_Init_2() local
303 hash[i] = kEmptyHashValue; in MatchFinder_Init_2()
344 MatchFinder_Normalize3(subValue, p->hash, p->numRefs); in MatchFinder_Normalize()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/
DLzFind.c144 p->hash = NULL; in MatchFinder_Construct()
159 alloc->Free(alloc, p->hash); in MatchFinder_FreeThisClassMemory()
160 p->hash = NULL; in MatchFinder_FreeThisClassMemory()
247 if (p->hash && p->numRefs == newSize) in MatchFinder_Create()
252 p->hash = AllocRefs(newSize, alloc); in MatchFinder_Create()
254 if (p->hash) in MatchFinder_Create()
256 p->son = p->hash + p->hashSizeSum; in MatchFinder_Create()
298 UInt32 *hash = p->hash; in MatchFinder_Init_2() local
301 hash[i] = kEmptyHashValue; in MatchFinder_Init_2()
342 MatchFinder_Normalize3(subValue, p->hash, p->numRefs); in MatchFinder_Normalize()
[all …]
DLzFindMt.c138 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc) \
140 const UInt32 value = (v); p++; *heads++ = pos - hash[value]; hash[value] = pos++; } }
195 MatchFinder_Normalize3(subValue, mf->hash + mf->fixedHashSize, (size_t)mf->hashMask + 1); in HashThreadFunc()
207 …mt->GetHeadsFunc(mf->buffer, mf->pos, mf->hash + mf->fixedHashSize, mf->hashMask, heads + 2, num, … in HashThreadFunc()
238 … UInt32 *_distances, UInt32 _maxLen, const UInt32 *hash, Int32 limit, UInt32 size, UInt32 *posRes) in GetMatchesSpecN() argument
243 UInt32 curMatch = pos - *hash++; in GetMatchesSpecN()
512 p->hash = mf->hash; in MatchFinderMt_Init()
535 MatchFinder_Normalize3(p->lzPos - p->historySize - 1, p->hash, p->fixedHashSize); in MatchFinderMt_Normalize()
567 UInt32 *hash = p->hash; in MixMatches2() local
572 curMatch2 = hash[h2]; in MixMatches2()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/HashLibBaseCryptoRouter/
DHashLibBaseCryptoRouterDxe.uni2 // Provides hash service by registered hash handler
4 // This library is BaseCrypto router. It will redirect hash request to each individual
5 // hash handler registered, such as SHA1, SHA256. Platform can use PcdTpm2HashMask to
6 // mask some hash engines.
20 #string STR_MODULE_ABSTRACT #language en-US "Provides hash service by registered hash h…
22 …ll redirect hash request to each individual hash handler registered, such as SHA1, SHA256. Platfor…
DHashLibBaseCryptoRouterPei.uni2 // Provides hash service by registered hash handler
4 // This library is BaseCrypto router. It will redirect hash request to each individual
5 // hash handler registered, such as SHA1, SHA256. Platform can use PcdTpm2HashMask to
6 // mask some hash engines.
20 #string STR_MODULE_ABSTRACT #language en-US "Provides hash service by registered hash h…
22 …ll redirect hash request to each individual hash handler registered, such as SHA1, SHA256. Platfor…
DHashLibBaseCryptoRouterPei.inf2 # Provides hash service by registered hash handler
4 # This library is BaseCrypto router. It will redirect hash request to each individual
5 # hash handler registered, such as SHA1, SHA256. Platform can use PcdTpm2HashMask to
6 # mask some hash engines.
DHashLibBaseCryptoRouterDxe.inf2 # Provides hash service by registered hash handler
4 # This library is BaseCrypto router. It will redirect hash request to each individual
5 # hash handler registered, such as SHA1, SHA256. Platform can use PcdTpm2HashMask to
6 # mask some hash engines.
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dsetobject.c44 (so)->hash = -1; \
76 set_lookkey(PySetObject *so, PyObject *key, register long hash) in set_lookkey() argument
87 i = hash & mask; in set_lookkey()
95 if (entry->hash == hash) { in set_lookkey()
110 return set_lookkey(so, key, hash); in set_lookkey()
118 for (perturb = hash; ; perturb >>= PERTURB_SHIFT) { in set_lookkey()
128 if (entry->hash == hash && entry->key != dummy) { in set_lookkey()
143 return set_lookkey(so, key, hash); in set_lookkey()
158 set_lookkey_string(PySetObject *so, PyObject *key, register long hash) in set_lookkey_string() argument
173 return set_lookkey(so, key, hash); in set_lookkey_string()
[all …]
Ddictobject.c150 lookdict_string(PyDictObject *mp, PyObject *key, long hash);
320 lookdict(PyDictObject *mp, PyObject *key, register long hash) in lookdict() argument
331 i = (size_t)hash & mask; in lookdict()
339 if (ep->me_hash == hash) { in lookdict()
356 return lookdict(mp, key, hash); in lookdict()
364 for (perturb = hash; ; perturb >>= PERTURB_SHIFT) { in lookdict()
371 if (ep->me_hash == hash && ep->me_key != dummy) { in lookdict()
388 return lookdict(mp, key, hash); in lookdict()
408 lookdict_string(PyDictObject *mp, PyObject *key, register long hash) in lookdict_string() argument
426 return lookdict(mp, key, hash); in lookdict_string()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dsetobject.c44 (so)->hash = -1; \
76 set_lookkey(PySetObject *so, PyObject *key, register long hash) in set_lookkey() argument
87 i = hash & mask; in set_lookkey()
95 if (entry->hash == hash) { in set_lookkey()
110 return set_lookkey(so, key, hash); in set_lookkey()
118 for (perturb = hash; ; perturb >>= PERTURB_SHIFT) { in set_lookkey()
128 if (entry->hash == hash && entry->key != dummy) { in set_lookkey()
143 return set_lookkey(so, key, hash); in set_lookkey()
158 set_lookkey_string(PySetObject *so, PyObject *key, register long hash) in set_lookkey_string() argument
173 return set_lookkey(so, key, hash); in set_lookkey_string()
[all …]
Ddictobject.c150 lookdict_string(PyDictObject *mp, PyObject *key, long hash);
320 lookdict(PyDictObject *mp, PyObject *key, register long hash) in lookdict() argument
331 i = (size_t)hash & mask; in lookdict()
339 if (ep->me_hash == hash) { in lookdict()
356 return lookdict(mp, key, hash); in lookdict()
364 for (perturb = hash; ; perturb >>= PERTURB_SHIFT) { in lookdict()
371 if (ep->me_hash == hash && ep->me_key != dummy) { in lookdict()
388 return lookdict(mp, key, hash); in lookdict()
408 lookdict_string(PyDictObject *mp, PyObject *key, register long hash) in lookdict_string() argument
426 return lookdict(mp, key, hash); in lookdict_string()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/
DAntlrDDK.mak22 fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \
41 $(ANTLR_SRC)\hash.h \
56 $(ANTLR_SRC)\hash.h \
71 $(ANTLR_SRC)\hash.h \
83 $(ANTLR_SRC)\hash.h \
94 $(ANTLR_SRC)\hash.h \
105 $(ANTLR_SRC)\hash.h \
116 $(ANTLR_SRC)\hash.h \
127 $(ANTLR_SRC)\hash.h \
137 $(ANTLR_SRC)\hash.h \
[all …]
DAntlrMS.mak23 fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \
42 $(ANTLR_SRC)\hash.h \
57 $(ANTLR_SRC)\hash.h \
72 $(ANTLR_SRC)\hash.h \
84 $(ANTLR_SRC)\hash.h \
95 $(ANTLR_SRC)\hash.h \
106 $(ANTLR_SRC)\hash.h \
117 $(ANTLR_SRC)\hash.h \
128 $(ANTLR_SRC)\hash.h \
138 $(ANTLR_SRC)\hash.h \
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlstring.c70 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize()
71 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; in luaS_resize()
75 GCObject *p = tb->hash[i]; in luaS_resize()
76 tb->hash[i] = NULL; in luaS_resize()
79 unsigned int h = lmod(gco2ts(p)->hash, newsize); /* new position */ in luaS_resize()
80 gch(p)->next = tb->hash[h]; /* chain it */ in luaS_resize()
81 tb->hash[h] = p; in luaS_resize()
88 lua_assert(tb->hash[newsize] == NULL && tb->hash[tb->size - 1] == NULL); in luaS_resize()
89 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize()
105 ts->tsv.hash = h; in createstrobj()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/HashLibTpm2/
DHashLibTpm2.uni2 // Provides hash service using TPM2 device
4 // This library uses TPM2 device to calculate hash. Platform can use PcdTpm2HashMask to
5 // mask some hash calculation.
19 #string STR_MODULE_ABSTRACT #language en-US "Provides hash service using TPM2 device"
21 …-US "This library uses TPM2 device to calculate hash. Platform can use PcdTpm2HashMask to mask so…
/device/linaro/bootloader/arm-trusted-firmware/drivers/auth/tbbr/
Dtbbr_cot.c138 .param.hash = {
140 .hash = &tb_fw_hash,
261 .param.hash = {
263 .hash = &scp_fw_hash,
342 .param.hash = {
344 .hash = &soc_fw_hash,
437 .param.hash = {
439 .hash = &tos_fw_hash,
451 .param.hash = {
453 .hash = &tos_fw_extra1_hash,
[all …]
/device/google/crosshatch/fuzzy_fastboot/
Dvalidator.py36 hash = hashlib.sha256(tlvs)
39 if hash.digest() != sha:
40 eprint("'%s' does not match '%s'" % (hash.hexdigest(), pretty))
41 assert hash.digest() == sha
/device/google/contexthub/lib/nanohub/
Dnanoapp.c101 static void doPrintHash(FILE *out, const char *pfx, const uint32_t *hash, size_t size, int incremen… in doPrintHash() argument
107 fprintf(out, "%08" PRIx32, hash[pos]); in doPrintHash()
111 void printHash(FILE *out, const char *pfx, const uint32_t *hash, size_t size) in printHash() argument
113 doPrintHash(out, pfx, hash, size, 1); in printHash()
116 void printHashRev(FILE *out, const char *pfx, const uint32_t *hash, size_t size) in printHashRev() argument
118 doPrintHash(out, pfx, hash + size - 1, size, -1); in printHashRev()
/device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/src/
Dext.c162 HASH *hash; in ext_new_hash() local
192 hash = HASH_new(); in ext_new_hash()
193 if (hash == NULL) { in ext_new_hash()
198 hash->hashAlgorithm = x509_algor; in ext_new_hash()
199 hash->dataHash = octet; in ext_new_hash()
202 sz = i2d_HASH(hash, &p); in ext_new_hash()
204 HASH_free(hash); in ext_new_hash()
214 HASH_free(hash); in ext_new_hash()
/device/linaro/bootloader/arm-trusted-firmware/drivers/auth/mbedtls/
Dmbedtls_crypto.c67 unsigned char hash[MBEDTLS_MD_MAX_SIZE]; in verify_signature() local
111 rc = mbedtls_md(md_info, p, data_len, hash); in verify_signature()
118 rc = mbedtls_pk_verify_ext(pk_alg, sig_opts, &pk, md_alg, hash, in verify_signature()
148 unsigned char *p, *end, *hash; in verify_hash() local
188 hash = p; in verify_hash()
198 rc = memcmp(data_hash, hash, mbedtls_md_get_size(md_info)); in verify_hash()
/device/linaro/bootloader/edk2/SecurityPkg/Library/HashInstanceLibSha256/
DHashInstanceLibSha256.uni2 // Provides BaseCrypto SHA256 hash service
4 // This library can be registered to BaseCrypto router, to serve as hash engine.
18 #string STR_MODULE_ABSTRACT #language en-US "Provides BaseCrypto SHA256 hash service"
20 … #language en-US "This library can be registered to BaseCrypto router, to serve as hash engine."
/device/linaro/bootloader/edk2/SecurityPkg/Library/HashInstanceLibSha1/
DHashInstanceLibSha1.uni2 // Provides BaseCrypto SHA1 hash service
4 // This library can be registered to BaseCrypto router, to serve as hash engine.
18 #string STR_MODULE_ABSTRACT #language en-US "Provides BaseCrypto SHA1 hash service"
20 … #language en-US "This library can be registered to BaseCrypto router, to serve as hash engine."
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dsetobject.h25 long hash; /* cached hash code for the entry key */ member
52 setentry *(*lookup)(PySetObject *so, PyObject *key, long hash);
55 long hash; /* only used by frozenset objects */ member
92 PyAPI_FUNC(int) _PySet_NextEntry(PyObject *set, Py_ssize_t *pos, PyObject **key, long *hash);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dsetobject.h25 long hash; /* cached hash code for the entry key */ member
52 setentry *(*lookup)(PySetObject *so, PyObject *key, long hash);
55 long hash; /* only used by frozenset objects */ member
92 PyAPI_FUNC(int) _PySet_NextEntry(PyObject *set, Py_ssize_t *pos, PyObject **key, long *hash);

12345678