/art/libdexfile/dex/ |
compact_dex_file.cc | 74 uint32_t checksum = ChecksumMemoryRange(reinterpret_cast<const uint8_t*>(&temp_header), local 76 // Exclude the header since we already computed it's checksum. 77 checksum = (checksum * 31) ^ ChecksumMemoryRange(base_begin + sizeof(temp_header), 79 checksum = (checksum * 31) ^ ChecksumMemoryRange(data_begin, data_size); 80 return checksum;
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
IcmpMessage.java | 34 int checksum = stream.readUnsignedShort(); local 48 throw new IOException("Corrupted message. Checksum: " + checksum); 59 stream.writeShort(/* checksum */ 0); 64 int checksum = Rfc1071.checksum(result, result.length); local 65 result[checksumPosition + 0] = (byte) ((checksum & 0xFF00) >> 8); 66 result[checksumPosition + 1] = (byte) ((checksum & 0x00FF));
|
Rfc1071.java | 20 static int checksum(byte[] data, int length) { method in class:Rfc1071
|
Ipv4Packet.java | 53 int checksum = stream.readUnsignedShort(); local 81 throw new IOException("Corrupted message. Checksum: " + checksum); 108 stream.writeShort(/* checksum */ 0); 116 int checksum = Rfc1071.checksum(result, headerLength); local 117 result[checksumPosition + 0] = (byte) ((checksum & 0xFF00) >> 8); 118 result[checksumPosition + 1] = (byte) ((checksum & 0x00FF));
|
/external/curl/docs/cmdline-opts/ |
hostpubmd5.d | 8 be the 128 bit MD5 checksum of the remote host's public key, curl will refuse
|
/external/pdfium/fxbarcode/ |
cbc_onecode.cpp | 41 void CBC_OneCode::SetPrintChecksum(bool checksum) { 42 GetOneDimWriter()->SetPrintChecksum(checksum);
|
/external/sfntly/cpp/src/sfntly/table/ |
header.cc | 44 Header::Header(int32_t tag, int64_t checksum, int32_t offset, int32_t length) 50 checksum_(checksum),
|
/external/deqp/external/ |
fetch_sources.py | 61 def __init__(self, url, filename, checksum, baseDir, extractDir = "src", postExtract=None): 65 self.checksum = checksum 77 if self.getExtractedChecksum() != self.checksum: 80 self.storeExtractedChecksum(self.checksum) 90 return computeChecksum(readFile(archiveFile)) == self.checksum 105 def storeExtractedChecksum (self, checksum): 106 checksum_bytes = checksum.encode("utf-8") 131 checksum = computeChecksum(data) 134 if checksum != self.checksum [all...] |
/external/libchrome/base/metrics/ |
bucket_ranges.h | 48 uint32_t checksum() const { return checksum_; } function in class:base::BucketRanges 49 void set_checksum(uint32_t checksum) { checksum_ = checksum; } 57 // Checksum methods to verify whether the ranges are corrupted (e.g. bad 83 // Checksum for the conntents of ranges_. Used to detect random over-writes
|
/external/stressapptest/src/ |
adler32memcpy.cc | 17 // We are using (a modified form of) adler-32 checksum algorithm instead 22 // checksums are done (we could have one checksum but two checksums 32 // checksum = a<<16 + b 70 // Returns string representation of the Adler checksum. 77 // Sets components of the Adler checksum. 85 // Calculates Adler checksum for supplied data. 87 AdlerChecksum *checksum) { 119 checksum->Set(a1, a2, b1, b2); 125 unsigned int size_in_bytes, AdlerChecksum *checksum) { 159 checksum->Set(a1, a2, b1, b2) [all...] |
/external/rmi4utils/rmi4update/ |
firmware_image.cpp | 28 unsigned long FirmwareImage::Checksum(unsigned short * data, unsigned long len) 30 unsigned long checksum = 0xFFFFFFFF; local 31 unsigned long lsw = checksum & 0xFFFF; 32 unsigned long msw = checksum >> 16; 41 checksum = msw << 16 | lsw; 43 return checksum; 78 unsigned long calculated_checksum = Checksum((uint16_t *)&(m_memBlock[4]), 82 fprintf(stderr, "Firmware image checksum verification failed, saw 0x%08lX, calculated 0x%08lX\n", 135 fprintf(stdout, "Checksum:\t\t0x%lx\n", m_checksum);
|
/external/u-boot/common/ |
kgdb.c | 72 * checksum. A packet consists of 74 * $<packet info>#<checksum>. 78 * <checksum> :: <two hex digits computed as modulo 256 sum of <packetinfo>> 223 /* scan for the sequence $<data>#<checksum> */ 227 unsigned char checksum; local 244 checksum = 0; 254 checksum = checksum + ch; 267 if (checksum != xmitcsum) 268 putDebugChar('-'); /* failed checksum */ 289 unsigned char checksum; local [all...] |
/external/pdfium/fxbarcode/oned/ |
BC_OnedCode128Writer_unittest.cpp | 12 int32_t checksum; member in struct:__anon35077::TestCase 38 int32_t checksum = local 40 EXPECT_EQ(test_case.checksum, checksum); 71 int32_t checksum = local 73 EXPECT_EQ(test_case.checksum, checksum);
|
/external/squashfs-tools/squashfs-tools/ |
process_fragments.c | 58 * Compute 16 bit BSD checksum over the data, and check for sparseness 75 file_buffer->checksum = chksum; 220 char *data_buffer, int fd, unsigned short *checksum) 237 *checksum = cksum; 279 unsigned short checksum; local 325 checksum = dupl_ptr->fragment_checksum; 329 * If we have the checksum and it matches then 332 * If we *don't* have the checksum, then we are 334 * "old" filesystem. Read it in and checksum 339 data_buffer, fd, &checksum); [all...] |
/external/libchrome/third_party/jinja2/ |
bccache.py | 64 The buckets get an internal checksum from the cache assigned and use this 69 def __init__(self, environment, key, checksum): 72 self.checksum = checksum 87 checksum = pickle.load(f) 88 if self.checksum != checksum: 103 pickle.dump(self.checksum, f, 2) 177 """Returns a checksum for the source.""" 185 checksum = self.get_source_checksum(source [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/ELF/ |
debug-md5-err.s | 4 # This is syntactically legal, looks like no checksum provided. 20 # Non-DWARF .file syntax with checksum. 21 # CHECK: [[@LINE+1]]:{{[0-9]+}}: error: MD5 checksum specified, but no file number
|
/device/generic/goldfish/dhcp/common/ |
socket.cpp | 32 // Combine the checksum of |buffer| with |size| bytes with |checksum|. This is 33 // used for checksum calculations for IP and UDP. 36 uint32_t checksum) { 39 checksum += *data++; 44 checksum += *reinterpret_cast<const uint8_t*>(data); 46 // msw is the most significant word, the upper 16 bits of the checksum 47 for (uint32_t msw = checksum >> 16; msw != 0; msw = checksum >> 16) { 48 checksum = (checksum & 0xFFFF) + msw [all...] |
/external/desugar/java/com/google/devtools/build/android/desugar/io/ |
ZipOutputFileProvider.java | 61 // Need to pre-compute checksum for STORED (uncompressed) entries) 62 CRC32 checksum = new CRC32(); local 63 checksum.update(content); 67 result.setCrc(checksum.getValue());
|
/external/guava/guava-tests/test/com/google/common/hash/ |
ChecksumHashFunctionTest.java | 24 import java.util.zip.Checksum; 67 private static void assertChecksum(Supplier<Checksum> supplier, String input) { 70 Checksum checksum = supplier.get(); local 71 checksum.update(bytes, 0, bytes.length); 72 long value = checksum.getValue(); 80 private static void assertHash32(int expected, Supplier<Checksum> supplier, String input) {
|
/external/u-boot/board/samsung/origen/tools/ |
mkorigenspl.c | 23 * It then calculates the checksum of 14K-4 bytes and compare with data at 30 * It calculates checksum of 14K-4 Bytes and stores at 14K-4 offset in buffer. 39 unsigned int checksum = 0, count; local 83 checksum += buffer[i+16]; 86 *(unsigned long *)(buffer+4) ^= checksum;
|
/external/webrtc/webrtc/modules/utility/source/ |
file_player_unittests.cc | 61 rtc::Md5Digest checksum; local 67 checksum.Update(out, num_samples * sizeof(out[0])); 75 checksum.Finish(checksum_result, rtc::Md5Digest::kSize));
|
/bionic/libc/kernel/uapi/linux/ |
cycx_cfm.h | 52 unsigned short checksum; member in struct:cycx_firmware
|
/bionic/tests/ |
netinet_ip_icmp_test.cpp | 25 ASSERT_EQ(0, hdr.checksum);
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/snappy/ |
FramedSnappyCompressorOutputStream.java | 47 private final PureJavaCrc32C checksum = new PureJavaCrc32C(); field in class:FramedSnappyCompressorOutputStream 141 checksum.update(buffer, 0, currentIndex); 142 writeLittleEndian(4, mask(checksum.getValue())); 143 checksum.reset();
|
/external/kernel-headers/original/uapi/linux/ |
cycx_cfm.h | 81 * @checksum - info + image 90 unsigned short checksum; member in struct:cycx_firmware
|