/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | ChecksumCalculatingInputStream.java | 22 import java.util.zip.Checksum; 25 * A stream that calculates the checksum of the data read. 31 private final Checksum checksum; field in ChecksumCalculatingInputStream 33 public ChecksumCalculatingInputStream(final Checksum checksum, final InputStream in) { in ChecksumCalculatingInputStream() argument 35 if ( checksum == null ){ in ChecksumCalculatingInputStream() 36 throw new NullPointerException("Parameter checksum must not be null"); in ChecksumCalculatingInputStream() 43 this.checksum = checksum; in ChecksumCalculatingInputStream() 50 * stream is exhausted and the Checksum doesn't match the expected 57 checksum.update(ret); in read() 65 * stream is exhausted and the Checksum doesn't match the expected [all …]
|
D | ChecksumVerifyingInputStream.java | 22 import java.util.zip.Checksum; 25 * A stream that verifies the checksum of the data read once the stream is 34 private final Checksum checksum; field in ChecksumVerifyingInputStream 36 public ChecksumVerifyingInputStream(final Checksum checksum, final InputStream in, in ChecksumVerifyingInputStream() argument 38 this.checksum = checksum; in ChecksumVerifyingInputStream() 47 * stream is exhausted and the Checksum doesn't match the expected 57 checksum.update(ret); in read() 60 if (bytesRemaining == 0 && expectedChecksum != checksum.getValue()) { in read() 61 throw new IOException("Checksum verification failed"); in read() 69 * stream is exhausted and the Checksum doesn't match the expected [all …]
|
/external/zlib/src/contrib/dotzlib/DotZLib/ |
D | ChecksumImpl.cs | 23 /// The value of the current checksum 28 /// Initializes a new instance of the checksum generator base - the current checksum is 37 /// Initializes a new instance of the checksum generator basewith a specified value 39 /// <param name="initialValue">The value to set the current checksum to</param> 46 /// Resets the current checksum to zero 51 /// Gets the current checksum value 56 /// Updates the current checksum with part of an array of bytes 58 /// <param name="data">The data to update the checksum with</param> 69 /// Updates the current checksum with an array of bytes. 71 /// <param name="data">The data to update the checksum with</param> [all …]
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/lz4/ |
D | FramedLZ4CompressorInputStreamTest.java | 207 …, // flag - Version 01, block independent, no block checksum, no content size, with content checks… in rejectsFileWithoutBlockSizeByte() 222 …, // flag - Version 00, block independent, no block checksum, no content size, with content checks… in rejectsFileWithWrongVersion() 237 … // flag - Version 01, block independent, no block checksum, with content size, with content check… in rejectsFileWithInsufficientContentSize() 253 …, // flag - Version 01, block independent, no block checksum, no content size, with content checks… in rejectsFileWithoutHeaderChecksum() 261 assertThat(ex.getMessage(), containsString("header checksum")); in rejectsFileWithoutHeaderChecksum() 269 …, // flag - Version 01, block independent, no block checksum, no content size, with content checks… in rejectsFileWithBadHeaderChecksum() 278 assertThat(ex.getMessage(), containsString("header checksum mismatch")); in rejectsFileWithBadHeaderChecksum() 286 …0, // flag - Version 01, block independent, no block checksum, no content size, no content checksum in readsUncompressedBlocks() 288 115, // checksum in readsUncompressedBlocks() 305 …0, // flag - Version 01, block independent, no block checksum, no content size, no content checksum in readsUncompressedBlocksUsingSingleByteRead() [all …]
|
/external/autotest/client/common_lib/ |
D | packages.py | 22 # the name of the checksum file that stores the packages' checksums 23 CHECKSUM_FILE = "packages.checksum" 247 to dump stuff (like checksum files of the repositories 259 # In memory dictionary that stores the checksum's of packages 417 # then check to see if the .checksum file is the latest 423 # update the checksum in that directory 450 use_checksum : This is set to False to fetch the packages.checksum file 451 so that the checksum comparison is bypassed for the 452 checksum file itself. This is used internally by the 479 # Fetch the package if it is not there, the checksum does [all …]
|
/external/guava/guava/src/com/google/common/hash/ |
D | ChecksumHashFunction.java | 23 import java.util.zip.Checksum; 26 * {@link HashFunction} adapter for {@link Checksum} instances. 32 private final Supplier<? extends Checksum> checksumSupplier; 36 ChecksumHashFunction(Supplier<? extends Checksum> checksumSupplier, int bits, String toString) { in ChecksumHashFunction() 59 * Hasher that updates a checksum. 63 private final Checksum checksum; field in ChecksumHashFunction.ChecksumHasher 65 private ChecksumHasher(Checksum checksum) { in ChecksumHasher() argument 66 this.checksum = checkNotNull(checksum); in ChecksumHasher() 71 checksum.update(b); in update() 76 checksum.update(bytes, off, len); in update() [all …]
|
/external/toolchain-utils/crosperf/ |
D | image_checksummer.py | 2 """Compute image checksum.""" 14 """Compute image checksum.""" 17 """Compute checksum for an image.""" 25 def Checksum(self): member in ImageChecksummer.PerImageChecksummer 29 "Acquiring checksum for '%s'." % self.label.name) 32 raise RuntimeError('Called Checksum on non-local image!') 37 logger.GetLogger().LogOutput('Computed checksum is ' 40 raise RuntimeError('Checksum computing error.') 41 logger.GetLogger().LogOutput('Checksum is: %s' % self._checksum) 55 def Checksum(self, label, log_level): member in ImageChecksummer [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Object/Inputs/COFF/ |
D | section-aux-symbol.yaml | 21 CheckSum: 0 33 CheckSum: 0 45 CheckSum: 0 57 CheckSum: 0 69 CheckSum: 0 81 CheckSum: 0 93 CheckSum: 0 105 CheckSum: 0 117 CheckSum: 0 129 CheckSum: 0 [all …]
|
/external/llvm/test/Object/Inputs/COFF/ |
D | section-aux-symbol.yaml | 21 CheckSum: 0 33 CheckSum: 0 45 CheckSum: 0 57 CheckSum: 0 69 CheckSum: 0 81 CheckSum: 0 93 CheckSum: 0 105 CheckSum: 0 117 CheckSum: 0 129 CheckSum: 0 [all …]
|
/external/android-clat/ |
D | translate.c | 20 #include "netutils/checksum.h" 32 * calculates the checksum over all the packet components starting from pos 33 * checksum - checksum of packet components before pos 34 * packet - packet to calculate the checksum of 36 * returns - the completed 16-bit checksum, ready to write into a checksum header field 38 uint16_t packet_checksum(uint32_t checksum, clat_packet packet, clat_packet_index pos) { in packet_checksum() argument 42 checksum = ip_checksum_add(checksum, packet[i].iov_base, packet[i].iov_len); in packet_checksum() 45 return ip_checksum_finish(checksum); in packet_checksum() 224 * checksum - pseudo-header checksum 230 uint32_t checksum, const uint8_t *payload, size_t payload_size) { in icmp_to_icmp6() argument [all …]
|
/external/u-boot/tools/ |
D | mkexynosspl.c | 21 * calculates the checksum of CHECKSUM_OFFSET bytes and compares with data at 27 * size, header size included) and its checksum. Then it reads the rest of the 29 * checksum and compares it with value read from the header. 63 * Then it calculates checksum of the buffer by just summing up all bytes. 67 * checksum is appended to the file in little endian format, which results 68 * in checksum added exactly at CHECKSUM_OFFSET. 70 * - for variable size SPL the checksum and file size are stored in the 79 uint32_t checksum = 0; in main() local 158 for (i = 0, checksum = 0; i < count; i++) in main() 159 checksum += buffer[i]; in main() [all …]
|
D | zynqimage.c | 33 * 0x 48 - Checksum 82 uint32_t checksum; /* 0x48 */ member 92 uint32_t checksum = 0; in zynqimage_checksum() local 97 checksum += le32_to_cpu(ptr->width_detection); in zynqimage_checksum() 98 checksum += le32_to_cpu(ptr->image_identifier); in zynqimage_checksum() 99 checksum += le32_to_cpu(ptr->encryption); in zynqimage_checksum() 100 checksum += le32_to_cpu(ptr->user_field); in zynqimage_checksum() 101 checksum += le32_to_cpu(ptr->image_offset); in zynqimage_checksum() 102 checksum += le32_to_cpu(ptr->image_size); in zynqimage_checksum() 103 checksum += le32_to_cpu(ptr->__reserved1); in zynqimage_checksum() [all …]
|
D | default_image.c | 46 uint32_t checksum; in image_verify_header() local 52 * checksum field for checking - this can't be done in image_verify_header() 66 checksum = be32_to_cpu(hdr->ih_hcrc); in image_verify_header() 69 if (crc32(0, data, len) != checksum) { in image_verify_header() 70 debug("%s: ERROR: \"%s\" has bad header checksum!\n", in image_verify_header() 78 checksum = be32_to_cpu(hdr->ih_dcrc); in image_verify_header() 79 if (crc32(0, data, len) != checksum) { in image_verify_header() 90 uint32_t checksum; in image_set_header() local 98 checksum = crc32(0, in image_set_header() 124 image_set_dcrc(hdr, checksum); in image_set_header() [all …]
|
/external/fonttools/Snippets/ |
D | checksum.py | 18 … sys.stderr.write("[checksum.py] ERROR: " + path + " is not a valid file path" + os.linesep) 23 # was used to generate the .ttx XML dump. This creates unique checksum path values for 28 …# coolfont-regular.woff2 ==> coolfont-regular.ttx (KAPOW! checksum data lost as this would overw… 38 … sys.stderr.write("[checksum.py] -i and --include are not supported for font binary filepaths. \ 42 … sys.stderr.write("[checksum.py] -e and --exclude are not supported for font binary filepaths. \ 56 # generate the checksum list string for writes 65 checksum_report_filepath = "checksum.txt" 74 … sys.stderr.write("[checksum.py] ERROR: " + path + " is not a valid filepath" + os.linesep) 87 … sys.stderr.write("[checksum.py] ERROR: failed to parse checksum file values" + os.linesep) 117 …parser = argparse.ArgumentParser(prog="checksum.py", description="A SHA1 hash checksum list genera… [all …]
|
/external/stressapptest/src/ |
D | 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);
|
/external/deqp/scripts/khr_util/ |
D | registry_cache.py | 37 def __init__(self, repository, filename, revision, checksum): argument 41 self.checksum = checksum 44 return hash((self.repository, self.filename, self.revision, self.checksum)) 47 …, self.filename, self.revision, self.checksum) == (other.repository, other.filename, other.revisio… 56 return self.checksum 103 def fetchFile (dstPath, repository, revision, filename, checksum, cacheDir): argument 116 if checksum != gotChecksum: 117 raise Exception("Checksum mismatch, expected %s, got %s" % (checksum, gotChecksum)) 121 def checkFile (filename, checksum): argument 129 return computeChecksum(readFile(filename)) == checksum [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/docker/scripts/llvm_checksum/ |
D | llvm_checksum.py | 77 A dict mapping from project name to project checksum. 114 logging.debug("Checksum %s for file %s", file_digest, file_path) 117 logging.info("Computing checksum for %s", proj.name) 120 # Compute final checksum. 135 checksums: a dict mapping from project name to project checksum (result of 148 A dict, mapping from project name to project checksum. 155 checksum, proj = line.split() 156 checksums[proj] = checksum 167 name to a project checksum. 169 name to a project checksum. [all …]
|
/external/deqp/external/ |
D | fetch_sources.py | 61 def __init__(self, url, filename, checksum, baseDir, extractDir = "src", postExtract=None): argument 65 self.checksum = checksum 77 if self.getExtractedChecksum() != self.checksum: 80 self.storeExtractedChecksum(self.checksum) 90 return computeChecksum(readFile(archiveFile)) == self.checksum 105 def storeExtractedChecksum (self, checksum): argument 106 checksum_bytes = checksum.encode("utf-8") 131 checksum = computeChecksum(data) 134 if checksum != self.checksum: 135 …raise Exception("Checksum mismatch for %s, expected %s, got %s" % (self.filename, self.checksum, c… [all …]
|
/external/libxcam/modules/isp/ |
D | libtbd.c | 54 * Calculates checksum for a data block. 55 * param[in] a_data_ptr Data from where to calculate the checksum 57 * return The checksum 64 /* Simple checksum algorithm: summing up the data content in get_checksum() 90 * paying attention to checksum or data tagging. This function assumes 165 * attention to checksum or data tagging. Also, this function does 200 * that was given. Also updates the checksum and size accordingly. 232 header_ptr->checksum = get_checksum(header_ptr, sizeof(tbd_header_t)); in tbd_create() 241 * including the verification of the checksum. The function does not 260 /* Check that the checksum is correct */ in tbd_validate_anytag() [all …]
|
/external/libchrome/base/metrics/ |
D | bucket_ranges_unittest.cc | 22 EXPECT_EQ(0u, ranges.checksum()); in TEST() 50 // Checksum does not match. in TEST() 60 TEST(BucketRangesTest, Checksum) { in TEST() argument 67 EXPECT_EQ(289217253u, ranges.checksum()); in TEST() 73 EXPECT_EQ(2843835776u, ranges.checksum()); in TEST() 81 uint32_t checksum = i; in TEST() local 84 if (checksum & 1) in TEST() 85 checksum = kReversedPolynomial ^ (checksum >> 1); in TEST() 87 checksum >>= 1; in TEST() 89 EXPECT_EQ(kCrcTable[i], checksum); in TEST()
|
/external/autotest/client/cros/video/ |
D | frame_checksum_utils.py | 11 @param checksums: list of checksums, each checksum in a 4-tuple of ints 18 for checksum in checksums: 19 if checksum in counts: 20 counts[checksum] += 1 22 counts[checksum] = 1 37 for i, checksum in enumerate(checksums): 38 if checksum not in d: 39 d[checksum] = i
|
/external/tcpdump/ |
D | in_cksum.c | 2 * 4.4-Lite-2 Internet checksum routine, modified to take a vector of 47 * Checksum routine for Internet Protocol family headers (Portable Version). 151 * Given the host-byte-order value of the checksum field in a packet 152 * header, and the network-byte-order computed checksum of the data 153 * that the checksum covers (including the checksum itself), compute 154 * what the checksum field *should* have been. 162 * The value that should have gone into the checksum field in in_cksum_shouldbe() 164 * *but* the checksum field. in in_cksum_shouldbe() 166 * We can compute that by subtracting the value of the checksum in in_cksum_shouldbe() 170 * "sum" is the value of the checksum field, and "computed_sum" in in_cksum_shouldbe() [all …]
|
/external/lz4/doc/ |
D | lz4_Frame_format.md | 36 and optional [xxHash-32 checksum method](https://github.com/Cyan4973/xxHash), 64 | MagicNb | F. Descriptor | Block | (...) | EndMark | C. Checksum | 93 Content Checksum verify that the full content has been decoded correctly. 94 The content checksum is the result 97 Content checksum is only present when its associated flag 99 Content Checksum validates the result, 138 |FieldName|Version|B.Indep|B.Checksum|C.Size|C.Checksum|*Reserved*|DictID| 165 __Block checksum flag__ 167 If this flag is set, each data block will be followed by a 4-bytes checksum, 171 Block checksum usage is optional. [all …]
|
/external/u-boot/common/ |
D | ddr_spd.c | 31 * Calculate checksum in spd_check() 39 printf("SPD checksum unexpected. " in spd_check() 40 "Checksum in SPD = %02X, computed SPD = %02X\n", in spd_check() 109 printf("SPD checksum unexpected.\n" in ddr3_spd_check() 110 "Checksum lsb in SPD = %02X, computed SPD = %02X\n" in ddr3_spd_check() 111 "Checksum msb in SPD = %02X, computed SPD = %02X\n", in ddr3_spd_check() 132 printf("SPD checksum unexpected.\n" in ddr4_spd_check() 133 "Checksum lsb in SPD = %02X, computed SPD = %02X\n" in ddr4_spd_check() 134 "Checksum msb in SPD = %02X, computed SPD = %02X\n", in ddr4_spd_check() 148 printf("SPD checksum unexpected.\n" in ddr4_spd_check() [all …]
|
/external/tcpdump/tests/ |
D | udld-v.out | 2 Checksum 0x6d85 (unverified) 11 Checksum 0x805d (unverified) 20 Checksum 0x805e (unverified) 29 Checksum 0x805c (unverified) 38 Checksum 0x805d (unverified) 47 Checksum 0x805b (unverified) 56 Checksum 0x805c (unverified) 65 Checksum 0x805a (unverified) 74 Checksum 0x805b (unverified) 83 Checksum 0x8059 (unverified) [all …]
|