/external/jemalloc/test/unit/ |
hash.c | 67 VARIABLE_ARRAY(uint8_t, hashes, hashbytes * 256); 73 memset(hashes, 0, sizeof(hashes)); 86 memcpy(&hashes[i*hashbytes], &out, hashbytes); 91 memcpy(&hashes[i*hashbytes], out, hashbytes); 96 memcpy(&hashes[i*hashbytes], out, hashbytes); 105 uint32_t out = hash_x86_32(hashes, hashbytes*256, 0); 110 hash_x86_128(hashes, hashbytes*256, 0, out); 115 hash_x64_128(hashes, hashbytes*256, 0, out);
|
/external/vboot_reference/tests/ |
vb21_host_fw_preamble_tests.c | 34 struct vb2_signature *hashes[3]; local 66 TEST_SUCC(vb2_sign_data(hashes + 0, test_data1, sizeof(test_data1), 69 TEST_SUCC(vb2_sign_data(hashes + 1, test_data2, sizeof(test_data2), 72 TEST_SUCC(vb2_sign_data(hashes + 2, test_data3, sizeof(test_data3), 78 (const struct vb2_signature **)hashes, 92 TEST_EQ(0, memcmp((uint8_t *)fp + hash_next, hashes[i], 93 hashes[i]->c.total_size), " hash[i]"); 94 hash_next += hashes[i]->c.total_size; 102 (const struct vb2_signature **)hashes,
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
CompactByteArray.java | 67 hashes = new int[INDEXCOUNT]; 73 hashes[i] = 0; 212 if (hashes[i] == hashes[j] && 224 hashes[j] = hashes[i]; 241 hashes = null; 268 hashes[i] = (hashes[i] + (value<<1)) | 1; 276 return hashes[i] != 0 397 private int[] hashes; field in class:CompactByteArray [all...] |
CompactCharArray.java | 68 hashes = new int[INDEXCOUNT]; 74 hashes[i] = 0; 215 if (hashes[i] == hashes[j] && 252 hashes = null; 292 hashes[i] = (hashes[i] + (value<<1)) | 1; 300 return hashes[i] != 0; 339 if (hashes != null) other.hashes = hashes.clone() 424 private int[] hashes; field in class:CompactCharArray [all...] |
/external/boringssl/src/crypto/x509/ |
by_dir.c | 82 STACK_OF(BY_DIR_HASH) *hashes; 187 if (ent->hashes) 188 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); 248 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp); 250 if (!ent->dir || !ent->hashes) 267 /* g_ent_hashes_lock protects the |hashes| member of all |BY_DIR_ENTRY| 343 if (type == X509_LU_CRL && ent->hashes) 347 if (sk_BY_DIR_HASH_find(ent->hashes, &idx, &htmp)) 349 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); 446 if (sk_BY_DIR_HASH_find(ent->hashes, &idx, &htmp) [all...] |
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
CMSSignedData.java | 67 private Map hashes; field in class:CMSSignedData 96 * @param hashes a map of precomputed digests for content indexed by name of hash. 100 Map hashes, 104 this(hashes, CMSUtils.readContentInfo(sigBlock)); 167 Map hashes, 171 this.hashes = hashes; 241 if (hashes == null) 247 Object obj = hashes.keySet().iterator().next(); 248 byte[] hash = (obj instanceof String) ? (byte[])hashes.get(info.getDigestAlgorithm().getAlgorithm().getId()) : (byte[])hashes.get(info.getDigestAlgorithm (…) [all...] |
/external/fio/lib/ |
bloom.c | 38 struct bloom_hash hashes[] = { variable in typeref:struct:bloom_hash 98 hash[i] = hashes[i].fn(data, nwords, hashes[i].seed);
|
/external/jemalloc/src/ |
ckh.c | 19 * fewest that can work, and supporting multiple hashes is an implementation 25 * #hashes | 1 | 2 | 4 | 8 | 73 size_t hashes[2], bucket, cell; local 77 ckh->hash(key, hashes); 80 bucket = hashes[0] & ((ZU(1) << ckh->lg_curbuckets) - 1); 86 bucket = hashes[1] & ((ZU(1) << ckh->lg_curbuckets) - 1); 129 size_t hashes[2], bucket, tbucket; local 141 * were an item for which both hashes indicated the same 158 ckh->hash(key, hashes); 159 tbucket = hashes[1] & ((ZU(1) << ckh->lg_curbuckets) - 1) 196 size_t hashes[2], bucket; local [all...] |
/external/squashfs-tools/squashfs-tools/ |
progressbar.c | 96 int max_digits, used, hashes, spaces; local 104 hashes = (current * (columns - used)) / max; 105 spaces = columns - used - hashes; 127 while (hashes --)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_cmd_line.py | 96 hashes = [] 100 hashes.append(data) 101 self.assertNotEqual(hashes[0], hashes[1])
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_cmd_line.py | 96 hashes = [] 100 hashes.append(data) 101 self.assertNotEqual(hashes[0], hashes[1])
|
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
cso_cache.c | 40 struct cso_hash *hashes[CSO_CACHE_MAX]; member in struct:cso_cache 86 hash = sc->hashes[type]; 255 sc->hashes[i] = cso_hash_create(); 295 cso_hash_delete(sc->hashes[i]); 307 sanitize_hash(sc, sc->hashes[i], i, sc->max_size);
|
/system/extras/verity/ |
build_verity_tree.cpp | 20 unsigned char *hashes; member in struct:sparse_hash_ctx 98 ctx->hashes, &s, 100 ctx->hashes += s; 103 memcpy(ctx->hashes, ctx->zero_block_hash, ctx->hash_size); 104 ctx->hashes += ctx->hash_size; 317 ctx.hashes = verity_tree_levels[0];
|
VerityVerifier.java | 192 int hashes = (int) (imageSize / blockSize); local 197 hashBlocksLevel.add(0, hashes); 200 (int) Math.ceil((double) hashes * hashSize / hashBlockSize); 204 hashes = hashBlocks; 205 } while (hashes > 1); 306 * Hashes a block of data using a salt and checks of the results are expected
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
PackageManagerBackupAgent.java | 103 Metadata(int version, ArrayList<byte[]> hashes) { 105 sigHashes = hashes; 440 ArrayList<byte[]> hashes = new ArrayList<byte[]>(sigs.length); local 442 hashes.add(BackupManagerService.hashSignature(s)); 444 return hashes; 447 private static void writeSignatureHashArray(DataOutputStream out, ArrayList<byte[]> hashes) 450 out.writeInt(hashes.size()); 453 for (byte[] buffer : hashes) { 478 // This could be a "legacy" block of actual signatures rather than their hashes. 480 // if the blocks are all 256 bits (32 bytes) then we take them to be SHA-256 hashes; 495 ArrayList<byte[]> hashes = local [all...] |
/frameworks/base/core/java/android/util/ |
ArraySet.java | 188 private static void freeArrays(final int[] hashes, final Object[] array, final int size) { 189 if (hashes.length == (BASE_SIZE*2)) { 193 array[1] = hashes; 203 } else if (hashes.length == BASE_SIZE) { 207 array[1] = hashes; 566 final int[] hashes = mHashes; local 569 result += hashes[i];
|
ArrayMap.java | 202 private static void freeArrays(final int[] hashes, final Object[] array, final int size) { 203 if (hashes.length == (BASE_SIZE*2)) { 207 array[1] = hashes; 217 } else if (hashes.length == BASE_SIZE) { 221 array[1] = hashes; 696 final int[] hashes = mHashes; local 701 result += hashes[i] ^ (value == null ? 0 : value.hashCode());
|
/frameworks/support/v4/java/android/support/v4/util/ |
SimpleArrayMap.java | 172 private static void freeArrays(final int[] hashes, final Object[] array, final int size) { 173 if (hashes.length == (BASE_SIZE*2)) { 177 array[1] = hashes; 187 } else if (hashes.length == BASE_SIZE) { 191 array[1] = hashes; 569 final int[] hashes = mHashes; local 574 result += hashes[i] ^ (value == null ? 0 : value.hashCode());
|
/external/srtp/crypto/ |
Makefile | 73 hashes = hash/null_auth.o hash/sha1.o \ macro 87 cryptobj = $(ciphers) $(hashes) $(math) $(stat) $(kernel) $(xfm)
|
/external/jemalloc/include/jemalloc/internal/ |
hash.h | 327 uint64_t hashes[2]; 328 hash_x86_128(key, len, seed, hashes); 329 r_hash[0] = (size_t)hashes[0]; 330 r_hash[1] = (size_t)hashes[1];
|
/external/valgrind/VEX/useful/ |
smchash.c | 266 UInt* hashes = malloc( nHashes * sizeof(UInt) ); local 271 assert(hashes); 285 hashes[hashIx++] = hRunning; 310 free(hashes);
|
/external/e2fsprogs/e2fsck/ |
rehash.c | 77 ext2_dirhash_t *hashes; member in struct:out_dir 233 new_mem = realloc(outdir->hashes, 237 outdir->hashes = new_mem; 240 outdir->hashes = malloc(blocks * sizeof(ext2_dirhash_t)); 250 free(outdir->hashes); 426 outdir->hashes[0] = 0; 459 outdir->hashes[outdir->num-1] = ent->hash | 1; 461 outdir->hashes[outdir->num-1] = ent->hash; 577 ext2fs_cpu_to_le32(outdir->hashes[i]); 597 ext2fs_cpu_to_le32(outdir->hashes[i]) [all...] |
/bootable/recovery/ |
fuse_sideload.c | 93 uint8_t* hashes; // SHA-256 hash of each block (all zeros member in struct:fuse_data 277 uint8_t* blockhash = fd->hashes + block * SHA256_DIGEST_SIZE; 399 fd.hashes = (uint8_t*)calloc(fd.file_blocks, SHA256_DIGEST_SIZE); 400 if (fd.hashes == NULL) { 401 fprintf(stderr, "failed to allocate %d bites for hashes\n", 522 free(fd.hashes);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
DownloadPackageTask.java | 233 + "-hashes of all signatures of downloaded package."); 252 ProvisionLogger.loge("Hashes computed from package signatures: "); 328 List<byte[]> hashes = new LinkedList<byte[]>(); 333 hashes.add(hash); 340 return hashes;
|
/build/tools/releasetools/ |
edify_generator.py | 148 given *sha1 hashes, checking the version saved in cache if the 157 given *sha1 hashes."""
|