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

1 2 3 4 5 6 7 8 91011>>

  /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/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/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...]
adler32memcpy.cc 17 // We are using (a modified form of) adler-32 checksum algorithm instead
22 // checksums are done (we could have one checksum but two checksums
32 // checksum = a<<16 + b
70 // Returns string representation of the Adler checksum.
77 // Sets components of the Adler checksum.
85 // Calculates Adler checksum for supplied data.
87 AdlerChecksum *checksum) {
119 checksum->Set(a1, a2, b1, b2);
125 unsigned int size_in_bytes, AdlerChecksum *checksum) {
159 checksum->Set(a1, a2, b1, b2)
    [all...]
  /external/webkit/Tools/DumpRenderTree/
PixelDumpSupport.h 41 void dumpBitmap(BitmapContext*, const char* checksum);
43 void printPNG(const unsigned char* data, const size_t dataLength, const char* checksum);
PixelDumpSupport.cpp 87 static void convertChecksumToPNGComment(const char* checksum, Vector<unsigned char>& bytesToAdd)
95 bytesToAdd.append(checksum, checksumLength);
99 dataToCrc.append(checksum, checksumLength);
108 const int pngIHDRChunkLength = 25; // chunk length + "IHDR" + 13 bytes of data + checksum
112 void printPNG(const unsigned char* data, const size_t dataLength, const char* checksum)
115 convertChecksumToPNGComment(checksum, bytesToAdd);
  /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/webkit/Tools/Scripts/webkitpy/layout_tests/
read_checksum_from_png_unittest.py 34 checksum = read_checksum_from_png.read_checksum(filehandle)
35 self.assertEquals('3c4134fe2739880353f91c5b84cadbaa', checksum)
39 checksum = read_checksum_from_png.read_checksum(filehandle)
40 self.assertEquals(None, checksum)
  /hardware/invensense/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...]
  /external/webkit/Tools/DumpRenderTree/cairo/
PixelDumpSupportCairo.cpp 52 static void printPNG(cairo_surface_t* image, const char* checksum)
61 printPNG(data, dataLength, checksum);
82 md5Context.checksum(hash);
89 void dumpBitmap(BitmapContext* context, const char* checksum)
92 printPNG(surface, 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/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/webkit/Source/JavaScriptCore/wtf/
MD5.h 48 // checksum has a side effect of resetting the state of the object.
49 void checksum(Vector<uint8_t, 16>&);
  /system/core/libnetutils/
packet.c 65 static uint32_t checksum(void *buffer, unsigned int count, uint32_t startsum) function
111 ip.check = finish_sum(checksum(&ip, sizeof(ip), 0));
118 /* Calculate checksum for pseudo header */
119 udpsum = checksum(&ip.saddr, sizeof(ip.saddr), 0);
120 udpsum = checksum(&ip.daddr, sizeof(ip.daddr), udpsum);
122 udpsum = checksum(&temp, sizeof(temp), udpsum);
124 udpsum = checksum(&temp, sizeof(temp), udpsum);
126 /* Add in the checksum for the udp header */
127 udpsum = checksum(&udp, sizeof(udp), udpsum);
129 /* Add in the checksum for the data *
    [all...]
  /external/webkit/Tools/Scripts/
svn-unapply 74 sub checksum($);
126 sub checksum($) subroutine
131 my $checksum = Digest::MD5->new->addfile(*FILE)->hexdigest();
133 return $checksum;
197 unlink("$fullPath.orig") if -e "$fullPath.orig" && checksum($fullPath) eq checksum("$fullPath.orig");
  /external/dropbear/libtomcrypt/src/encauth/ocb/
s_ocb_done.c 22 * is we XOR the final ciphertext into the checksum so we have to xor it
93 /* xor C[m] into checksum */
95 ocb->checksum[x] ^= ct[x];
106 /* xor C[m] into checksum */
108 ocb->checksum[x] ^= ct[x];
112 /* xor Y[m] and Z[m] into checksum */
114 ocb->checksum[x] ^= Y[x] ^ Z[x];
117 /* encrypt checksum, er... tag!! */
118 if ((err = cipher_descriptor[ocb->cipher].ecb_encrypt(ocb->checksum, X, &ocb->key)) != CRYPT_OK) {
  /external/grub/stage2/
mb_header.h 33 * Checksum
37 unsigned checksum; member in struct:multiboot_header
  /external/qemu/distrib/sdl-1.2.15/src/video/fbcon/
SDL_fbelo.c 134 int eloGetPacket(unsigned char* buffer, int* buffer_p, int* checksum, int fd) {
160 *checksum = *checksum + buffer[*buffer_p];
161 *checksum = *checksum % 256;
169 ok = (*checksum == buffer[ELO_PACKET_SIZE-1]);
170 *checksum = ELO_INIT_CHECKSUM;
424 int checksum = ELO_INIT_CHECKSUM; local
427 if(eloGetPacket(buffer, &pointer, &checksum, fd)) {

Completed in 435 milliseconds

1 2 3 4 5 6 7 8 91011>>