u-boot/lib
Simon Glass 74a18ee8a5 crc32: Correct endianness of crc32 result
When crc32 is handled by the hash library, it requires the data to be in
big-endian format, since it reads it byte-wise. Thus at present the 'crc32'
command reports incorrect data. For example, previously we might see:

Peach # crc32 40000000 100
CRC32 for 40000000 ... 400000ff ==> 0d968558

but instead with the hash library we see:

Peach # crc32 40000000 100
CRC32 for 40000000 ... 400000ff ==> 5885960d

Correct this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@google.com>
2013-04-19 10:24:14 -04:00
..
libfdt libfdt: update from upstream dtc commit 142419e 2013-02-07 20:38:55 -05:00
lzma lzma: update to lzma sdk 9.20 2012-12-06 13:56:38 -07:00
lzo GCC4.6: Squash warning in lzo1x_decompress.c 2011-10-01 23:34:38 +02:00
tizen create lib/tizen directory 2012-05-25 09:15:10 +02:00
zlib lib/zlib: sparse fixes 2012-11-04 11:00:36 -07:00
addr_map.c lib/powerpc: addrmap_phys_to_virt() should return a pointer 2012-07-06 17:30:32 -05:00
aes.c Add AES crypto library 2012-05-15 08:31:37 +02:00
asm-offsets.c arm: move C runtime setup code in crt0.S 2013-01-08 22:14:50 +01:00
bch.c nand: Merge BCH code from Linux nand driver 2012-01-26 16:09:02 -06:00
bzlib.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_crctable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_decompress.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_huffman.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_private.h Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_randtable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
circbuf.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc7.c lib: add crc7 from Linux 2011-01-18 23:38:08 +01:00
crc16.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc32.c crc32: Correct endianness of crc32 result 2013-04-19 10:24:14 -04:00
ctype.c ctype: constify lookup table 2010-11-28 21:58:29 +01:00
display_options.c display_options:print_buffer: align ASCII print 2013-03-11 17:00:28 -04:00
div64.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
errno.c Add basic errno support. 2010-09-19 19:29:47 +02:00
fdtdec.c Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-04-15 07:46:11 -04:00
fdtdec_test.c fdt: Add tests for fdtdec 2012-03-29 08:12:47 +02:00
gunzip.c gunzip: rename z{alloc, free} to gz{alloc, free} 2012-04-30 16:54:51 +02:00
gzip.c lib: add gzip lib function callback 2012-09-29 07:26:08 -07:00
hashtable.c env: Add environment variable flags 2012-12-13 11:46:56 -07:00
initcall.c Introduce a basic initcall implementation 2013-03-15 16:13:59 -04:00
ldiv.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
linux_string.c Make linux kernel string funcs available to tools 2012-12-13 11:46:07 -07:00
lmb.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
Makefile Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-04-15 07:46:11 -04:00
md5.c GCC47: Fix warning in md5.c 2012-04-29 14:14:08 +02:00
net_utils.c string_to_ip: constify "s" arg 2010-11-28 21:56:39 +01:00
physmem.c Introduce arch_phys_memset which works like memset but on physical memory 2012-12-06 14:30:40 -08:00
qsort.c Include common.h in qsort.c to fix build warning 2011-12-07 08:39:54 +01:00
rand.c lib: add rand() function 2012-07-07 14:07:32 +02:00
rbtree.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
sha1.c sha1: Use const where possible, and unsigned for input len 2012-12-11 13:17:33 -07:00
sha256.c sha256: Use const where possible and add watchdog function 2012-12-11 13:17:33 -07:00
string.c Make linux kernel string funcs available to tools 2012-12-13 11:46:07 -07:00
strmhz.c strmhz: Make hz unsigned to support greater than 2146 MHz clock 2011-03-22 23:34:36 +01:00
time.c Move bootstage timer out of lib/time.c 2012-04-10 23:35:32 +02:00
tpm.c tpm: Add TPM command library 2013-04-12 14:13:13 -07:00
uuid.c lib: add uuid_str_to_bin for use with bootp and PXE uuid 2011-10-17 22:25:35 +02:00
vsprintf.c vsprintf: add ustrtoll function 2013-02-19 17:01:26 -05:00