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

12

/device/google/contexthub/firmware/os/platform/native/inc/plat/
H A Dcrc.h3 #define crc32 soft_crc32 macro
/device/google/contexthub/lib/include/nanohub/
H A Dcrc.h39 uint32_t crc32(const void *buf, size_t size, uint32_t crc);
41 /* concrete public implementation of crc32() w/o HW acceleration */
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/zlib/
H A Dminigzip.py36 crcval = zlib.crc32("")
43 crcval = zlib.crc32(data, crcval)
79 crcval = zlib.crc32("")
88 crcval = zlib.crc32(decompdata, crcval)
93 crcval = zlib.crc32(decompdata, crcval)
100 crc32 = read32(input)
102 if crc32 != crcval:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest_zlib.py19 self.assertEqual(zlib.crc32(""), zlib.crc32("", 0))
20 self.assertTrue(zlib.crc32("abc", 0xffffffff))
23 self.assertEqual(zlib.crc32("", 0), 0)
24 self.assertEqual(zlib.crc32("", 1), 1)
25 self.assertEqual(zlib.crc32("", 432), 432)
42 self.assertEqual32(zlib.crc32("penguin", 0), 0x0e5c1a120L)
43 self.assertEqual32(zlib.crc32("penguin", 1), 0x43b6aa94)
47 self.assertEqual(zlib.crc32("penguin"), zlib.crc32("pengui
[all...]
H A Dtest_binascii.py13 all_functions = a2b_functions + b2a_functions + ['crc32', 'crc_hqx']
60 self.assertIsInstance(binascii.crc32(raw), int)
141 crc = binascii.crc32(self.type2test("Test the CRC-32 of"))
142 crc = binascii.crc32(self.type2test(" this string."), crc)
145 self.assertRaises(TypeError, binascii.crc32)
/device/google/contexthub/firmware/os/platform/stm32/
H A Dcrc.c52 uint32_t crc32(const void *buf, size_t size, uint32_t crc) function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A Dgzip.py150 self.crc = zlib.crc32("") & 0xffffffffL
175 self.crc = zlib.crc32("") & 0xffffffffL
226 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL
320 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL
334 crc32 = read32(self.fileobj)
336 if crc32 != self.crc:
337 raise IOError("CRC check failed %s != %s" % (hex(crc32),
H A Dzipfile.py11 crc32 = zlib.crc32 variable
14 crc32 = binascii.crc32 variable
421 relying on binascii.crc32().
504 self._running_crc = crc32(b'') & 0xffffffff
593 self._running_crc = crc32(newdata, self._running_crc) & 0xffffffff
1082 CRC = crc32(buf, CRC) & 0xffffffff
1129 zinfo.CRC = crc32(bytes) & 0xffffffff # CRC-32 checksum
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Common/
H A DMakefile48 "$(EDK_TOOLS_OUTPUT)\crc32.obj" \
82 "$(EDK_TOOLS_OUTPUT)\crc32.obj": "$(TARGET_SOURCE_DIR)\crc32.c" "$(TARGET_SOURCE_DIR)\crc32.h" $(EDK_SOURCE)\Foundation\Include\TianoCommon.h
83 $(CC) $(C_FLAGS) "$(TARGET_SOURCE_DIR)\crc32.c" /Fo"$(EDK_TOOLS_OUTPUT)\crc32.obj"
142 @if exist $(EDK_TOOLS_OUTPUT)\crc32.* del /q $(EDK_TOOLS_OUTPUT)\crc32.* > NUL
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
H A DMakefile49 OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
143 crc32.o: crc32.h zlib.h zconf.h
H A Dmake_vms.com73 $ CALL MAKE crc32.OBJ "CC ''CCOPT' crc32" -
74 crc32.c zlib.h zconf.h
279 OBJS = adler32.obj, compress.obj, crc32.obj, gzio.obj, uncompr.obj, infback.obj\
308 crc32.obj : crc32.c zutil.h zlib.h zconf.h
H A Dzconf.h42 # define crc32 z_crc32 macro
H A Dzconf.in.h42 # define crc32 z_crc32 macro
H A Ddeflate.c381 s->wrap == 2 ? crc32(0L, Z_NULL, 0) :
580 strm->adler = crc32(0L, Z_NULL, 0);
616 strm->adler = crc32(strm->adler, s->pending_buf,
659 strm->adler = crc32(strm->adler, s->pending_buf + beg,
670 strm->adler = crc32(strm->adler, s->pending_buf + beg,
688 strm->adler = crc32(strm->adler, s->pending_buf + beg,
701 strm->adler = crc32(strm->adler, s->pending_buf + beg,
719 strm->adler = crc32(strm->adler, s->pending_buf + beg,
732 strm->adler = crc32(strm->adler, s->pending_buf + beg,
747 strm->adler = crc32(
[all...]
H A Dinflate.c375 /* check function to use adler32() for zlib or crc32() for gzip */
378 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
389 check = crc32(check, hbuf, 2); \
398 check = crc32(check, hbuf, 4); \
597 state->check = crc32(0L, Z_NULL, 0);
693 state->check = crc32(state->check, next, copy);
714 state->check = crc32(state->check, next, copy);
735 state->check = crc32(state->check, next, copy);
757 strm->adler = state->check = crc32(0L, Z_NULL, 0);
H A Dgzio.c63 uLong crc; /* crc32 of uncompressed data */
123 s->crc = crc32(0L, Z_NULL, 0);
470 s->crc = crc32(s->crc, start, (uInt)(s->stream.next_out - start));
484 s->crc = crc32(0L, Z_NULL, 0);
490 s->crc = crc32(s->crc, start, (uInt)(s->stream.next_out - start));
589 s->crc = crc32(s->crc, (const Bytef *)buf, len);
869 s->crc = crc32(0L, Z_NULL, 0);
H A Dcrc32.c0 /* crc32.c -- compute the CRC-32 of a data stream
19 one thread to use crc32().
157 /* write out CRC tables to crc32.h */
161 out = fopen("crc32.h", "w");
163 fprintf(out, "/* crc32.h -- tables for rapid CRC calculation\n");
164 fprintf(out, " * Generated automatically by crc32.c\n */\n\n");
199 #include "crc32.h"
203 * This function can be used by asm versions of crc32()
219 unsigned long ZEXPORT crc32(crc, buf, len) function
H A Dzlib.h509 gzip stream is being written, strm->adler is a crc32 instead of an adler32.
717 recommended that a check value such as an adler32 or a crc32 be applied to
726 a crc32 instead of an adler32.
1285 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1293 uLong crc = crc32(0L, Z_NULL, 0);
1296 crc = crc32(crc, buffer, length);
/device/google/marlin/recovery/gpt-utils/
H A Dgpt-utils.cpp341 crc = crc32(0, pentries, pentries_array_size);
364 crc = crc32(0, pentries, pentries_array_size);
369 crc = crc32(0, gpt_header, gpt_header_size);
441 if (crc32(0, gpt_header, gpt_header_size) != crc)
510 crc = crc32(0, gpt_header, gpt_header_size);
1394 disk->hdr_crc = crc32(0, disk->hdr, gpt_header_size);
1400 disk->hdr_bak_crc = crc32(0, disk->hdr_bak, gpt_header_size);
1480 disk->pentry_arr_crc = crc32(0,
1484 disk->pentry_arr_bak_crc = crc32(0,
1497 disk->hdr_crc = crc32(
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
H A Ddeflate.c416 s->wrap == 2 ? crc32(0L, Z_NULL, 0) :
693 strm->adler = crc32(0L, Z_NULL, 0);
729 strm->adler = crc32(strm->adler, s->pending_buf,
772 strm->adler = crc32(strm->adler, s->pending_buf + beg,
783 strm->adler = crc32(strm->adler, s->pending_buf + beg,
801 strm->adler = crc32(strm->adler, s->pending_buf + beg,
814 strm->adler = crc32(strm->adler, s->pending_buf + beg,
832 strm->adler = crc32(strm->adler, s->pending_buf + beg,
845 strm->adler = crc32(strm->adler, s->pending_buf + beg,
860 strm->adler = crc32(
[all...]
H A Dinflate.c431 /* check function to use adler32() for zlib or crc32() for gzip */
434 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
445 check = crc32(check, hbuf, 2); \
454 check = crc32(check, hbuf, 4); \
648 state->check = crc32(0L, Z_NULL, 0);
746 state->check = crc32(state->check, next, copy);
767 state->check = crc32(state->check, next, copy);
788 state->check = crc32(state->check, next, copy);
810 strm->adler = state->check = crc32(0L, Z_NULL, 0);
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.
141 /* write out CRC tables to crc32.h */
145 out = fopen("crc32.h", "w");
147 fprintf(out, "/* crc32.h -- tables for rapid CRC calculation\n");
148 fprintf(out, " * Generated automatically by crc32.c\n */\n\n");
184 #include "crc32.h"
188 * This function can be used by asm versions of crc32()
204 unsigned long ZEXPORT crc32(cr function
[all...]
H A Dzconf.h37 # define crc32 z_crc32 macro
H A Dzlib.h556 gzip stream is being written, strm->adler is a crc32 instead of an adler32.
796 recommended that a check value such as an adler32 or a crc32 be applied to
805 crc32 instead of an adler32.
1600 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1609 uLong crc = crc32(0L, Z_NULL, 0);
1612 crc = crc32(crc, buffer, length);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
H A Dzipfile.py12 crc32 = zlib.crc32 variable
15 crc32 = binascii.crc32 variable
438 relying on binascii.crc32().
551 self._running_crc = crc32(b'') & 0xffffffff
644 self._running_crc = crc32(newdata, self._running_crc) & 0xffffffff
1178 CRC = crc32(buf, CRC) & 0xffffffff
1234 zinfo.CRC = crc32(bytes) & 0xffffffff # CRC-32 checksum

Completed in 1132 milliseconds

12