/external/deqp/scripts/khr_util/ |
H A D | registry_cache.py | 32 def __init__(self, filename, revision, checksum): 35 self.checksum = checksum 38 return hash((self.filename, self.revision, self.checksum)) 41 return (self.filename, self.revision, self.checksum) == (other.filename, other.revision, other.checksum) 50 return self.checksum 66 def fetchFile (dstPath, url, checksum): 79 if checksum != gotChecksum: 80 raise Exception("Checksum mismatch, exepected %s, got %s" % (checksum, gotChecksu [all...] |
/external/guava/guava/src/com/google/common/hash/ |
H A D | ChecksumHashFunction.java | 59 * Hasher that updates a checksum. 63 private final Checksum checksum; field in class:ChecksumHashFunction.ChecksumHasher 65 private ChecksumHasher(Checksum checksum) { argument 66 this.checksum = checkNotNull(checksum); 71 checksum.update(b); 76 checksum.update(bytes, off, len); 81 long value = checksum.getValue();
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
H A D | ChecksumBenchmark.java | 60 CRC32 checksum = new CRC32(); 61 checksum.update(testBytes); 62 result ^= checksum.getValue(); 76 Adler32 checksum = new Adler32(); 77 checksum.update(testBytes); 78 result ^= checksum.getValue();
|
/external/zopfli/src/zopfli/ |
H A D | zlib_container.c | 28 /* Calculates the adler32 checksum of the data */ 54 unsigned checksum = adler32(in, (unsigned)insize); local 68 ZOPFLI_APPEND_DATA((checksum >> 24) % 256, out, outsize); 69 ZOPFLI_APPEND_DATA((checksum >> 16) % 256, out, outsize); 70 ZOPFLI_APPEND_DATA((checksum >> 8) % 256, out, outsize); 71 ZOPFLI_APPEND_DATA(checksum % 256, out, outsize);
|
/external/android-clat/ |
H A D | checksum.c | 16 * checksum.c - ipv4/ipv6 checksum calculation 26 #include "checksum.h" 29 * adds data to a checksum 30 * current - the current checksum (or 0 to start a new checksum) 31 * data - the data to add to the checksum 35 uint32_t checksum = current; local 40 checksum += *data_16; 45 checksum 131 ip_checksum_adjust(uint16_t checksum, uint32_t old_hdr_sum, uint32_t new_hdr_sum) argument [all...] |
H A D | 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 33 LOCAL_SRC_FILES := clatd_test.cpp checksum.c translate.c icmp.c ipv4.c ipv6.c logging.c config.c tun.c 44 LOCAL_SRC_FILES := clatd_microbenchmark.c checksum.c tun.c
|
H A D | 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);
|
H A D | translate.c | 22 #include "checksum.h" 30 * calculates the checksum over all the packet components starting from pos 31 * checksum - checksum of packet components before pos 32 * packet - packet to calculate the checksum of 34 * returns - the completed 16-bit checksum, ready to write into a checksum header field 36 uint16_t packet_checksum(uint32_t checksum, clat_packet packet, clat_packet_index pos) { argument 40 checksum = ip_checksum_add(checksum, packe 227 icmp_to_icmp6(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, uint32_t checksum, const uint8_t *payload, size_t payload_size) argument [all...] |
H A D | ipv4.c | 21 #include "checksum.h" 30 * checksum - pseudo-header checksum 35 uint32_t checksum, size_t len) { 47 return icmp_to_icmp6(out, pos, icmp, checksum, payload, payload_size); 103 * UDP include parts of the IP header in the checksum. Set the length to zero because we don't 109 /* Calculate the pseudo-header checksum. 110 * Technically, the length that is used in the pseudo-header checksum is the transport layer 112 * translation does not change the transport layer length, the checksum is unaffected. 34 icmp_packet(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, uint32_t checksum, size_t len) argument
|
H A D | translate.h | 35 // Calculates the checksum over all the packet components starting from pos. 36 uint16_t packet_checksum(uint32_t checksum, clat_packet packet, clat_packet_index pos); 70 uint32_t checksum, const uint8_t *payload, size_t payload_size);
|
/external/deqp/external/ |
H A D | fetch_sources.py | 14 def __init__(self, url, filename, checksum, dstDir, postExtract=None): 17 self.checksum = checksum 43 checksum = computeChecksum(data) 46 if checksum != pkg.checksum: 47 raise Exception("Checksum mismatch for %s, exepected %s, got %s" % (pkg.filename, pkg.checksum, checksum))
|
/external/sfntly/cpp/src/sfntly/table/ |
H A D | header.cc | 44 Header::Header(int32_t tag, int64_t checksum, int32_t offset, int32_t length) argument 50 checksum_(checksum),
|
H A D | header.h | 33 Header(int32_t tag, int64_t checksum, int32_t offset, int32_t length); 61 // Get the checksum for the table as recorded in the table record header. 62 int64_t checksum() { return checksum_; } function in class:sfntly::Header 64 // Is the checksum valid. The checksum will not be valid if the table was 66 // Note that this does *NOT* check the validity of the checksum against 67 // the calculated checksum for the table data.
|
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
H A D | NonVolatileStore.cpp | 80 unsigned short checksum = 0; local 81 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum)); 139 unsigned short checksum = crcChecksumCompute (p_buf, nbytes); local 140 size_t actualWrittenCrc = write (fileStream, &checksum, sizeof(checksum)); 143 if ((actualWrittenData == nbytes) && (actualWrittenCrc == sizeof(checksum)))
|
/external/libnfc-nci/src/adaptation/ |
H A D | libmain.c | 106 unsigned short checksum = 0; local 107 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum)); 167 unsigned short checksum = crcChecksumCompute (pBuffer, nbytes); local 168 size_t actualWrittenCrc = write (fileStream, &checksum, sizeof(checksum)); 171 if ((actualWrittenData == nbytes) && (actualWrittenCrc == sizeof(checksum)))
|
H A D | CrcChecksum.cpp | 69 ** Description Compute a checksum on a buffer of data. 71 ** Returns 2-byte checksum. 92 ** Description Detect any corruption in a file by computing a checksum. 105 unsigned short checksum = 0; local 107 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum)); 118 if ((actualReadCrc == sizeof(checksum)) && (data.size() > 0)) 121 if (checksum == crcChecksumCompute ((const unsigned char*) data.data(), data.size())) 124 ALOGE ("%s: checksum mismatch", __FUNCTION__);
|
/external/squashfs-tools/squashfs-tools/ |
H A D | 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); 219 get_fragment_cksum(struct file_info *file, char *data_buffer, int fd, unsigned short *checksum) argument [all...] |
/external/guava/guava-tests/test/com/google/common/hash/ |
H A D | ChecksumHashFunctionTest.java | 70 Checksum checksum = supplier.get(); 71 checksum.update(bytes, 0, bytes.length); 72 long value = checksum.getValue();
|
/external/kernel-headers/original/uapi/linux/ |
H A D | cycx_cfm.h | 80 * @checksum - info + image 89 unsigned short checksum; member in struct:cycx_firmware
|
H A D | romfs_fs.h | 28 __be32 checksum; member in struct:romfs_super_block 38 __be32 checksum; member in struct:romfs_inode
|
H A D | icmp.h | 71 __sum16 checksum; member in struct:icmphdr
|
/external/vboot_reference/firmware/lib/include/ |
H A D | vboot_audio_private.h | 21 uint32_t checksum; /* crc32 over count & all notes */ member in struct:VbDevMusic
|
/external/skia/src/gpu/ |
H A D | GrProgramDesc.h | 32 // Gets the a checksum of the key. Can be used as a hash value for a fast lookup in a cache. 92 uint32_t* checksum = this->atOffset<uint32_t, GrProgramDesc::kChecksumOffset>(); local 93 *checksum = 0; 94 *checksum = SkChecksum::Compute(reinterpret_cast<uint32_t*>(fKey.begin()), keyLength); 99 // 2. uint32_t for a checksum.
|
/external/elfutils/src/libelf/ |
H A D | elf32_checksum.c | 1 /* Compute simple checksum from permanent parts of the ELF file. 54 elfw2(LIBELFBITS,checksum) (elf) 117 /* To compute the checksum we need to get to the data. For 169 INTDEF(elfw2(LIBELFBITS,checksum))
|
/external/skia/src/sfnt/ |
H A D | SkSFNTHeader.h | 58 SK_SFNT_ULONG checksum; member in struct:SkSFNTHeader::TableDirectoryEntry
|