]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - fuzz hashes against their generic implementation
authorEric Biggers <ebiggers@google.com>
Fri, 12 Apr 2019 04:57:39 +0000 (21:57 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Apr 2019 14:15:03 +0000 (22:15 +0800)
commit05b60ef8d35e928b3ddc1af09347a3fc7cad3f9f
treeba47d6fa6fffbc2ff6d2ef1bc2e6abcbaed95c3b
parente243821c5955bf1061834d7a0b15881d402feb75
crypto: testmgr - fuzz hashes against their generic implementation

When the extra crypto self-tests are enabled, test each hash algorithm
against its generic implementation when one is available.  This
involves: checking the algorithm properties for consistency, then
randomly generating test vectors using the generic implementation and
running them against the implementation under test.  Both good and bad
inputs are tested.

This has already detected a bug in the x86 implementation of poly1305,
bugs in crct10dif, and an inconsistency in cbcmac.

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