summaryrefslogtreecommitdiff
path: root/crypto/tea.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-01-31 23:51:48 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-02-08 15:30:09 +0800
commitb734b1e0ecaf60e3a7932a8d111ae52810203626 (patch)
tree09a7065301bc9bf30511ae64d8359245a9683147 /crypto/tea.c
parentf2c1b9eb6ae99dc16de250fe31f86614ad82a3f4 (diff)
downloadlinux-crypto-b734b1e0ecaf60e3a7932a8d111ae52810203626.tar.gz
linux-crypto-b734b1e0ecaf60e3a7932a8d111ae52810203626.zip
crypto: testmgr - convert hash testing to use testvec_configs
Convert alg_test_hash() to use the new test framework, adding a list of testvec_configs to test by default. When the extra self-tests are enabled, randomly generated testvec_configs are tested as well. This improves hash test coverage mainly because now all algorithms have a variety of data layouts tested, whereas before each algorithm was responsible for declaring its own chunked test cases which were often missing or provided poor test coverage. The new code also tests both the MAY_SLEEP and !MAY_SLEEP cases and buffers that cross pages. This already found bugs in the hash walk code and in the arm32 and arm64 implementations of crct10dif. I removed the hash chunked test vectors that were the same as non-chunked ones, but left the ones that were unique. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tea.c')
0 files changed, 0 insertions, 0 deletions