summaryrefslogtreecommitdiff
path: root/crypto/aegis256.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-04-11 21:57:36 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2019-04-18 22:15:03 +0800
commit548d7bb2588199038fc75938ee687c41e743b6cd (patch)
tree7b8fd1671e24ba1cda8f528ba734b7025a12c3b3 /crypto/aegis256.c
parente5f81538870b9875a403c77bc9ca48ed1f1bb0f2 (diff)
downloadlinux-crypto-548d7bb2588199038fc75938ee687c41e743b6cd.tar.gz
linux-crypto-548d7bb2588199038fc75938ee687c41e743b6cd.zip
crypto: testmgr - expand ability to test for errors
Update testmgr to support testing for specific errors from setkey() and digest() for hashes; setkey() and encrypt()/decrypt() for skciphers and ciphers; and setkey(), setauthsize(), and encrypt()/decrypt() for AEADs. This is useful because algorithms usually restrict the lengths or format of the message, key, and/or authentication tag in some way. And bad inputs should be tested too, not just good inputs. As part of this change, remove the ambiguously-named 'fail' flag and replace it with 'setkey_error = -EINVAL' for the only test vector that used it -- the DES weak key test vector. Note that this tightens the test to require -EINVAL rather than any error code, but AFAICS this won't cause any test failure. Other than that, these new fields aren't set on any test vectors yet. Later patches will do so. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/aegis256.c')
0 files changed, 0 insertions, 0 deletions