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

When the extra crypto self-tests are enabled, test each skcipher
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 skcipher_walk API, a bug in the
LRW template, and an inconsistency in the cts implementations.

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