Home
last modified time | relevance | path

Searched full:checksum (Results 1 – 25 of 1056) sorted by relevance

12345678910>>...43

/external/android-clat/
Dchecksum.c16 * 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 …]
Dtranslate.c22 #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 …]
/external/zlib/src/contrib/dotzlib/DotZLib/
DChecksumImpl.cs23 /// 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/guava/guava/src/com/google/common/hash/
DChecksumHashFunction.java23 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/autotest/client/common_lib/
Dpackages.py22 # 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/toolchain-utils/crosperf/
Dimage_checksummer.py2 """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 …]
Dmachine_manager.py27 """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/llvm/test/Object/Inputs/COFF/
Dsection-aux-symbol.yaml21 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/syslinux/core/lwip/src/core/ipv4/
Dinet_chksum.c3 * 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/deqp/scripts/khr_util/
Dregistry_cache.py32 def __init__(self, repository, filename, revision, checksum): argument
36 self.checksum = checksum
39 return hash((self.repository, self.filename, self.revision, self.checksum))
42 …, self.filename, self.revision, self.checksum) == (other.repository, other.filename, other.revisio…
51 return self.checksum
67 def fetchFile (dstPath, url, checksum): argument
80 if checksum != gotChecksum:
81 raise Exception("Checksum mismatch, expected %s, got %s" % (checksum, gotChecksum))
85 def checkFile (filename, checksum): argument
93 return computeChecksum(readFile(filename)) == checksum
[all …]
/external/stressapptest/src/
Dadler32memcpy.h21 // 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);
Dadler32memcpy.cc17 // 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/lz4/doc/
Dlz4_Frame_format.md36 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/libchrome/base/metrics/
Dbucket_ranges_unittest.cc22 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/autotest/client/cros/video/
Dframe_checksum_utils.py11 @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/tcpdump/
Din_cksum.c2 * 4.4-Lite-2 Internet checksum routine, modified to take a vector of
47 * Checksum routine for Internet Protocol family headers (Portable Version).
151 * Given the host-byte-order value of the checksum field in a packet
152 * header, and the network-byte-order computed checksum of the data
153 * that the checksum covers (including the checksum itself), compute
154 * what the checksum field *should* have been.
162 * The value that should have gone into the checksum field in in_cksum_shouldbe()
164 * *but* the checksum field. in in_cksum_shouldbe()
166 * We can compute that by subtracting the value of the checksum in in_cksum_shouldbe()
170 * "sum" is the value of the checksum field, and "computed_sum" in in_cksum_shouldbe()
[all …]
/external/syslinux/gpxe/src/net/
Dtcpip.c25 * @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/tcpdump/tests/
Dudld-v.out2 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/iptables/extensions/
Dlibxt_CHECKSUM.c1 /* 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/
DChecksumBenchmark.java26 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/deqp/external/
Dfetch_sources.py52 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, expected %s, got %s" % (self.filename, self.checksum, c…
/external/fonttools/Lib/fontTools/ttLib/
Dsfnt.py80 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/autotest/server/site_tests/display_Tearing/
Ddisplay_Tearing.py64 """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/
Dprocess_fragments.c58 * 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 …]
/external/e2fsprogs/tests/t_change_uuid_mcsum_seed_mounted/
Dscript12 $DUMPE2FS $TMPFILE 2>&1 | egrep '(Checksum seed:|UUID)' >> $OUT
16 $DUMPE2FS $TMPFILE 2>&1 | egrep '(Checksum seed:|UUID)' >> $OUT
21 $DUMPE2FS $TMPFILE 2>&1 | egrep '(Checksum seed:|UUID)' >> $OUT
25 $DUMPE2FS $TMPFILE 2>&1 | egrep '(Checksum seed:|UUID)' >> $OUT
30 $DUMPE2FS $TMPFILE 2>&1 | egrep '(Checksum seed:|UUID)' >> $OUT
34 $DUMPE2FS $TMPFILE 2>&1 | egrep '(Checksum seed:|UUID)' >> $OUT
39 $DUMPE2FS $TMPFILE 2>&1 | egrep '(Checksum seed:|UUID)' >> $OUT

12345678910>>...43