• Simon Glass's avatar
    Roll crc32 into hash infrastructure · d20a40de
    Simon Glass authored
    Add the CRC32 algorithm to the list of available hashes, and make
    the crc32 command use hash_command(). Add a new crc32_wd_buf() to
    make this possible, which puts its result in a buffer rather than
    returning it as a 32-bit value.
    
    Note: For some boards the hash command is not enabled, neither
    are sha1, sha256 or the verify option. In this case the full
    hash implementation adds about 500 bytes of overhead. So as a
    special case, we use #ifdef to select very simple bahaviour in
    that case. The justification for this is that it is currently
    a very common case (virtually all boards enable crc32 but only
    some enable more advanced features).
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    d20a40de
Name
Last commit
Last update
..
libfdt Loading commit data...
lzma Loading commit data...
lzo Loading commit data...
tizen Loading commit data...
zlib Loading commit data...
Makefile Loading commit data...
addr_map.c Loading commit data...
aes.c Loading commit data...
asm-offsets.c Loading commit data...
bch.c Loading commit data...
bzlib.c Loading commit data...
bzlib_crctable.c Loading commit data...
bzlib_decompress.c Loading commit data...
bzlib_huffman.c Loading commit data...
bzlib_private.h Loading commit data...
bzlib_randtable.c Loading commit data...
circbuf.c Loading commit data...
crc16.c Loading commit data...
crc32.c Loading commit data...
crc7.c Loading commit data...
ctype.c Loading commit data...
display_options.c Loading commit data...
div64.c Loading commit data...
errno.c Loading commit data...
fdtdec.c Loading commit data...
fdtdec_test.c Loading commit data...
gunzip.c Loading commit data...
gzip.c Loading commit data...
hashtable.c Loading commit data...
ldiv.c Loading commit data...
linux_string.c Loading commit data...
lmb.c Loading commit data...
md5.c Loading commit data...
net_utils.c Loading commit data...
physmem.c Loading commit data...
qsort.c Loading commit data...
rand.c Loading commit data...
rbtree.c Loading commit data...
sha1.c Loading commit data...
sha256.c Loading commit data...
string.c Loading commit data...
strmhz.c Loading commit data...
time.c Loading commit data...
uuid.c Loading commit data...
vsprintf.c Loading commit data...