HomeSort by relevance Sort by last modified time
    Searched refs:checksum (Results 1 - 25 of 462) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/chrome/browser/chromeos/login/
hwid_checker.cc 31 char checksum[5]; local
33 snprintf(checksum, 5, "%04u", crc32 % 10000);
35 return checksum;
40 std::string checksum; local
41 if (!RE2::FullMatch(hwid, "([\\s\\S]*) (\\d{4})", &body, &checksum))
43 return CalculateHWIDv2Checksum(body) == checksum;
55 std::string checksum; local
56 checksum += base32_alphabet[(crc32 >> 5) & 0x1f];
57 checksum += base32_alphabet[crc32 & 0x1f];
58 return checksum;
74 std::string checksum = local
84 std::string checksum; local
95 std::string not_checksum, checksum; local
    [all...]
  /external/genext2fs/
test.sh 19 checksum=$1
21 if [ x$md5 = x$checksum ] ; then
31 # Usage: dtest file-size number-of-blocks correct-checksum
33 size=$1; blocks=$2; checksum=$3
36 md5cmp $checksum
43 # Usage: ftest spec-file number-of-blocks correct-checksum
45 fname=$1; blocks=$2; checksum=$3
48 md5cmp $checksum
  /external/chromium_org/rlz/lib/
crc8.h 19 unsigned char checksum,
  /external/android-clat/
