]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - add more unkeyed crc32 and crc32c test vectors
authorEric Biggers <ebiggers@google.com>
Sun, 20 May 2018 05:07:42 +0000 (22:07 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 26 May 2018 16:12:10 +0000 (00:12 +0800)
commit93dec4650fc8178fcb9896bcd49f88e1baa7a137
tree37b6c6b98a821e6594a8ea22ac37d21f5ea8f1db
parentf901e49b801036134991ad4be99b0a9a9c0f46cc
crypto: testmgr - add more unkeyed crc32 and crc32c test vectors

crc32c has an unkeyed test vector but crc32 did not.  Add the crc32c one
(which uses an empty input) to crc32 too, and also add a new one to both
that uses a nonempty input.  These test vectors verify that crc32 and
crc32c implementations use the correct default initial state.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.h