/external/android-clat/ |
H A D | 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 132 ip_checksum_adjust(uint16_t checksum, uint32_t old_hdr_sum, uint32_t new_hdr_sum) argument [all...] |
H A D | clatd_test.cpp | 29 #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 D | ipv4.c | 21 #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 D | translate.c | 23 #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 D | DESedeWrapEngine.java | 55 // 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 D | bucket_ranges.cc | 111 // Seed checksum. 112 uint32 checksum = static_cast<uint32>(ranges_.size()); local 115 checksum = Crc32(checksum, ranges_[index]); 116 return checksum;
|
H A D | bucket_ranges.h | 39 uint32 checksum() const { return checksum_; } function in class:base::BucketRanges 40 void set_checksum(uint32 checksum) { checksum_ = checksum; } argument
|
H A D | bucket_ranges_unittest.cc | 20 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 D | histogram_unittest.cc | 401 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 D | 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/chromium_org/chrome/browser/spellchecker/ |
H A D | spellcheck_custom_dictionary.cc | 32 // 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 D | print_web_view_helper_browsertest.cc | 379 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 D | bookmark_codec_unittest.cc | 143 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 D | ie7_password_win.cc | 102 unsigned char checksum = 0; local 107 checksum += hash_byte; 110 url_hash += base::StringPrintf(L"%2.2X", checksum);
|
/external/chromium_org/courgette/ |
H A D | ensemble_apply.cc | 120 uint32 checksum = CalculateCrc(base_region_.start(), base_region_.length()); local 121 if (source_checksum_ != checksum)
|
/external/chromium_org/ppapi/tests/ |
H A D | test_truetype_font.cc | 42 uint32_t checksum; member in struct:__anon10225::FontDirectoryEntry
|
/external/chromium_org/printing/ |
H A D | image.cc | 55 std::string Image::checksum() const { function in class:printing::Image
|
/external/chromium_org/rlz/lib/ |
H A D | rlz_lib.cc | 411 // 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 D | encodetable.h | 24 #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 D | encodetable_test.cc | 24 #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 D | headerparser.cc | 291 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 D | vcdecoder_test.cc | 19 #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 D | vcencoder_test.cc | 24 #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 D | compiler.jar | META-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 D | svn-apply | 76 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");
|