/fuchsia/zircon/third_party/lib/cksum/ |
H A D | rules.mk | 12 $(SRC_DIR)/crc32.c \
|
/fuchsia/zircon/third_party/ulib/cksum/ |
H A D | rules.mk | 6 $(LOCAL_DIR)/crc32.c
|
H A D | crc32.c | 0 /* 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 D | cksum.h | 26 uint32_t crc32(uint32_t crc, const uint8_t *buf, size_t len);
|
/fuchsia/zircon/system/ulib/kvstore/ |
H A D | kvstore-test.c | 116 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 D | kvstore.c | 55 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 D | gpt.c | 218 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 D | zbi.c | 25 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 D | mkdtimg | 47 crcval = zlib.crc32("") 54 crcval = zlib.crc32(data, crcval)
|
/fuchsia/zircon/system/dev/block/gpt/ |
H A D | gpt.c | 84 copy.crc32 = 0; 85 uint32_t crc = crc32(0, (const unsigned char*)©, 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 D | bootdata.h | 27 // 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 D | image.h | 54 // 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 D | gpt.h | 23 uint32_t crc32; member in struct:gpt_header
|
/fuchsia/zircon/system/private/efi/ |
H A D | boot-services.h | 196 efi_status (*CalculateCrc32) (void* data, size_t len, uint32_t* crc32) EFIAPI;
|
/fuchsia/zircon/system/uapp/disk-pave/ |
H A D | pave-lib.cpp | 290 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 D | zbi.cpp | 386 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 D | system.cpp | 192 new_hdr->crc32 = ZBI_ITEM_NO_CRC32;
|
/fuchsia/zircon/system/uapp/nand-util/ |
H A D | main.cpp | 376 const uint32_t crc = crc32(0, reinterpret_cast<const uint8_t*>(nand.data()), size);
|
/fuchsia/zircon/system/utest/zbi/ |
H A D | zbi.cpp | 50 hdr->crc32 = ZBI_ITEM_NO_CRC32;
|
/fuchsia/zircon/bootloader/src/ |
H A D | zircon.c | 69 bd->crc32 = ZBI_ITEM_NO_CRC32; 148 //TODO: verify crc32 when present
|
/fuchsia/zircon/system/dev/ethernet/asix-88179/ |
H A D | asix-88179.c | 645 uint32_t crc = ~crc32(0, mac, ETH_MAC_SIZE);
|