X-Received: by 10.236.120.9 with SMTP id o9mr22884560yhh.14.1409754718787; Wed, 03 Sep 2014 07:31:58 -0700 (PDT) X-Received: by 10.140.81.138 with SMTP id f10mr47571qgd.22.1409754718765; Wed, 03 Sep 2014 07:31:58 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!enother.net!enother.net!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!dc16no837416qab.1!news-out.google.com!q8ni10qal.1!nntp.google.com!m5no5473479qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Wed, 3 Sep 2014 07:31:58 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=109.185.157.125; posting-account=-ztmCwoAAADzywmTKMa96MN8djct-SD9 NNTP-Posting-Host: 109.185.157.125 References: <01aa8ab2-cceb-4219-8999-5c66520c128e@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8304747e-ef5c-4e73-a2b6-1c54071ef35c@googlegroups.com> Subject: Re: crc algorithm From: dream4soul@gmail.com Injection-Date: Wed, 03 Sep 2014 14:31:58 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 1749 X-Received-Body-CRC: 3799895396 Xref: csiph.com comp.lang.python:77482 On Wednesday, September 3, 2014 12:00:10 PM UTC+3, Peter Otten wrote: > dream4soul@gmail.com wrote: > > > > > calc_crc(b'\x00\x00\x34\x35\x38\x35') > > > > > unsigned char a[]={0x30,0x30,0x34,0x35,0x38,0x35}; > > > > The first two bytes differ; you made an error on the input. Dear Peter, my apologies it's my mistake. Thank you for help. Problem solved