[U-Boot] [PATCH] lib:crc32: Allow setting of the initial crc32 value

2014-05-05 Thread Lukasz Majewski
The current approach set the initial value of crc32 calculation to zero, which is correct for calculating checksum of the whole chunk of data. It however, lacks the flexibility, when one wants to calculate CRC32 of a file comprised of many smaller parts received separately. In the proposed

Re: [U-Boot] [PATCH] lib:crc32: Allow setting of the initial crc32 value

2014-05-05 Thread Wolfgang Denk
Dear Lukasz, In message 1399295277-28334-1-git-send-email-l.majew...@samsung.com you wrote: The current approach set the initial value of crc32 calculation to zero, which is correct for calculating checksum of the whole chunk of data. It however, lacks the flexibility, when one wants to

Re: [U-Boot] [PATCH] lib:crc32: Allow setting of the initial crc32 value

2014-05-05 Thread Marek Vasut
On Monday, May 05, 2014 at 03:07:57 PM, Lukasz Majewski wrote: The current approach set the initial value of crc32 calculation to zero, which is correct for calculating checksum of the whole chunk of data. It however, lacks the flexibility, when one wants to calculate CRC32 of a file

Re: [U-Boot] [PATCH] lib:crc32: Allow setting of the initial crc32 value

2014-05-05 Thread Marek Vasut
On Monday, May 05, 2014 at 07:47:30 PM, Wolfgang Denk wrote: Dear Lukasz, In message 1399295277-28334-1-git-send-email-l.majew...@samsung.com you wrote: The current approach set the initial value of crc32 calculation to zero, which is correct for calculating checksum of the whole chunk of

Re: [U-Boot] [PATCH] lib:crc32: Allow setting of the initial crc32 value

2014-05-05 Thread Lukasz Majewski
Hi Wolfgang, Dear Lukasz, In message 1399295277-28334-1-git-send-email-l.majew...@samsung.com you wrote: The current approach set the initial value of crc32 calculation to zero, which is correct for calculating checksum of the whole chunk of data. It however, lacks the