diff options
author | Eric Biggers <ebiggers@google.com> | 2019-12-01 22:53:29 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-12-11 09:37:01 +0100 |
commit | 2ea915054cf2dc1ccc145d7c75d3dad8dde15be3 (patch) | |
tree | 968e54e2b66e705f7a7973d92900d2760d5f1c19 /crypto/testmgr.h | |
parent | crypto: testmgr - test setting misaligned keys (diff) | |
download | linux-2ea915054cf2dc1ccc145d7c75d3dad8dde15be3.tar.xz linux-2ea915054cf2dc1ccc145d7c75d3dad8dde15be3.zip |
crypto: testmgr - create struct aead_extra_tests_ctx
In preparation for adding inauthentic input fuzz tests, which don't
require that a generic implementation of the algorithm be available,
refactor test_aead_vs_generic_impl() so that instead there's a
higher-level function test_aead_extra() which initializes a struct
aead_extra_tests_ctx and then calls test_aead_vs_generic_impl() with a
pointer to that struct.
As a bonus, this reduces stack usage.
Also switch from crypto_aead_alg(tfm)->maxauthsize to
crypto_aead_maxauthsize(), now that the latter is available in
<crypto/aead.h>.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions