tests/lib/crc_byte-test: Fix incorrect variable types
commitce38084db66858e9bdd787439d8156e6ec53fbfe
authorJakub Czapiga <jacz@semihalf.com>
Tue, 27 Apr 2021 15:48:44 +0000 (27 17:48 +0200)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 5 May 2021 11:45:45 +0000 (5 11:45 +0000)
treecdc418bfcb566b0c5a52ed516e194c317845092c
parent045fbf138acafc9af6520c5067837210efd7dc49
tests/lib/crc_byte-test: Fix incorrect variable types

Some crc16_byte() and crc32_byte() tests had uint8_t instead of uint16_t
or uint32_t. That caused CRC values to be truncated and made tests
incorrect.
Also fix incorrect pre-calculated CRC values and change test buffer name
to more the accurate.

Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Change-Id: I61ee029a6950a8dfeb54520b634eaf4ed6bac576
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52708
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
tests/lib/crc_byte-test.c