Searched defs:checksum (Results 1 - 25 of 115) sorted by relevance

12345

/external/libchrome/base/metrics/
H A Dbucket_ranges_unittest.cc22 EXPECT_EQ(0u, ranges.checksum());
67 EXPECT_EQ(289217253u, ranges.checksum());
73 EXPECT_EQ(2843835776u, ranges.checksum());
81 uint32_t checksum = i; local
84 if (checksum & 1)
85 checksum = kReversedPolynomial ^ (checksum >> 1);
87 checksum >>= 1;
89 EXPECT_EQ(kCrcTable[i], checksum);
H A Dbucket_ranges.h43 uint32_t checksum() const { return checksum_; } function in class:base::BucketRanges
44 void set_checksum(uint32_t checksum) { checksum_ = checksum; } argument
H A Dbucket_ranges.cc119 // Seed checksum.
120 uint32_t checksum = static_cast<uint32_t>(ranges_.size()); local
123 checksum = Crc32(checksum, ranges_[index]);
124 return checksum;
H A Dhistogram_unittest.cc425 uint32_t checksum; local
426 EXPECT_TRUE(iter.ReadUInt32(&checksum));
427 EXPECT_EQ(histogram->bucket_ranges()->checksum(), checksum);
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/data/
H A DCRC64.java15 * CRC64 checksum calculator based on the polynom specified in ISO 3309. The
45 * Calculates the CRC64 checksum for the given data array.
48 * data to calculate checksum for
49 * @return checksum value
51 public static long checksum(final byte[] data) { method in class:CRC64
/external/libnfc-nci/src/adaptation/
H A DCrcChecksum.cpp69 ** 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__);
H A Dlibmain.c106 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)))
/external/rmi4utils/rmi4update/
H A Dfirmware_image.cpp30 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;
82 fprintf(stderr, "Firmware image checksum verification failed, saw 0x%08lX, calculated 0x%08lX\n",
/external/sfntly/cpp/src/sfntly/table/
H A Dheader.cc44 Header::Header(int32_t tag, int64_t checksum, int32_t offset, int32_t length) argument
50 checksum_(checksum),
H A Dheader.h33 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/android-clat/
H A Dipv4.c21 #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 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; 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...]
/external/guava/guava/src/com/google/common/hash/
H A DChecksumHashFunction.java59 * 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/zopfli/src/zopfli/
H A Dzlib_container.c28 /* 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/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
H A DDESedeWrapEngine.java54 // checksum digest
309 * - Use the first 8 octets of this hash as the checksum value.
314 * @return the CMS checksum.
334 * @param checksum the checksum.
339 byte[] checksum)
341 return Arrays.constantTimeAreEqual(calculateCMSKeyChecksum(key), checksum);
337 checkCMSKeyChecksum( byte[] key, byte[] checksum) argument
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
H A DNonVolatileStore.cpp80 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/skia/src/sfnt/
H A DSkSFNTHeader.h58 SK_SFNT_ULONG checksum; member in struct:SkSFNTHeader::TableDirectoryEntry
/external/tcpdump/
H A Dchecksum.c127 /* precompute checksum tables */
136 * Creates the OSI Fletcher checksum. See 8473-1, Appendix C, section C.3.
137 * The checksum field of the passed PDU does not need to be reset to zero.
148 uint16_t checksum; local
156 * Ignore the contents of the checksum field.
187 checksum = ((x << 8) | y);
189 return checksum;
/external/valgrind/coregrind/m_syswrap/
H A Dsyswrap-amd64-solaris.c228 /* Calculate a checksum. */
231 ULong checksum; local
238 checksum = ML_(fletcher64)((UInt*)&buf, sizeof(buf) / sizeof(UInt));
239 VKI_UC_GUEST_RFLAGS_CHECKSUM(uc) = checksum;
436 ULong checksum; local
443 checksum = ML_(fletcher64)((UInt*)&buf,
445 if (checksum == VKI_UC_GUEST_RFLAGS_CHECKSUM(uc)) {
/external/vboot_reference/firmware/lib/include/
H A Dvboot_audio_private.h21 uint32_t checksum; /* crc32 over count & all notes */ member in struct:VbDevMusic
/external/webrtc/webrtc/modules/utility/source/
H A Dfile_player_unittests.cc61 rtc::Md5Digest checksum; local
67 checksum.Update(out, num_samples * sizeof(out[0]));
75 checksum.Finish(checksum_result, rtc::Md5Digest::kSize));
/external/curl/src/
H A Dtool_metalink.h80 metalink_checksum *checksum; member in struct:metalinkfile
135 * Check checksum of file denoted by filename.
137 * This function returns 1 if the checksum matches or one of the
145 * No checksum in Metalink supported, hash algorithm not available, or
146 * Metalink does not contain checksum.
/external/kernel-headers/original/uapi/linux/
H A Dcycx_cfm.h80 * @checksum - info + image
89 unsigned short checksum; member in struct:cycx_firmware
H A Dromfs_fs.h28 __be32 checksum; member in struct:romfs_super_block
38 __be32 checksum; member in struct:romfs_inode
/external/opencv3/3rdparty/include/ffmpeg_/libavformat/
H A Davio.h99 unsigned long checksum; member in struct:AVIOContext
101 unsigned long (*update_checksum)(unsigned long checksum, const uint8_t *buf, unsigned int size);

Completed in 896 milliseconds

12345