/external/android-clat/ |
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; in ip_checksum_add() local 40 checksum += *data_16; in ip_checksum_add() 45 checksum += *(uint8_t *)data_16; in ip_checksum_add() 48 return checksum; in ip_checksum_add() 52 * folds a 32-bit partial checksum into 16 bits [all …]
|
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) { in packet_checksum() argument 40 checksum = ip_checksum_add(checksum, packet[i].iov_base, packet[i].iov_len); in packet_checksum() 43 return ip_checksum_finish(checksum); in packet_checksum() 222 * checksum - pseudo-header checksum 228 uint32_t checksum, const uint8_t *payload, size_t payload_size) { in icmp_to_icmp6() argument [all …]
|
D | clatd_test.cpp | 29 #include "checksum.h" 47 55, (p), (c1), (c2), /* TTL=55, protocol=p, checksum=c1,c2 */ \ 70 0x00, UDP_LEN, 0, 0, /* Length 21, checksum empty for now */ 75 0x08, 0x00, 0x88, 0xd0, /* Type 8, code 0, checksum 0x88d0 */ \ 79 0x80, 0x00, 0xc3, 0x42, /* Type 128, code 0, checksum 0xc342 */ \ 213 EXPECT_EQ(0, ip_checksum(ip, sizeof(*ip))) << msg << ": Incorrect IP checksum\n"; in check_packet() 257 // If we understand the payload, verify the checksum. in check_packet() 259 uint16_t checksum; in check_packet() local 264 checksum = ip_checksum_finish(ip_checksum_add(pseudo_checksum, payload, payload_length)); in check_packet() 267 checksum = ip_checksum(payload, payload_length); in check_packet() [all …]
|
/external/zlib/src/contrib/dotzlib/DotZLib/ |
D | ChecksumImpl.cs | 23 /// The value of the current checksum 28 /// Initializes a new instance of the checksum generator base - the current checksum is 37 /// Initializes a new instance of the checksum generator basewith a specified value 39 /// <param name="initialValue">The value to set the current checksum to</param> 46 /// Resets the current checksum to zero 51 /// Gets the current checksum value 56 /// Updates the current checksum with part of an array of bytes 58 /// <param name="data">The data to update the checksum with</param> 69 /// Updates the current checksum with an array of bytes. 71 /// <param name="data">The data to update the checksum with</param> [all …]
|
/external/autotest/client/common_lib/ |
D | packages.py | 22 # the name of the checksum file that stores the packages' checksums 23 CHECKSUM_FILE = "packages.checksum" 247 to dump stuff (like checksum files of the repositories 259 # In memory dictionary that stores the checksum's of packages 417 # then check to see if the .checksum file is the latest 423 # update the checksum in that directory 450 use_checksum : This is set to False to fetch the packages.checksum file 451 so that the checksum comparison is bypassed for the 452 checksum file itself. This is used internally by the 479 # Fetch the package if it is not there, the checksum does [all …]
|
/external/guava/guava/src/com/google/common/hash/ |
D | ChecksumHashFunction.java | 23 import java.util.zip.Checksum; 26 * {@link HashFunction} adapter for {@link Checksum} instances. 32 private final Supplier<? extends Checksum> checksumSupplier; 36 ChecksumHashFunction(Supplier<? extends Checksum> checksumSupplier, int bits, String toString) { in ChecksumHashFunction() 59 * Hasher that updates a checksum. 63 private final Checksum checksum; field in ChecksumHashFunction.ChecksumHasher 65 private ChecksumHasher(Checksum checksum) { in ChecksumHasher() argument 66 this.checksum = checkNotNull(checksum); in ChecksumHasher() 71 checksum.update(b); in update() 76 checksum.update(bytes, off, len); in update() [all …]
|
/external/toolchain-utils/crosperf/ |
D | image_checksummer.py | 2 """Compute image checksum.""" 14 """Compute image checksum.""" 17 """Compute checksum for an image.""" 25 def Checksum(self): member in ImageChecksummer.PerImageChecksummer 28 logger.GetLogger().LogOutput("Acquiring checksum for '%s'." % 32 raise RuntimeError('Called Checksum on non-local image!') 37 logger.GetLogger().LogOutput('Computed checksum is ' 40 raise RuntimeError('Checksum computing error.') 41 logger.GetLogger().LogOutput('Checksum is: %s' % self._checksum) 55 def Checksum(self, label, log_level): member in ImageChecksummer [all …]
|
D | machine_manager.py | 27 """Raised if all machines for a label don't have the same checksum.""" 32 """Raised if all machines for a label don't have the same checksum string.""" 53 self.checksum = None 184 l.append(str(self.checksum)) 257 checksum = label.checksum 259 if checksum and (machine.checksum == checksum): 303 machine.checksum = checksum 316 # checksum (otherwise the cache lookup may not be valid). 327 # Make sure this machine's checksum matches our 'common' checksum. 362 cros_machine.checksum = out.strip() [all …]
|
/external/syslinux/core/lwip/src/core/ipv4/ |
D | inet_chksum.c | 3 * Incluse internet checksum functions. 47 /* These are some reference implementations of the checksum algorithm, with the 71 * lwip checksum 75 * @return host order (!) lwip checksum (non-inverted Internet sum) 124 * IP checksum two bytes at a time with support for 131 * @return host order (!) lwip checksum (non-inverted Internet sum) 179 * An optimized checksum routine. Basically, it uses loop-unrolling on 180 * the checksum loop, treating the head and tail bytes specially, whereas 185 * @return host order (!) lwip checksum (non-inverted Internet sum) 261 * Calculates the pseudo Internet checksum used by TCP and UDP for a pbuf chain. [all …]
|
/external/llvm/test/Object/Inputs/COFF/ |
D | section-aux-symbol.yaml | 21 CheckSum: 0 33 CheckSum: 0 45 CheckSum: 0 57 CheckSum: 0 69 CheckSum: 0 81 CheckSum: 0 93 CheckSum: 0 105 CheckSum: 0 117 CheckSum: 0 129 CheckSum: 0 [all …]
|
/external/deqp/scripts/khr_util/ |
D | registry_cache.py | 32 def __init__(self, filename, revision, checksum): argument 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.che… 50 return self.checksum 66 def fetchFile (dstPath, url, checksum): argument 79 if checksum != gotChecksum: 80 raise Exception("Checksum mismatch, exepected %s, got %s" % (checksum, gotChecksum)) 84 def checkFile (filename, checksum): argument 92 return computeChecksum(readFile(filename)) == checksum [all …]
|
/external/lz4/doc/ |
D | lz4_Frame_format.md | 36 and optional [xxHash-32 checksum method](https://github.com/Cyan4973/xxHash), 64 | MagicNb | F. Descriptor | Block | (...) | EndMark | C. Checksum | 90 Content Checksum verify that the full content has been decoded correctly. 91 The content checksum is the result 94 Content checksum is only present when its associated flag 96 Content Checksum validates the result, 132 |FieldName| Version | B.Indep | B.Checksum| C.Size | C.Checksum|*Reserved*| 159 __Block checksum flag__ 161 If this flag is set, each data block will be followed by a 4-bytes checksum, 165 Block checksum usage is optional. [all …]
|
/external/tcpdump/tests/ |
D | udld-v.out | 2 Checksum 0x6d85 (unverified) 11 Checksum 0x805d (unverified) 20 Checksum 0x805e (unverified) 29 Checksum 0x805c (unverified) 38 Checksum 0x805d (unverified) 47 Checksum 0x805b (unverified) 56 Checksum 0x805c (unverified) 65 Checksum 0x805a (unverified) 74 Checksum 0x805b (unverified) 83 Checksum 0x8059 (unverified) [all …]
|
/external/stressapptest/src/ |
D | adler32memcpy.h | 21 // Encapsulation for Adler checksum. Please see adler32memcpy.cc for more 22 // detail on the adler checksum algorithm. 29 // Returns string representation of the Adler checksum 31 // Sets components of the Adler checksum. 35 // Components of Adler checksum. 41 // Calculates Adler checksum for supplied data. 43 AdlerChecksum *checksum); 47 unsigned int size_in_bytes, AdlerChecksum *checksum); 52 unsigned int size_in_bytes, AdlerChecksum *checksum); 56 unsigned int size_in_bytes, AdlerChecksum *checksum);
|
D | 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) { in CalculateAdlerChecksum() argument 119 checksum->Set(a1, a2, b1, b2); in CalculateAdlerChecksum() 125 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyC() argument 159 checksum->Set(a1, a2, b1, b2); in AdlerMemcpyC() [all …]
|
/external/tcpdump/ |
D | in_cksum.c | 2 * 4.4-Lite-2 Internet checksum routine, modified to take a vector of 48 * Checksum routine for Internet Protocol family headers (Portable Version). 152 * Given the host-byte-order value of the checksum field in a packet 153 * header, and the network-byte-order computed checksum of the data 154 * that the checksum covers (including the checksum itself), compute 155 * what the checksum field *should* have been. 163 * The value that should have gone into the checksum field in in_cksum_shouldbe() 165 * *but* the checksum field. in in_cksum_shouldbe() 167 * We can compute that by subtracting the value of the checksum in in_cksum_shouldbe() 171 * "sum" is the value of the checksum field, and "computed_sum" in in_cksum_shouldbe() [all …]
|
/external/libchrome/base/metrics/ |
D | bucket_ranges_unittest.cc | 22 EXPECT_EQ(0u, ranges.checksum()); in TEST() 50 // Checksum does not match. in TEST() 60 TEST(BucketRangesTest, Checksum) { in TEST() argument 67 EXPECT_EQ(289217253u, ranges.checksum()); in TEST() 73 EXPECT_EQ(2843835776u, ranges.checksum()); in TEST() 81 uint32_t checksum = i; in TEST() local 84 if (checksum & 1) in TEST() 85 checksum = kReversedPolynomial ^ (checksum >> 1); in TEST() 87 checksum >>= 1; in TEST() 89 EXPECT_EQ(kCrcTable[i], checksum); in TEST()
|
/external/syslinux/gpxe/src/net/ |
D | tcpip.c | 25 * @v pshdr_csum Pseudo-header checksum 60 * @v trans_csum Transport-layer checksum to complete, or NULL 85 * @v partial Checksum of already-summed data, in network byte order 88 * @ret cksum Updated checksum, in network byte order 90 * Calculates a TCP/IP-style 16-bit checksum over the data block. The 91 * checksum is returned in network byte order. 93 * This function may be used to add new data to an existing checksum. 96 * byte-swap either the input partial checksum, the output checksum, 128 * @ret cksum Checksum, in network byte order 130 * Calculates a TCP/IP-style 16-bit checksum over the data block. The [all …]
|
/external/autotest/client/cros/video/ |
D | frame_checksum_utils.py | 11 @param checksums: list of checksums, each checksum in a 4-tuple of ints 18 for checksum in checksums: 19 if checksum in counts: 20 counts[checksum] += 1 22 counts[checksum] = 1 37 for i, checksum in enumerate(checksums): 38 if checksum not in d: 39 d[checksum] = i
|
/external/fonttools/Lib/fontTools/ttLib/ |
D | sfnt.py | 80 checksum = calcChecksum(data[:8] + b'\0\0\0\0' + data[12:]) 82 checksum = calcChecksum(data) 85 assert checksum == entry.checksum, "bad checksum for '%s' table" % tag 86 elif checksum != entry.checkSum: 88 print("bad checksum for '%s' table" % tag) 146 entry.checkSum = calcChecksum(data[:8] + b'\0\0\0\0' + data[12:]) 150 entry.checkSum = calcChecksum(data) 240 checksums.append(self.tables[tags[i]].checkSum) 242 # TODO(behdad) I'm fairly sure the checksum for woff is not working correctly. 245 # Create a SFNT directory for checksum calculation purposes [all …]
|
/external/deqp/external/ |
D | fetch_sources.py | 52 def __init__(self, url, filename, checksum, baseDir, extractDir = "src", postExtract=None): argument 56 self.checksum = checksum 68 if self.getExtractedChecksum() != self.checksum: 71 self.storeExtractedChecksum(self.checksum) 81 return computeChecksum(readFile(archiveFile)) == self.checksum 96 def storeExtractedChecksum (self, checksum): argument 97 writeFile(self.getExtractedChecksumFilePath(), checksum) 104 checksum = computeChecksum(data) 107 if checksum != self.checksum: 108 …raise Exception("Checksum mismatch for %s, exepected %s, got %s" % (self.filename, self.checksum, …
|
/external/iptables/extensions/ |
D | libxt_CHECKSUM.c | 1 /* Shared library add-on to xtables for CHECKSUM 22 "CHECKSUM target options\n" in CHECKSUM_help() 23 " --checksum-fill Fill in packet checksum.\n"); in CHECKSUM_help() 27 {.name = "checksum-fill", .id = O_CHECKSUM_FILL, 46 printf(" CHECKSUM"); in CHECKSUM_print() 58 printf(" --checksum-fill"); in CHECKSUM_save() 62 .name = "CHECKSUM",
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
D | ChecksumBenchmark.java | 26 import java.util.zip.Checksum; 29 * Benchmarks for comparing {@link Checksum}s and {@link HashFunction}s that wrap {@link Checksum}s. 60 CRC32 checksum = new CRC32(); in crc32Checksum() local 61 checksum.update(testBytes); in crc32Checksum() 62 result ^= checksum.getValue(); in crc32Checksum() 76 Adler32 checksum = new Adler32(); in adler32Checksum() local 77 checksum.update(testBytes); in adler32Checksum() 78 result ^= checksum.getValue(); in adler32Checksum()
|
/external/autotest/server/site_tests/display_Tearing/ |
D | display_Tearing.py | 64 """Gets the frame checksum of the full screen of the given color. 68 @return The frame checksum mentioned above, which is a tuple. 77 # Gets the checksum of the last one image. 82 """Makes checksum table, which maps checksums into colors. 87 x is the checksum of the full screen of pure color y. 98 checksum = self._get_single_color_checksum(chameleon_port, color) 99 if checksum in checksum_table: 101 checksum_table[checksum] = color 102 logging.info('Color %d has checksums %r', (color, checksum)) 144 for checksum in captured_checksums: [all …]
|
/external/squashfs-tools/squashfs-tools/ |
D | process_fragments.c | 58 * Compute 16 bit BSD checksum over the data, and check for sparseness 75 file_buffer->checksum = chksum; in checksum_sparse() 220 char *data_buffer, int fd, unsigned short *checksum) in get_fragment_cksum() argument 237 *checksum = cksum; in get_fragment_cksum() 279 unsigned short checksum; in frag_thrd() local 325 checksum = dupl_ptr->fragment_checksum; in frag_thrd() 329 * If we have the checksum and it matches then in frag_thrd() 332 * If we *don't* have the checksum, then we are in frag_thrd() 334 * "old" filesystem. Read it in and checksum in frag_thrd() 339 data_buffer, fd, &checksum); in frag_thrd() [all …]
|