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

1234567

/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;
/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/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),
/external/syslinux/com32/gplinclude/acpi/
H A Drsdp.h28 uint8_t checksum; member in struct:__anon19226
H A Dstructs.h39 uint8_t checksum; member in struct:__anon19235
/external/syslinux/gpxe/src/arch/i386/firmware/pcbios/
H A Dpnpbios.c47 uint8_t checksum; member in struct:pnp_bios
74 /* Read whole header and verify checksum */
/external/syslinux/gpxe/src/include/gpxe/
H A Dacpi.h28 uint8_t checksum; member in struct:acpi_description_header
/external/syslinux/memdisk/
H A Dacpi.h43 uint8_t checksum; member in struct:acpi_description_header
/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.java57 // checksum digest
312 * - Use the first 8 octets of this hash as the checksum value.
317 * @return the CMS checksum.
337 * @param checksum the checksum.
342 byte[] checksum)
344 return Arrays.constantTimeAreEqual(calculateCMSKeyChecksum(key), checksum);
340 checkCMSKeyChecksum( byte[] key, byte[] checksum) argument
/external/pdfium/xfa/fxbarcode/
H A Dcbc_ean13.cpp40 int32_t checksum = static_cast<CBC_OnedEAN13Writer*>(m_pBCWriter.get()) local
42 byteString += checksum - 0 + '0';
H A Dcbc_ean8.cpp40 int32_t checksum = static_cast<CBC_OnedEAN8Writer*>(m_pBCWriter.get()) local
42 encodeContents += FX_WCHAR(checksum - 0 + '0');
H A Dcbc_onecode.cpp43 void CBC_OneCode::SetPrintChecksum(bool checksum) { argument
46 ->SetPrintChecksum(checksum);
H A Dcbc_upca.cpp40 int32_t checksum = pWriter->CalcChecksum(byteString); local
41 byteString += checksum - 0 + '0';
/external/skia/src/sfnt/
H A DSkSFNTHeader.h58 SK_SFNT_ULONG checksum; member in struct:SkSFNTHeader::TableDirectoryEntry
/external/syslinux/com32/mboot/
H A Dmb_header.h41 uint32_t checksum; member in struct:multiboot_header
/external/syslinux/gpxe/src/core/
H A Dnvo.c36 * Calculate checksum over non-volatile stored options
86 uint8_t *checksum = data; local
90 /* Recalculate checksum */
91 *checksum -= nvo_checksum ( nvo );
121 /* Steal one byte for the checksum */
125 /* If checksum fails, or options data starts with a zero,
130 DBGC ( nvo, "NVO %p has checksum %02x and initial byte %02x; "
/external/syslinux/gpxe/src/util/
H A Dmakerom.pl133 sub checksum ($$) { subroutine
205 checksum(\$rom, $opts{'n'} ? $stubsize : $romsize);
222 checksum(\$rom, ord(substr($rom, 2, 1)) * 512);
H A Dmodrom.pl131 sub checksum ($) { subroutine
199 &checksum(\$rom);
216 &checksum(\$rom);

Completed in 1835 milliseconds

1234567