/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),
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
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/syslinux/com32/gplinclude/acpi/ |
structs.h | 39 uint8_t checksum; member in struct:__anon36935
|
/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...] |
/system/keymaster/key_blob_utils/ |
ocb.c | 621 block checksum; /* Memory correct */ member in struct:_ae_ctx 925 block offset, checksum; local 1136 block offset, checksum; local [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/syslinux/com32/sysdump/ |
dmi.c | 33 static uint8_t checksum(const void *buf, size_t len) function 49 !checksum(dmi, 0x0f); 58 !checksum(smb, smb->len) && 74 * make dmidecode happy. The checksum on the smbios table is unchanged, 75 * since it includes the checksum on the dmi table. 78 smx.dmi.csum -= checksum(&smx.dmi, 0x0f); 104 fake.dmi.csum -= checksum(&fake.dmi, 0x0f);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
Adler32Test.java | 46 assertEquals("update(int) failed to update the checksum to the correct value ", 49 assertEquals("reset failed to reset the checksum value to zero", 1, adl 56 assertEquals("update(min) failed to update the checksum to the correct value ", 69 assertEquals("update(int) failed to update the checksum to the correct value ", 72 assertEquals("reset failed to reset the checksum value to zero", 1, adl 84 assertEquals("update(int) failed to update the checksum to the correct value ", 91 assertEquals("update(max) failed to update the checksum to the correct value ", 98 assertEquals("update(min) failed to update the checksum to the correct value ", 113 assertEquals("update(byte[]) failed to update the checksum to the correct value ", 121 assertEquals("update(byte[]) failed to update the checksum to the correct value " 163 Adler32 checksum = new Adler32(); local 187 Adler32 checksum = new Adler32(); local [all...] |
CRC32Test.java | 47 assertEquals("update(max) failed to update the checksum to the correct value ", 56 assertEquals("update(byte[]) failed to update the checksum to the correct value ", 64 // assertEquals("update(int) failed to update the checksum to the correct 67 assertEquals("reset failed to reset the checksum value to zero", 0, crc 81 assertEquals("update(int) failed to update the checksum to the correct value ", 84 assertEquals("reset failed to reset the checksum value to zero", 0, crc 99 assertEquals("update(1) failed to update the checksum to the correct value ", 107 assertEquals("update(max) failed to update the checksum to the correct value ", 115 assertEquals("update(min) failed to update the checksum to the correct value ", 130 assertEquals("update(byte[]) failed to update the checksum to the correct value " 180 CRC32 checksum = new CRC32(); local 204 CRC32 checksum = new CRC32(); local [all...] |
/external/pdfium/fxbarcode/oned/ |
BC_OnedCode128Writer_unittest.cpp | 12 int32_t checksum; member in struct:__anon31240::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);
|
/system/nfc/src/adaptation/ |
libmain.cc | 91 unsigned short checksum = 0; local 92 read(fileStream, &checksum, sizeof(checksum)); 139 unsigned short checksum = crcChecksumCompute(pBuffer, nbytes); local 140 size_t actualWrittenCrc = write(fileStream, &checksum, sizeof(checksum)); 145 (actualWrittenCrc == sizeof(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...] |
/system/core/libnetutils/ |
packet.c | 65 static uint32_t checksum(void *buffer, unsigned int count, uint32_t startsum) function 111 ip.check = finish_sum(checksum(&ip, sizeof(ip), 0)); 118 /* Calculate checksum for pseudo header */ 119 udpsum = checksum(&ip.saddr, sizeof(ip.saddr), 0); 120 udpsum = checksum(&ip.daddr, sizeof(ip.daddr), udpsum); 122 udpsum = checksum(&temp, sizeof(temp), udpsum); 124 udpsum = checksum(&temp, sizeof(temp), udpsum); 126 /* Add in the checksum for the udp header */ 127 udpsum = checksum(&udp, sizeof(udp), udpsum); 129 /* Add in the checksum for the data * [all...] |
/external/android-clat/ |
Android.mk | 4 LOCAL_SRC_FILES:=clatd.c dump.c checksum.c translate.c icmp.c ipv4.c ipv6.c config.c dns64.c logging.c getaddr.c netlink_callbacks.c netlink_msg.c setif.c mtu.c tun.c ring.c 37 LOCAL_SRC_FILES := clatd_test.cpp checksum.c translate.c icmp.c ipv4.c ipv6.c logging.c config.c tun.c 49 LOCAL_SRC_FILES := clatd_microbenchmark.c checksum.c tun.c
|
checksum.h | 16 * checksum.h - checksum functions 32 uint16_t ip_checksum_adjust(uint16_t checksum, uint32_t old_hdr_sum, uint32_t new_hdr_sum);
|
/external/libmojo/third_party/jinja2/ |
bccache.py | 61 The buckets get an internal checksum from the cache assigned and use this 66 def __init__(self, environment, key, checksum): 69 self.checksum = checksum 84 checksum = pickle.load(f) 85 if self.checksum != checksum: 95 pickle.dump(self.checksum, f, 2) 169 """Returns a checksum for the source.""" 177 checksum = self.get_source_checksum(source [all...] |
/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/ |
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/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
|
/external/kernel-headers/original/uapi/linux/ |
cycx_cfm.h | 81 * @checksum - info + image 90 unsigned short checksum; member in struct:cycx_firmware
|
/external/pdfium/fxbarcode/ |
cbc_onecode.h | 27 virtual void SetPrintChecksum(bool checksum);
|
/external/pdfium/fxjs/xfa/ |
cjx_barcode.h | 20 JS_PROP(checksum);
|