Searched defs:checksum (Results 1 - 25 of 129) sorted by path

123456

/external/android-clat/
H A Dchecksum.c16 * 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
132 ip_checksum_adjust(uint16_t checksum, uint32_t old_hdr_sum, uint32_t new_hdr_sum) argument
[all...]
H A Dclatd_test.cpp29 #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";
257 // If we understand the payload, verify the checksum.
259 uint16_t checksum; local
264 checksum = ip_checksum_finish(ip_checksum_add(pseudo_checksum, payload, payload_length));
267 checksum
848 uint16_t checksum; member in struct:checksum_data
[all...]
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 Dtranslate.c23 #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) { argument
40 checksum = ip_checksum_add(checksum, packe
227 icmp_to_icmp6(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, uint32_t checksum, const uint8_t *payload, size_t payload_size) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
H A DDESedeWrapEngine.java55 // checksum digest
310 * - Use the first 8 octets of this hash as the checksum value.
313 * @return the CMS checksum.
332 * @param checksum
338 byte[] checksum)
340 return Arrays.constantTimeAreEqual(calculateCMSKeyChecksum(key), checksum);
336 checkCMSKeyChecksum( byte[] key, byte[] checksum) argument
/external/chromium_org/base/metrics/
H A Dbucket_ranges.cc111 // Seed checksum.
112 uint32 checksum = static_cast<uint32>(ranges_.size()); local
115 checksum = Crc32(checksum, ranges_[index]);
116 return checksum;
H A Dbucket_ranges.h39 uint32 checksum() const { return checksum_; } function in class:base::BucketRanges
40 void set_checksum(uint32 checksum) { checksum_ = checksum; } argument
H A Dbucket_ranges_unittest.cc20 EXPECT_EQ(0u, ranges.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;
87 EXPECT_EQ(kCrcTable[i], checksum);
H A Dhistogram_unittest.cc401 uint32 checksum; local
402 EXPECT_TRUE(iter.ReadUInt32(&checksum));
403 EXPECT_EQ(histogram->bucket_ranges()->checksum(), checksum);
/external/chromium_org/chrome/browser/chromeos/login/
H A Dhwid_checker.cc31 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/chromium_org/chrome/browser/spellchecker/
H A Dspellcheck_custom_dictionary.cc32 // Prefix for the checksum in the dictionary file.
35 // The status of the checksum in a custom spellcheck dictionary.
57 // valid checksum, then returns ChecksumStatus::VALID. If the file has an
58 // invalid checksum, then returns ChecksumStatus::INVALID and clears |words|.
66 std::string checksum = contents.substr(pos + strlen(CHECKSUM_PREFIX)); local
68 if (checksum != base::MD5String(contents))
87 // the dictionary checksum is not valid, but backup checksum is valid, then
94 // Load the contents and verify the checksum.
101 // Load the backup and verify its checksum
120 std::string checksum = base::MD5String(content.str()); local
121 content << CHECKSUM_PREFIX << checksum; local
[all...]
/external/chromium_org/chrome/renderer/printing/
H A Dprint_web_view_helper_browsertest.cc379 const char* checksum; member in struct:printing::__anon5837::TestPageData
445 // Retrieve the checksum of the bitmap data from the pseudo printer and
450 if (kTestPages[i].checksum)
451 EXPECT_EQ(kTestPages[i].checksum, bitmap_actual);
/external/chromium_org/components/bookmarks/browser/
H A Dbookmark_codec_unittest.cc143 base::Value* EncodeHelper(BookmarkModel* model, std::string* checksum) { argument
158 *checksum = computed_checksum;
198 // Stored checksum should be as expected.
278 // Undo the change and make sure the checksum is same as original.
403 std::string checksum; local
404 scoped_ptr<base::Value> value(EncodeHelper(model.get(), &checksum));
408 model.reset(DecodeHelper(*value, checksum, &checksum, false));
428 std::string checksum; local
429 scoped_ptr<base::Value> value(EncodeHelper(model.get(), &checksum));
[all...]
/external/chromium_org/components/os_crypt/
H A Die7_password_win.cc102 unsigned char checksum = 0; local
107 checksum += hash_byte;
110 url_hash += base::StringPrintf(L"%2.2X", checksum);
/external/chromium_org/courgette/
H A Densemble_apply.cc120 uint32 checksum = CalculateCrc(base_region_.start(), base_region_.length()); local
121 if (source_checksum_ != checksum)
/external/chromium_org/ppapi/tests/
H A Dtest_truetype_font.cc42 uint32_t checksum; member in struct:__anon10225::FontDirectoryEntry
/external/chromium_org/printing/
H A Dimage.cc55 std::string Image::checksum() const { function in class:printing::Image
/external/chromium_org/rlz/lib/
H A Drlz_lib.cc411 // Find the checksum line.
418 // Calculate checksum of message preceeding checksum line.
433 // Find the checksum value on the response.
439 std::string checksum = response_string.substr(checksum_begin, local
441 base::TrimWhitespaceASCII(checksum, base::TRIM_ALL, &checksum);
446 return calculated_crc == HexStringToInteger(checksum.c_str());
/external/chromium_org/sdch/open-vcdiff/src/
H A Dencodetable.h24 #include "checksum.h"
102 virtual void AddChecksum(VCDChecksum checksum) { argument
104 checksum_ = checksum;
214 // If true, an Adler32 checksum of the target window data will be written as
219 // The checksum to be written to the current target window,
224 // the checksum all at once and to call AddChecksum() with that value.
H A Dencodetable_test.cc24 #include "checksum.h"
374 const VCDChecksum checksum = 0xFFFFFFFF; // would be negative if signed local
375 interleaved_writer.AddChecksum(checksum);
390 ExpectByte(0x8F); // checksum byte 1
391 ExpectByte(0xFF); // checksum byte 2
392 ExpectByte(0xFF); // checksum byte 3
393 ExpectByte(0xFF); // checksum byte 4
394 ExpectByte(0x7F); // checksum byte 5
H A Dheaderparser.cc291 VCDChecksum* checksum) {
296 ParseChecksum("Adler32 checksum value", checksum);
286 ParseSectionLengths( bool has_checksum, size_t* add_and_run_data_length, size_t* instructions_and_sizes_length, size_t* addresses_length, VCDChecksum* checksum) argument
H A Dvcdecoder_test.cc19 #include "checksum.h"
85 void VCDiffDecoderTest::AddChecksum(VCDChecksum checksum) { argument
86 int32_t checksum_as_int32 = static_cast<int32_t>(checksum);
89 // Adjust delta window size to include checksum.
H A Dvcencoder_test.cc24 #include "checksum.h"
99 void ExpectChecksum(VCDChecksum checksum) { argument
101 EXPECT_EQ(checksum,
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/closure/
H A Dcompiler.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/javascript/ com/google/javascript/jscomp/ ...
/external/chromium_org/third_party/WebKit/Tools/Scripts/
H A Dsvn-apply76 sub checksum($);
214 sub checksum($) subroutine
219 my $checksum = Digest::MD5->new->addfile(*FILE)->hexdigest();
221 return $checksum;
360 unlink("$fullPath.orig") if -e "$fullPath.orig" && checksum($fullPath) eq checksum("$fullPath.orig");

Completed in 513 milliseconds

123456