Searched refs:crc32 (Results 1 - 21 of 21) sorted by relevance

/fuchsia/zircon/third_party/lib/cksum/
H A Drules.mk12 $(SRC_DIR)/crc32.c \
/fuchsia/zircon/third_party/ulib/cksum/
H A Drules.mk6 $(LOCAL_DIR)/crc32.c
H A Dcrc32.c0 /* crc32.c -- compute the CRC-32 of a data stream
19 one thread to use crc32().
21 DYNAMIC_CRC_TABLE and MAKECRCH can be #defined to write out crc32.h.
138 /* write out CRC tables to crc32.h */
142 out = fopen("crc32.h", "w");
144 fprintf(out, "/* crc32.h -- tables for rapid CRC calculation\n");
145 fprintf(out, " * Generated automatically by crc32.c\n */\n\n");
181 #include "crc32.h"
185 * This function can be used by asm versions of crc32()
201 uint32_t ZEXPORT crc32(uint32_ function
[all...]
/fuchsia/zircon/third_party/ulib/cksum/include/lib/
H A Dcksum.h26 uint32_t crc32(uint32_t crc, const uint8_t *buf, size_t len);
/fuchsia/zircon/system/ulib/kvstore/
H A Dkvstore-test.c116 hdr.crc = crc32(0, (const void*) &hdr, sizeof(hdr) - sizeof(uint32_t));
117 hdr.crc = crc32(hdr.crc, content, sizeof(content));
161 hdr.crc = crc32(0, (const void*) &hdr, sizeof(hdr) - sizeof(uint32_t));
162 hdr.crc = crc32(hdr.crc, content, sizeof(content));
178 hdr.crc = crc32(0, (const void*) &hdr, sizeof(hdr) - sizeof(uint32_t));
179 hdr.crc = crc32(hdr.crc, content, sizeof(content) - 3);
H A Dkvstore.c55 uint32_t crc = crc32(0, buffer, sizeof(hdr) - sizeof(uint32_t));
56 crc = crc32(crc, buffer + sizeof(hdr), hdr.length - sizeof(hdr));
100 hdr.crc = crc32(0, (const void*) &hdr, sizeof(hdr) - sizeof(uint32_t));
101 hdr.crc = crc32(hdr.crc, kvs->data + sizeof(hdr), hdr.length - sizeof(hdr));
/fuchsia/zircon/system/ulib/gpt/
H A Dgpt.c218 uint32_t saved_crc = header->crc32;
219 header->crc32 = 0;
220 uint32_t crc = crc32(0, (const unsigned char*)header, header->size);
259 crc = crc32(0, (const unsigned char*)ptable, ptable_size);
382 header.entries_crc = crc32(0, buf, ptable_size);
389 header.crc32 = crc32(0, (const unsigned char*)&header, GPT_HEADER_SIZE);
398 header.crc32 = 0;
399 header.crc32 = crc32(
[all...]
/fuchsia/zircon/system/ulib/libzbi/
H A Dzbi.c25 hdr->crc32 != ZBI_ITEM_NO_CRC32) {
55 header->crc32 != ZBI_ITEM_NO_CRC32) {
185 .crc32 = ZBI_ITEM_NO_CRC32,
/fuchsia/zircon/third_party/tools/android/
H A Dmkdtimg47 crcval = zlib.crc32("")
54 crcval = zlib.crc32(data, crcval)
/fuchsia/zircon/system/dev/block/gpt/
H A Dgpt.c84 copy.crc32 = 0;
85 uint32_t crc = crc32(0, (const unsigned char*)&copy, copy.size);
86 if (crc != header->crc32) {
339 uint32_t crc = crc32(0, (const unsigned char*)entries, table_sz);
/fuchsia/zircon/system/public/zircon/boot/
H A Dbootdata.h27 // Bootdata items with the CRC32 flag must have a valid crc32.
28 // Otherwise their crc32 field must contain BOOTITEM_NO_CRC32
176 uint32_t crc32; member in struct:__anon637
H A Dimage.h54 // ZBI items with the CRC32 flag must have a valid crc32.
55 // Otherwise their crc32 field must contain ZBI_ITEM_NO_CRC32
58 // Value for zbi_header_t.crc32 when ZBI_FLAG_CRC32 is not set.
92 uint32_t crc32; member in struct:__anon655
336 // and crc32 fields to zero, though setting them to ZBI_FLAG_VERSION and
/fuchsia/zircon/system/public/zircon/hw/
H A Dgpt.h23 uint32_t crc32; member in struct:gpt_header
/fuchsia/zircon/system/private/efi/
H A Dboot-services.h196 efi_status (*CalculateCrc32) (void* data, size_t len, uint32_t* crc32) EFIAPI;
/fuchsia/zircon/system/uapp/disk-pave/
H A Dpave-lib.cpp290 const uint32_t crc = crc32(0, reinterpret_cast<const uint8_t*>(hdr + 1),
292 return hdr->crc32 == crc;
302 payload->hdr_file.crc32 == ZBI_ITEM_NO_CRC32 &&
310 : payload->hdr_kernel.crc32 == ZBI_ITEM_NO_CRC32);
/fuchsia/zircon/system/host/zbi/
H A Dzbi.cpp386 crc_ = crc32(crc_, static_cast<const uint8_t*>(buffer.iov_base),
397 header->crc32 = 0;
398 uint32_t header_crc = crc32(
400 header->crc32 = crc32_combine(header_crc, crc_, header->length);
1029 header.magic, header.crc32);
1043 if (check_header.crc32 != header_.crc32) {
1045 check_header.crc32);
1420 0, // crc32
/fuchsia/zircon/kernel/syscalls/
H A Dsystem.cpp192 new_hdr->crc32 = ZBI_ITEM_NO_CRC32;
/fuchsia/zircon/system/uapp/nand-util/
H A Dmain.cpp376 const uint32_t crc = crc32(0, reinterpret_cast<const uint8_t*>(nand.data()), size);
/fuchsia/zircon/system/utest/zbi/
H A Dzbi.cpp50 hdr->crc32 = ZBI_ITEM_NO_CRC32;
/fuchsia/zircon/bootloader/src/
H A Dzircon.c69 bd->crc32 = ZBI_ITEM_NO_CRC32;
148 //TODO: verify crc32 when present
/fuchsia/zircon/system/dev/ethernet/asix-88179/
H A Dasix-88179.c645 uint32_t crc = ~crc32(0, mac, ETH_MAC_SIZE);

Completed in 114 milliseconds