translate.h 34 // Calculates the checksum over all the packet components starting from pos.
35 uint16_t packet_checksum(uint32_t checksum, clat_packet packet, int pos);
51 int icmp_to_icmp6(clat_packet out, int pos, const struct icmphdr *icmp, uint32_t checksum,
53 int icmp6_to_icmp(clat_packet out, int pos, const struct icmp6_hdr *icmp6, uint32_t checksum,
57 int tcp_packet(clat_packet out, int pos, const struct tcphdr *tcp, uint32_t checksum, size_t len);
58 int udp_packet(clat_packet out, int pos, const struct udphdr *udp, uint32_t checksum, size_t len);
61 uint32_t checksum, const char *payload, size_t payload_size);
62 int udp_translate(clat_packet out, int pos, const struct udphdr *udp, uint32_t checksum,
ipv4.c 30 #include "checksum.h"
40 * checksum - pseudo-header checksum
44 int icmp_packet(clat_packet out, int pos, const struct icmphdr *icmp, uint32_t checksum,
57 return icmp_to_icmp6(out, pos, icmp, checksum, payload, payload_size);
74 uint32_t checksum; local
118 * UDP include parts of the IP header in the checksum. Set the length to zero because we don't
124 // Calculate the pseudo-header checksum.
125 checksum = ipv6_pseudo_header_checksum(0, ip6_targ, len_left);
128 iov_len = icmp_packet(out, pos + 1, (const struct icmphdr *) next_header, checksum, len_left)
    [all...]
ipv6.c 31 #include "checksum.h"
42 * checksum - pseudo-header checksum (unused)
46 int icmp6_packet(clat_packet out, int pos, const struct icmp6_hdr *icmp6, uint32_t checksum,
59 return icmp6_to_icmp(out, pos, icmp6, checksum, payload, payload_size);
91 uint32_t checksum; local
130 * UDP include parts of the IP header in the checksum. Set the length to zero because we don't
136 // Calculate the pseudo-header checksum.
137 checksum = ipv4_pseudo_header_checksum(0, ip_targ, len_left);
141 iov_len = icmp6_packet(out, pos + 1, (const struct icmp6_hdr *) next_header, checksum,
    [all...]
translate.c 31 #include "checksum.h"
38 * calculates the checksum over all the packet components starting from pos
39 * checksum - checksum of packet components before pos
40 * packet - packet to calculate the checksum of
42 * returns - the completed 16-bit checksum, ready to write into a checksum header field
44 uint16_t packet_checksum(uint32_t checksum, clat_packet packet, int pos) {
48 checksum = ip_checksum_add(checksum, packet[i].iov_base, packet[i].iov_len)
    [all...]
checksum.c 16 * checksum.c - ipv4/ipv6 checksum calculation
27 #include "checksum.h"
30 * adds data to a checksum
31 * current - the current checksum (or 0 to start a new checksum)
32 * data - the data to add to the checksum
36 uint32_t checksum = current; local
41 checksum += *data_16;
46 checksum += *(uint8_t *)data_16
    [all...]
  /external/chromium_org/chrome/browser/nacl_host/test/
gdb_rsp.py 13 checksum = 0
15 checksum = (checksum + ord(char)) % 0x100
16 return checksum
59 checksum = match.group(2)
61 if checksum != expected_checksum:
62 raise AssertionError('Bad RSP checksum: %r != %r' %
63 (checksum, expected_checksum))
  /external/chromium_org/base/metrics/
bucket_ranges_unittest.cc 20 EXPECT_EQ(0u, ranges.checksum());
48 // Checksum does not match.
58 TEST(BucketRangesTest, Checksum) {
65 EXPECT_EQ(289217253u, ranges.checksum());
71 EXPECT_EQ(2843835776u, ranges.checksum());
79 uint32 checksum = i; local
82 if (checksum & 1)
83 checksum = kReversedPolynomial ^ (checksum >> 1);
85 checksum >>= 1
    [all...]
bucket_ranges.h 39 uint32 checksum() const { return checksum_; } function in class:base::BucketRanges
40 void set_checksum(uint32 checksum) { checksum_ = checksum; }
48 // Checksum methods to verify whether the ranges are corrupted (e.g. bad
63 // Checksum for the conntents of ranges_. Used to detect random over-writes
  /external/stressapptest/src/
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);
    [all...]
  /external/dropbear/libtomcrypt/src/mac/pmac/
pmac_done.c 39 /* xor Lr against the checksum */
41 state->checksum[x] ^= state->block[x] ^ state->Lr[x];
46 state->checksum[x] ^= state->block[x];
48 state->checksum[x] ^= 0x80;
52 if ((err = cipher_descriptor[state->cipher_idx].ecb_encrypt(state->checksum, state->checksum, &state->key)) != CRYPT_OK) {
59 out[x] = state->checksum[x];
  /external/chromium/chrome/browser/sync/util/
crypto_helpers_unittest.cc 15 std::string checksum("e2c865db4162bed963bfaa9ef6ac18f0");
16 ASSERT_EQ(checksum, md5.GetHexDigest());
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/
read_checksum_from_png_unittest.py 33 checksum = read_checksum_from_png.read_checksum(filehandle)
34 self.assertEqual('3c4134fe2739880353f91c5b84cadbaa', checksum)
38 checksum = read_checksum_from_png.read_checksum(filehandle)
39 self.assertIsNone(checksum)
  /hardware/invensense/60xx/libsensors_iio/software/core/mllite/
storage_manager.c 35 uint32_t checksum; member in struct:data_header_t
126 uint32_t checksum; local
139 checksum = inv_checksum(data, len);
140 if (checksum != hd->checksum)
150 checksum = inv_checksum(data, hd->size);
151 if (checksum == hd->checksum) {
184 hd->checksum = inv_checksum(cur, ds.hd[kk].size);
194 hd->checksum = inv_checksum(data + sizeof(struct data_header_t)
    [all...]
  /hardware/invensense/65xx/libsensors_iio/software/core/mllite/
storage_manager.c 39 uint32_t checksum; member in struct:data_header_t
130 uint32_t checksum; local
145 checksum = inv_checksum(data, len);
146 if (checksum != hd->checksum)
157 checksum = inv_checksum(data, hd->size);
158 if (checksum != hd->checksum)
190 hd->checksum = inv_checksum(cur, ds.hd[kk].size);
200 hd->checksum = inv_checksum(data + sizeof(struct data_header_t)
    [all...]
  /external/chromium_org/net/tools/testserver/
echo_message.py 7 This program has classes and functions to encode, decode, calculate checksum
14 <version><checksum><payload_size><payload>. <version> is the version number
15 of the "echo request" protocol. <checksum> is the checksum of the <payload>.
19 <version><checksum><payload_size><key><encoded_payload>.<version>,
20 <checksum> and <payload_size> are same as what is in the "echo request" message.
36 This class knows how to parse the checksum, payload_size from the
37 "echo request" and "echo response" messages. It holds the checksum,
44 # This specifies the starting position of the checksum and length of the
45 # checksum. Maximum value for the checksum is less than (2 ** 31 - 1)
    [all...]
  /external/sfntly/cpp/src/sfntly/table/
header.cc 44 Header::Header(int32_t tag, int64_t checksum, int32_t offset, int32_t length)
50 checksum_(checksum),
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/
romfs_fs.h 25 __be32 checksum; member in struct:romfs_super_block
35 __be32 checksum; member in struct:romfs_inode
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/
romfs_fs.h 25 __be32 checksum; member in struct:romfs_super_block
35 __be32 checksum; member in struct:romfs_inode
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/
romfs_fs.h 25 __be32 checksum; member in struct:romfs_super_block
35 __be32 checksum; member in struct:romfs_inode
  /external/chromium_org/sdch/open-vcdiff/src/
codetablewriter_interface.h 26 #include "checksum.h" // VCDChecksum
65 // Adds a checksum to the output.
66 virtual void AddChecksum(VCDChecksum checksum) = 0;
  /external/open-vcdiff/src/
codetablewriter_interface.h 26 #include "checksum.h" // VCDChecksum
65 // Adds a checksum to the output.
66 virtual void AddChecksum(VCDChecksum checksum) = 0;
  /packages/apps/Launcher3/util/com/android/launcher3/
DecoderRing.java 126 if (key.checksum != checkKey(key)) {
132 // other types are wrapped in a checksum message
140 CRC32 checksum = new CRC32(); local
141 checksum.update(wrapper.payload);
142 if (wrapper.checksum != checksum.getValue()) {
193 CRC32 checksum = new CRC32(); local
194 checksum.update(key.type);
195 checksum.update((int) (key.id & 0xffff));
196 checksum.update((int) ((key.id >> 32) & 0xffff))
    [all...]

Completed in 724 milliseconds

1 2 3 4 5 6 7 8 91011>>