Searched refs:checksum (Results 1 - 25 of 116) sorted by relevance

12345

/u-boot/lib/
H A Dtables_csum.c11 u8 checksum = 0; local
15 checksum -= bytes[i];
17 return checksum;
H A Dhash-checksum.c20 int region_count, uint8_t *checksum)
48 ret = algo->hash_finish(algo, ctx, checksum, algo->digest_size);
18 hash_calculate(const char *name, const struct image_region *region, int region_count, uint8_t *checksum) argument
H A Dnet_utils.c195 ulong checksum; local
206 checksum = sum + new;
207 if (checksum > 0xffff)
208 checksum -= 0xffff;
210 return (~checksum) & 0xffff;
/u-boot/board/xilinx/zynq/
H A Dbootimg.c94 u32 checksum; local
107 checksum = 0;
109 checksum += hap->fields[index];
111 checksum ^= 0xFFFFFFFF;
113 if (hap->fields[ZYNQ_PART_HDR_CHKSUM_WORD_COUNT] != checksum) {
115 checksum, hap->fields[ZYNQ_PART_HDR_CHKSUM_WORD_COUNT]);
128 * Validate the partition by calculationg the md5 checksum for the
129 * partition and compare with checksum present in checksum offset of
134 u8 checksum[MD5_CHECKSUM_SIZ local
[all...]
/u-boot/include/net/
H A Dncsi-pkt.h39 __be32 checksum; /* Checksum */ member in struct:ncsi_cmd_pkt
45 __be32 checksum; /* Checksum */ member in struct:ncsi_rsp_pkt
54 __be32 checksum; /* Checksum */ member in struct:ncsi_cmd_sp_pkt
63 __be32 checksum; /* Checksum */ member in struct:ncsi_cmd_dc_pkt
71 __be32 checksum; /* Checksum */ member in struct:ncsi_cmd_rc_pkt
81 __be32 checksum; /* Checksum */ member in struct:ncsi_cmd_ae_pkt
90 __be32 checksum; /* Checksum */ member in struct:ncsi_cmd_sl_pkt
102 __be32 checksum; /* Checksum */ member in struct:ncsi_cmd_svf_pkt
111 __be32 checksum; /* Checksum */ member in struct:ncsi_cmd_ev_pkt
121 __be32 checksum; /* Checksu member in struct:ncsi_cmd_sma_pkt
129 __be32 checksum; /* Checksum */ member in struct:ncsi_cmd_ebf_pkt
137 __be32 checksum; /* Checksum */ member in struct:ncsi_cmd_egmf_pkt
146 __be32 checksum; /* Checksum */ member in struct:ncsi_cmd_snfc_pkt
187 __be32 checksum; member in struct:ncsi_rsp_gls_pkt
201 __be32 checksum; member in struct:ncsi_rsp_gvi_pkt
219 __be32 checksum; /* Checksum */ member in struct:ncsi_rsp_gc_pkt
240 __be32 checksum; /* Checksum */ member in struct:ncsi_rsp_gp_pkt
287 __be32 checksum; /* Checksum */ member in struct:ncsi_rsp_gcps_pkt
300 __be32 checksum; /* Checksum */ member in struct:ncsi_rsp_gns_pkt
315 __be32 checksum; /* Checksum */ member in struct:ncsi_rsp_gnpts_pkt
322 __be32 checksum; member in struct:ncsi_rsp_gps_pkt
329 __be32 checksum; member in struct:ncsi_rsp_gpuuid_pkt
337 __be32 checksum; /* Checksum */ member in struct:ncsi_aen_lsc_pkt
344 __be32 checksum; /* Checksum */ member in struct:ncsi_aen_cr_pkt
352 __be32 checksum; /* Checksum */ member in struct:ncsi_aen_hncdsc_pkt
[all...]
/u-boot/tools/
H A Dzynqimage.c82 uint32_t checksum; /* 0x48 */ member in struct:zynq_header
92 uint32_t checksum = 0; local
97 checksum += le32_to_cpu(ptr->width_detection);
98 checksum += le32_to_cpu(ptr->image_identifier);
99 checksum += le32_to_cpu(ptr->encryption);
100 checksum += le32_to_cpu(ptr->user_field);
101 checksum += le32_to_cpu(ptr->image_offset);
102 checksum += le32_to_cpu(ptr->image_size);
103 checksum += le32_to_cpu(ptr->__reserved1);
104 checksum
[all...]
H A Ddefault_image.c53 uint32_t checksum; local
65 * checksum field for checking - this can't be done
79 checksum = be32_to_cpu(hdr->ih_hcrc);
82 if (crc32(0, data, len) != checksum) {
83 debug("%s: ERROR: \"%s\" has bad header checksum!\n",
101 checksum = be32_to_cpu(hdr->ih_dcrc);
102 if (crc32(0, data, len) != checksum) {
113 uint32_t checksum; local
121 checksum = crc32(0,
154 image_set_dcrc(hdr, checksum);
[all...]
H A Dmkexynosspl.c21 * 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; local
158 for (i = 0, checksum = 0; i < count; i++)
159 checksum
[all...]
H A Dzynqmpimage.c34 * 0x 48 - Header checksum
69 uint32_t checksum = 0; local
74 checksum += le32_to_cpu(ptr->width_detection);
75 checksum += le32_to_cpu(ptr->image_identifier);
76 checksum += le32_to_cpu(ptr->encryption);
77 checksum += le32_to_cpu(ptr->image_load);
78 checksum += le32_to_cpu(ptr->image_offset);
79 checksum += le32_to_cpu(ptr->pfw_image_length);
80 checksum += le32_to_cpu(ptr->total_pfw_image_length);
81 checksum
[all...]
/u-boot/include/u-boot/
H A Dhash-checksum.h22 * @checksum: Buffer contanining the output hash
28 uint8_t *checksum);
/u-boot/board/samsung/smdkv310/tools/
H A Dmksmdkv310spl.c21 * It then calculates the checksum of 14K-4 bytes and compare with data at
28 * It calculates checksum of 14K-4 Bytes and stores at 14K-4 offset in buffer.
37 unsigned int checksum = 0, count; local
77 for (i = 0, checksum = 0; i < CHECKSUM_OFFSET; i++)
78 checksum += buffer[i];
80 memcpy(&buffer[CHECKSUM_OFFSET], &checksum, sizeof(checksum));
/u-boot/lib/rsa/
H A Drsa-verify.c66 struct checksum_algo *checksum = info->checksum; local
67 int ret, pad_len = msg_len - checksum->checksum_len;
70 ret = rsa_verify_padding(msg, pad_len, checksum);
107 * @checksum: A Hash function
114 static int mask_generation_function1(struct checksum_algo *checksum, argument
122 int hash_len = checksum->checksum_len;
141 ret = checksum->calculate(checksum->name,
145 debug("%s: Error in checksum calculatio
165 compute_hash_prime(struct checksum_algo *checksum, const uint8_t *pad, int pad_len, const uint8_t *hash, int hash_len, const uint8_t *salt, int salt_len, uint8_t *hprime) argument
224 struct checksum_algo *checksum = info->checksum; local
333 struct checksum_algo *checksum = info->checksum; local
[all...]
/u-boot/net/
H A Dping.c33 icmp->checksum = 0;
36 icmp->checksum = compute_ip_checksum(icmp, ICMP_HDR_SIZE);
109 icmph->checksum = 0;
110 icmph->checksum = compute_ip_checksum(icmph, len - IP_HDR_SIZE);
/u-boot/common/
H A Dkgdb.c72 * checksum. A packet consists of
74 * $<packet info>#<checksum>.
78 * <checksum> :: <two hex digits computed as modulo 256 sum of <packetinfo>>
224 /* scan for the sequence $<data>#<checksum> */
228 unsigned char checksum; local
245 checksum = 0;
255 checksum = checksum + ch;
268 if (checksum != xmitcsum)
269 putDebugChar('-'); /* failed checksum */
290 unsigned char checksum; local
[all...]
/u-boot/board/samsung/origen/tools/
H A Dmkorigenspl.c23 * It then calculates the checksum of 14K-4 bytes and compare with data at
30 * It calculates checksum of 14K-4 Bytes and stores at 14K-4 offset in buffer.
39 unsigned int checksum = 0, count; local
83 checksum += buffer[i+16];
86 *(unsigned long *)(buffer+4) ^= checksum;
/u-boot/lib/acpi/
H A Dbase.c36 rsdp->checksum = table_compute_checksum(rsdp, 20);
52 /* Fix checksum */
53 header->checksum = table_compute_checksum(rsdt,
68 /* Fix checksum */
69 header->checksum = table_compute_checksum(xsdt,
H A Dcsrt.c41 /* (Re)calculate length and checksum */
43 header->checksum = table_compute_checksum(csrt, header->length);
H A Dssdt.c37 /* (Re)calculate length and checksum */
39 ssdt->checksum = table_compute_checksum((void *)ssdt, ssdt->length);
/u-boot/include/
H A Dzynq_bootimg.h24 u32 checksum; /* 0x3C */ member in struct:partition_hdr
/u-boot/test/py/tests/test_fs/test_squashfs/
H A Dtest_sqfs_load.py21 The original file's checksum as a string.
26 checksum = out.stdout.split()[0]
28 return checksum
39 The checksum of the file loaded with sqfsload as a string.
43 checksum = out.split()[-1]
45 return checksum
63 # compare original file's checksum against u-boot's
/u-boot/test/dm/
H A Decdsa.c29 .checksum = &algo,
/u-boot/arch/x86/include/asm/
H A Dmrccache.h21 u32 checksum; /* IP style checksum */ member in struct:mrc_data_container
/u-boot/test/py/tests/
H A Dtest_pstore.py30 def checkfile(u_boot_console, path, filesize, checksum):
31 """Check file against MD5 checksum"""
41 assert(checksum in ''.join(output))
/u-boot/arch/x86/lib/
H A Dmrccache.c75 /* Verify checksum */
76 if (cache->checksum != compute_ip_checksum(cache->data,
78 printf("%s: MRC cache checksum mismatch\n", __func__);
197 u16 checksum; local
201 checksum = compute_ip_checksum(mrc->buf, cache->data_size);
202 log_debug("Saving %d bytes for MRC output data, checksum %04x\n",
203 cache->data_size, checksum);
204 cache->checksum = checksum;
320 debug("Saved MRC data with checksum
[all...]
/u-boot/board/xilinx/common/
H A Dfru_ops.c43 u8 checksum = 0; local
50 checksum += *addr;
58 return checksum;
106 * This unsigned byte can be used to calculate a zero checksum
108 * the record data bytes plus the checksum byte equals zero.
143 len += 1; /* Add checksum there too for calculation */
148 /* Do not fill last item which is checksum */
161 debug("checksum %x(addr %x)\n", *member, len);
178 * eof marks the last data byte (without checksum). That's why checksum
241 u8 checksum = 0; local
277 u8 checksum = 0; local
[all...]

Completed in 171 milliseconds

12345