Home
last modified time | relevance | path

Searched refs:crc32 (Results 1 – 25 of 116) sorted by relevance

12345

/AliOS-Things-master/components/py_engine/tests/extmod/
A Dubinascii_crc32.py11 binascii.crc32
16 print(hex(binascii.crc32(b"The quick brown fox jumps over the lazy dog")))
17 print(hex(binascii.crc32(b"\x00" * 32)))
18 print(hex(binascii.crc32(b"\xff" * 32)))
19 print(hex(binascii.crc32(bytes(range(32)))))
21 print(hex(binascii.crc32(b" over the lazy dog", binascii.crc32(b"The quick brown fox jumps"))))
22 print(hex(binascii.crc32(b"\x00" * 16, binascii.crc32(b"\x00" * 16))))
23 print(hex(binascii.crc32(b"\xff" * 16, binascii.crc32(b"\xff" * 16))))
24 print(hex(binascii.crc32(bytes(range(16, 32)), binascii.crc32(bytes(range(16))))))
/AliOS-Things-master/components/SDL2/src/test/
A DSDL_test_crc32.c74 if (SDLTest_Crc32CalcStart(crcContext,crc32)) { in SDLTest_Crc32Calc()
78 if (SDLTest_Crc32CalcBuffer(crcContext, inBuf, inLen, crc32)) { in SDLTest_Crc32Calc()
82 if (SDLTest_Crc32CalcEnd(crcContext, crc32)) { in SDLTest_Crc32Calc()
95 *crc32=0; in SDLTest_Crc32CalcStart()
102 *crc32 = 0xffffffff; in SDLTest_Crc32CalcStart()
109 int SDLTest_Crc32CalcEnd(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32) in SDLTest_Crc32CalcEnd() argument
113 *crc32=0; in SDLTest_Crc32CalcEnd()
120 *crc32 = (~(*crc32)); in SDLTest_Crc32CalcEnd()
133 *crc32=0; in SDLTest_Crc32CalcBuffer()
144 crc = *crc32; in SDLTest_Crc32CalcBuffer()
[all …]
/AliOS-Things-master/components/oss/src/utils/
A DCrc32.cc88 uint32_t crc32; in CalcCRC() local
93 crc32 = crc ^ 0xFFFFFFFF; in CalcCRC()
96 crc32 = (crc32 >> 8) ^ crc32Table[(crc32 ^ byteBuf[i]) & 0xFF]; in CalcCRC()
98 return crc32 ^ 0xFFFFFFFF; in CalcCRC()
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/dotzlib/DotZLib/
A DUnitTests.cs88 Assert.AreEqual( 0, crc32.Value ); in CRC32_Null()
90 crc32 = new CRC32Checksum(1); in CRC32_Null()
91 Assert.AreEqual( 1, crc32.Value ); in CRC32_Null()
93 crc32 = new CRC32Checksum(556); in CRC32_Null()
94 Assert.AreEqual( 556, crc32.Value ); in CRC32_Null()
102 crc32.Update(data); in CRC32_Data()
105 crc32 = new CRC32Checksum(); in CRC32_Data()
106 crc32.Update("penguin"); in CRC32_Data()
109 crc32 = new CRC32Checksum(1); in CRC32_Data()
110 crc32.Update("penguin"); in CRC32_Data()
[all …]
/AliOS-Things-master/components/SDL2/include/
A DSDL_test_crc32.h96 …t_Crc32Calc(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32);
99 int SDLTest_Crc32CalcStart(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32);
100 int SDLTest_Crc32CalcEnd(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32);
101 …2CalcBuffer(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32);
/AliOS-Things-master/components/amp/libjs/lib/
A Dchecksum.js17 function crc32(rawData) { function
21 return __native.CHECKSUM.crc32(rawData);
27 crc32,
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/msdos/
A DMakefile.bor44 OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
46 OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
60 crc32.obj: crc32.c zlib.h zconf.h crc32.h
A DMakefile.tc29 OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
31 OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
45 crc32.obj: crc32.c zlib.h zconf.h crc32.h
A DMakefile.msc40 OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
54 crc32.obj: crc32.c zlib.h zconf.h crc32.h
/AliOS-Things-master/components/amp/jslib/src/
A Dchecksum.js17 export function crc32(rawData) { function
21 return CHECKSUM.crc32(rawData);
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/win32/
A DMakefile.bor27 OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
30 OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
48 crc32.obj: crc32.c zlib.h zconf.h crc32.h
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/libtests/
A Dfakepng.c31 crc = crc32(0, Z_NULL, 0); in put_chunk()
32 put_uLong(crc32(crc, chunk, length)); in put_chunk()
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/tools/
A Dpng-fix-itxt.c81 crc = crc32(0, Z_NULL, 0); in main()
93 crc = crc32(crc, buf+4, (uInt)length+4); in main()
113 crc = crc32(crc, buf+7+length, 1); in main()
A Dchecksum-icc.c23 uLong c32 = crc32(0, NULL, 0); in read_one_file()
40 c32 = crc32(c32, &b, 1); in read_one_file()
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/
A DMakefile.in60 OBJZ = adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o
64 PIC_OBJZ = adler32.lo crc32.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo zut…
162 crc32.o: $(SRCDIR)crc32.c
163 $(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)crc32.c
210 crc32.lo: $(SRCDIR)crc32.c
212 $(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/crc32.o $(SRCDIR)crc32.c
213 -@mv objs/crc32.o $@
395 crc32.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)crc32.h
405 crc32.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)crc32.h
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/pascal/
A Dzlibd32.mak21 OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
23 OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
37 crc32.obj: crc32.c zlib.h zconf.h crc32.h
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/delphi/
A Dzlibd32.mak21 OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
23 OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
37 crc32.obj: crc32.c zlib.h zconf.h crc32.h
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/watcom/
A Dwatcom_f.mak7 C_SOURCE = adler32.c compress.c crc32.c deflate.c &
12 OBJS = adler32.obj compress.obj crc32.obj deflate.obj &
28 wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj
A Dwatcom_l.mak7 C_SOURCE = adler32.c compress.c crc32.c deflate.c &
12 OBJS = adler32.obj compress.obj crc32.obj deflate.obj &
28 wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj
/AliOS-Things-master/components/py_engine/engine/shared/memzip/
A Dmemzip.h12 uint32_t crc32; member
33 uint32_t crc32; member
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/amiga/
A DMakefile.pup17 OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
55 crc32.o: crc32.h zlib.h zconf.h
A DMakefile.sas16 OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
54 crc32.o: crc32.h zlib.h zconf.h
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/pngminim/decoder/
A Dmakefile32 ZSRCS = adler32$(C) crc32$(C) \
37 ZH = zlib.h crc32.h inffast.h inffixed.h \
49 ZOBJS = adler32$(O) crc32$(O) \
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/pngminim/encoder/
A Dmakefile31 ZSRCS = adler32$(C) compress$(C) crc32$(C) deflate$(C) \
36 ZH = zlib.h crc32.h deflate.h trees.h zutil.h
50 ZOBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) \
/AliOS-Things-master/hardware/chip/haas1000/aos/
A Dota_port.c73 …crc32_value = crc32(crc32_value, (uint8_t *)(flash_pointer + OTA_BOOT_INFO_HEAD_LEN), info->info_l… in ota_set_bootinfo_crc32value()
74 info->crc32 = crc32_value; in ota_set_bootinfo_crc32value()
183 …crc32_value = crc32(crc32_value, (uint8_t *)(flash_pointer + OTA_BOOT_INFO_HEAD_LEN), info->info_l… in ota_check_bootinfo()
184 if (crc32_value != info->crc32) { in ota_check_bootinfo()
185 …TRACE("%s %d, error info->crc32:0x%x, crc32_value:0x%x", __func__, __LINE__, info->crc32, crc32_va… in ota_check_bootinfo()

Completed in 22 milliseconds

12345