/AliOS-Things-master/components/py_engine/tests/extmod/ |
A D | ubinascii_crc32.py | 11 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 D | SDL_test_crc32.c | 74 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 D | Crc32.cc | 88 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 D | UnitTests.cs | 88 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 D | SDL_test_crc32.h | 96 …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 D | checksum.js | 17 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 D | Makefile.bor | 44 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 D | Makefile.tc | 29 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 D | Makefile.msc | 40 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 D | checksum.js | 17 export function crc32(rawData) { function 21 return CHECKSUM.crc32(rawData);
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/win32/ |
A D | Makefile.bor | 27 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 D | fakepng.c | 31 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 D | png-fix-itxt.c | 81 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 D | checksum-icc.c | 23 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 D | Makefile.in | 60 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 D | zlibd32.mak | 21 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 D | zlibd32.mak | 21 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 D | watcom_f.mak | 7 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 D | watcom_l.mak | 7 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 D | memzip.h | 12 uint32_t crc32; member 33 uint32_t crc32; member
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/amiga/ |
A D | Makefile.pup | 17 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 D | Makefile.sas | 16 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 D | makefile | 32 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 D | makefile | 31 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 D | ota_port.c | 73 …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()
|