diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-08-19 16:17:34 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-30 10:05:27 +0200 |
commit | f975abb23c6f3e551b5b9ac991941756bb1c2f3d (patch) | |
tree | 9cb1674af4dc23f151bb70cf03fdca7a6a629f76 /crypto/tcrypt.c | |
parent | crypto: arm64/aegis128 - use explicit vector load for permute vectors (diff) | |
download | linux-f975abb23c6f3e551b5b9ac991941756bb1c2f3d.tar.xz linux-f975abb23c6f3e551b5b9ac991941756bb1c2f3d.zip |
crypto: essiv - add tests for essiv in cbc(aes)+sha256 mode
Add a test vector for the ESSIV mode that is the most widely used,
i.e., using cbc(aes) and sha256, in both skcipher and AEAD modes
(the latter is used by tcrypt to encapsulate the authenc template
or h/w instantiations of the same)
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index c578ccd92c57..83ad0b1fab30 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -2327,6 +2327,15 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb) 0, speed_template_32); break; + case 220: + test_acipher_speed("essiv(cbc(aes),sha256)", + ENCRYPT, sec, NULL, 0, + speed_template_16_24_32); + test_acipher_speed("essiv(cbc(aes),sha256)", + DECRYPT, sec, NULL, 0, + speed_template_16_24_32); + break; + case 221: test_aead_speed("aegis128", ENCRYPT, sec, NULL, 0, 16, 8, speed_template_16); |